Skip to content

auto update versions used in examples#6892

Merged
birkskyum merged 2 commits intomainfrom
auto-update-example-versions
Mar 11, 2026
Merged

auto update versions used in examples#6892
birkskyum merged 2 commits intomainfrom
auto-update-example-versions

Conversation

@birkskyum
Copy link
Member

@birkskyum birkskyum commented Mar 11, 2026

This adds a script update-example-deps.mjs, which will look up the workspace package versions, and update the version in the examples. We had this behavior before migrating to changesets.

It'll run in the CI (part of changeset:version ) , so after changeset bumps workspace package versions, they immediately get updated in all the examples.

Summary by CodeRabbit

  • Chores
    • Enhanced release automation to automatically synchronize example application dependencies with workspace package versions during version updates.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

⚠️ No Changeset found

Latest commit: 1ad3e06

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 11, 2026

📝 Walkthrough

Walkthrough

A new dependency synchronization script is introduced and integrated into the version management pipeline. The changeset:version script now runs update-example-deps.mjs to automatically align example package versions with current workspace package versions before completing the versioning process.

Changes

Cohort / File(s) Summary
Version Pipeline
package.json
Added intermediate step node scripts/update-example-deps.mjs to the changeset:version script execution chain between versioning and installation steps.
Dependency Sync Tool
scripts/update-example-deps.mjs
New script that reads workspace package versions from packages/*/package.json, compares against example package dependencies in examples/**/package.json, and updates mismatched versions to match workspace versions with caret ranges.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 With versions kept in harmony,
Examples dance with purity,
A script to sync what matters most,
Workspace and examples, coast to coast! 🌾

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'auto update versions used in examples' directly reflects the main change—adding automatic version synchronization for example package.json files with workspace packages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch auto-update-example-versions

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Mar 11, 2026

View your CI Pipeline Execution ↗ for commit 1ad3e06

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ⛔ Cancelled 1h 59m 23s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2m 10s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-11 20:37:32 UTC

@github-actions
Copy link
Contributor

Bundle Size Benchmarks

  • Commit: 870cf2806695
  • Measured at: 2026-03-11T18:38:41.328Z
  • Baseline source: history:870cf2806695
  • Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Raw Brotli Trend
react-router.minimal 87.09 KiB 0 B (0.00%) 274.11 KiB 75.68 KiB ▁▁▁▁▆▆▇▇███
react-router.full 90.08 KiB 0 B (0.00%) 284.36 KiB 78.32 KiB ▁▁▁▁▅▅▆▆███
solid-router.minimal 36.42 KiB 0 B (0.00%) 109.29 KiB 32.74 KiB ▁▁▁▁▅▆▇▇███
solid-router.full 40.75 KiB 0 B (0.00%) 122.27 KiB 36.58 KiB ▁▁▁▁▄▅▇▇███
vue-router.minimal 52.29 KiB 0 B (0.00%) 149.34 KiB 47.01 KiB ▁▁▁▁▅▅▇▇███
vue-router.full 57.08 KiB 0 B (0.00%) 164.85 KiB 51.27 KiB ▁▁▁▁▅▅▇▇███
react-start.minimal 99.66 KiB 0 B (0.00%) 313.26 KiB 86.22 KiB ▁▁▁▁▅▅▇▇███
react-start.full 102.97 KiB 0 B (0.00%) 322.99 KiB 89.07 KiB ▁▁▁▁▅▅▆▆███
solid-start.minimal 48.75 KiB 0 B (0.00%) 146.89 KiB 43.14 KiB ▁▁▁▁▅▅▇▇███
solid-start.full 54.21 KiB 0 B (0.00%) 162.75 KiB 47.88 KiB ▁▁▁▁▅▅▇▇███

Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.

@birkskyum birkskyum merged commit 044fb24 into main Mar 11, 2026
12 of 14 checks passed
@birkskyum birkskyum deleted the auto-update-example-versions branch March 11, 2026 18:40
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 11, 2026

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing auto-update-example-versions (1ad3e06) with main (870cf28)

Open in CodSpeed

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