Skip to content

fix: auto-stamp SDK_VERSION from package.json during build#1382

Draft
ankita10119 wants to merge 1 commit into
masterfrom
SDK-10345
Draft

fix: auto-stamp SDK_VERSION from package.json during build#1382
ankita10119 wants to merge 1 commit into
masterfrom
SDK-10345

Conversation

@ankita10119

Copy link
Copy Markdown
Contributor

Changes

What: Added scripts/update-version.js to auto-stamp SDK_VERSION in src/management/version.ts from package.json before compilation. Hooked into the build script so thisnruns automatically during CI publish.

Why: In 5.14.0 and 6.0.0 releases, src/management/version.ts was not updated manually before release, causing the published npm package to report the wrong SDK_VERSION in the Auth0-Client telemetry header. This fix eliminates the manual step entirely, the correct version is always stamped at build time regardless.

No public API changes. No endpoints added, removed, or modified.

References

  • Affected versions: auth0@5.14.0, auth0@6.0.0

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@ankita10119
ankita10119 requested a review from a team as a code owner July 25, 2026 07:22
@ankita10119
ankita10119 marked this pull request as draft July 25, 2026 07:22
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@74170bb). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1382   +/-   ##
=========================================
  Coverage          ?   89.71%           
=========================================
  Files             ?      433           
  Lines             ?    20134           
  Branches          ?     9787           
=========================================
  Hits              ?    18063           
  Misses            ?     2071           
  Partials          ?        0           
Flag Coverage Δ
alltests 89.71% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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