Skip to content

Release 0.8.3 follow-up: bump in-bundle VERSION constants - #108

Merged
fuhrysteve merged 1 commit into
masterfrom
release/0.8.3-version
Jul 29, 2026
Merged

Release 0.8.3 follow-up: bump in-bundle VERSION constants#108
fuhrysteve merged 1 commit into
masterfrom
release/0.8.3-version

Conversation

@fuhrysteve

Copy link
Copy Markdown
Contributor

Follow-up to #107, which must not ship without this.

#107 bumped package.json to 0.8.3 but left the two hardcoded VERSION constants at 0.8.2, so the published bundle would have reported itself as the previous version.

  • assets/sdk/components/SDK.tsx:44 — passed to sdkAxiosMaker and sent on every backend request; this is the version field on server-side SDK log lines.
  • assets/sdk/entries/sdk-core.tsx:12 — console banner only.

The first is the operationally important one. It's how we identify which customer is running which SDK build, and 0.8.3 is a fix four customers need to pick up — shipping a build that reports 0.8.2 would have made the rollout impossible to verify.

Caught during release prep by grepping the built bundle for the version string instead of trusting package.json.

Both constants are hand-maintained duplicates of package.json's version, which is why they drifted. Deriving them at build time (webpack DefinePlugin) would prevent a recurrence; left out here to keep the release moving.

Dev PR: LakeEriePartners/stream-connect-js-sdk#9. npm test (biome + tsc) passes.

The 0.8.3 PR bumped package.json but missed the two hardcoded VERSION
constants, so a published 0.8.3 would have reported itself as 0.8.2.

`SDK.tsx`'s copy is the one that matters operationally: it's passed to
sdkAxiosMaker and lands on every backend request, surfacing as the
`version` field on PolicyHolderSDKView log lines. That field is how we
fingerprint which customer is on which SDK build -- and with four
customers needing to pick up the DOB fix, shipping a 0.8.3 that reports
0.8.2 would have left us unable to tell who had upgraded.

`sdk-core.tsx`'s copy only feeds the console banner.

Both are hand-maintained duplicates of package.json's version, which is
how they got missed. Worth deriving them from package.json at build time
so a future release can't drift the same way.
@fuhrysteve
fuhrysteve merged commit c5467ed into master Jul 29, 2026
4 checks passed
@fuhrysteve
fuhrysteve deleted the release/0.8.3-version branch July 29, 2026 15:48
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.

1 participant