fix(configurator): sync framework version stamp on release - #300
Conversation
The configurator stamped its version from the generated api-index (_sync.frameworkVersion), but a release only bumped package.json and re-synced docs/roadmap.md — never the configurator index. CI's guard checked package-lock + roadmap only, so the drift passed unnoticed and the panel kept showing the previous version (0.5.29 vs 0.5.30). - Re-sync configurator/src/data/api-index.generated.json to 0.5.30. - version-sync.js now also bumps the configurator frameworkVersion stamp (runs in release-it hooks), keeping it idempotent. - check-version-sync.js now fails when the generated index drifts from package.json, so future releases catch this in CI.
|
Warning Review limit reached
More reviews will be available in 44 minutes and 41 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This pull request was created by @kiro-agent on behalf of @jackgranatowski 👻
Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro Web
Problem
The configurator displayed framework version 0.5.29 while
package.jsonwas already at 0.5.30. The panel stamps its version fromconfigurator/src/data/api-index.generated.json→_sync.frameworkVersion.Root cause
package.jsonandscripts/version-sync.jsre-synced onlydocs/roadmap.md— it never touched the configurator's generated index.scripts/check-version-sync.jschecked onlypackage-lock.json+docs/roadmap.md, so the configurator drift passed CI unnoticed every release.Fix
configurator/src/data/api-index.generated.jsonto 0.5.30 (vianode configurator/scripts/sync-api.mjs, which readspackage.json).scripts/version-sync.jsnow also bumps the configuratorframeworkVersionstamp (it runs in the release-it hooks), and remains idempotent.scripts/check-version-sync.jsnow fails when the generated index'sframeworkVersiondiffers frompackage.json, so future drift is caught in CI.Validation
node scripts/check-version-sync.js→ exit 0 (version-sync check OK — all references at 0.5.30.)node scripts/version-sync.js→ idempotent (both targets already up to date; no churn)npm run check→ svelte-check 0 errors / 0 warningsnode --test tests/*.test.js→ 42 pass / 0 failnpm run build→ compiles successfullyScope
Only three files changed: the generated index plus the two version-sync scripts. No tabs redesign, no plugin changes.