Skip to content

fix: fall back to unknown version if SDK_VERSION is unavailable - #296

Merged
Zaimwa9 merged 1 commit into
mainfrom
fix/user-agent-unknown-fallback
Sep 2, 2026
Merged

fix: fall back to unknown version if SDK_VERSION is unavailable#296
Zaimwa9 merged 1 commit into
mainfrom
fix/user-agent-unknown-fallback

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Follow-up to #294. getUserAgent() now falls back to flagsmith-nodejs-sdk/unknown if SDK_VERSION is ever missing or empty, so the header can never throw regardless of how the package is bundled.

How did you test this code?

  • npm test passes; get_user_agent_matches_package_version still asserts the real version is sent.

@Zaimwa9
Zaimwa9 requested a review from a team as a code owner September 2, 2026 09:46
@Zaimwa9
Zaimwa9 requested review from emyller and removed request for a team September 2, 2026 09:46
@Zaimwa9
Zaimwa9 merged commit 3c1fd29 into main Sep 2, 2026
4 checks passed
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