Skip to content

fix(js-sdk): document ConvertAgent UA invariant (trigger js-sdk release) - #391

Merged
abbaseya merged 1 commit into
main-convertfrom
fix/js-sdk-convert-agent-ua-release
May 25, 2026
Merged

fix(js-sdk): document ConvertAgent UA invariant (trigger js-sdk release)#391
abbaseya merged 1 commit into
main-convertfrom
fix/js-sdk-convert-agent-ua-release

Conversation

@abbaseya

Copy link
Copy Markdown
Collaborator

Summary

Why

PR #387 only touched packages/utils/src/http-client.ts with feat(utils):, so release-please only bumped utils (2.2.0 → 2.3.0). The behavior change ships through js-sdk as well, but release-please scopes bumps strictly by file path + commit scope — so without a js-sdk-side commit, consumers pinning @convertcom/js-sdk see no version delta despite the wire-level change.

This PR adds a documentation-only note at the SDK entry point so the contract is visible to integrators and release-please attributes the change to js-sdk. No behavioral change.

Follow-up

After this merges into main-convert, a separate main-convertmain PR will let release-please pick up the new commit and include the js-sdk patch bump in its release PR.

Test plan

  • CI green (jest / tsc / ESLint / SonarCloud)
  • After merge to main, release-please PR includes a js-sdk 4.4.1 → 4.4.2 entry

Refs: #387, #390

🤖 Generated with Claude Code

…e HTTP

The User-Agent invariant introduced in #387 (always announce
`ConvertAgent/1.0` on server-side outbound HTTP from HttpClient) is a
js-sdk-level behavioral guarantee surfaced through every manager
(api/data/event) that delegates to @convertcom/js-sdk-utils' HttpClient.

Surfaces the contract at the SDK entry point so the metrics-endpoint
isbot bypass dependency is documented at the layer customers integrate
against, not only at the transport layer.

Refs: #387
@abbaseya abbaseya self-assigned this May 25, 2026
@abbaseya
abbaseya requested a review from a team May 25, 2026 14:44
@sonarqubecloud

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation in packages/js-sdk/src/core.ts to include information about the User-Agent header used for server-side HTTP requests. It explains that the ConvertAgent/1.0 header is an invariant used for bot bypass on the metrics endpoint. I have no feedback to provide.

@abbaseya
abbaseya merged commit c4d1224 into main-convert May 25, 2026
6 checks passed
@abbaseya
abbaseya deleted the fix/js-sdk-convert-agent-ua-release branch May 25, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants