Skip to content

chore(release): allow minor bumps, upgrade changesets to 3.x, sync Zed grammar rev - #111

Merged
leonidaz merged 2 commits into
mainfrom
chore/minor-bumps-changesets-3
Sep 14, 2026
Merged

leonidaz merged 2 commits into
mainfrom
chore/minor-bumps-changesets-3

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Prepares the release that follows the lazy destructuring removal (RFC #106, #110) so it ships as minor bumps without any package accidentally going major.

  • Switch the feat: remove lazy destructuring (RFC #106) #110 changesets to minor (core, runtime, react/preact/solid/vue, prettier-plugin, eslint-plugin, vscode-plugin, zed-plugin, mcp). The three runtime perf changesets stay patch.
  • Upgrade @changesets/cli to ^3.0.2 (and @changesets/changelog-github to ^1.0.1). Changesets 3.0 bumps peer-dependents by patch instead of forcing major (changesets#2090). Under 2.31.0, @tsrx/typescript-plugin's peer dependencies on the target compilers would have pushed it, and its whole fixed group (eslint-parser, eslint-plugin, language-server, prettier-plugin), to 1.0.0. 3.0.3 was skipped only because it is newer than the repo's one-day minimumReleaseAge at the time of this PR.
  • Relax scripts/check-changesets.js to reject only major; CI step names and the RuleSync bump policy (regenerated) are updated to match.
  • Sync the Zed grammar rev in packages/zed-plugin/extension.toml to dcc0283a so the extension builds the tree-sitter grammar without lazy destructuring.
  • Migrate the release, publish, and bootstrap workflows to changesets/action@v2. CLI 3 no longer prints the New tag: lines v1 parsed, so v1 would publish to npm but never create git tags or GitHub releases; v2 reads the CLI's CHANGESETS_OUTPUT file and validates CLI 3. Inputs are renamed (version-script, publish-script, commit-message, pr-title), the token is passed via github-token, and the bootstrap job authenticates through actions/setup-node registry-url + NODE_AUTH_TOKEN because v2 dropped NPM_TOKEN → .npmrc handling. Note that v2 pushes the Version Packages commit and release tags through the GitHub API by default, so they arrive GPG-signed by GitHub.
  • Fix scripts/sync-zed-grammar-rev.js calling process.exit(0) on the already-synced path, which terminated sync-zed-plugin-version.js before it updated the Zed Cargo.toml version.

Resulting release plan (changeset status under 3.0.2)

Bump Packages
minor @tsrx/core 0.2.0, @tsrx/runtime 0.2.0, @tsrx/react 0.3.0, @tsrx/preact / solid / vue 0.2.0, tooling fixed group 0.4.0, @tsrx/vscode-plugin 2.1.0, @tsrx/zed-plugin 0.1.0, @tsrx/mcp 0.1.0
patch *-runtime 0.1.8, all vite/rspack/bun/turbopack plugins

No package goes major.

Verification

  • changeset status --verbose under 2.31.0 (before) showed the tooling group at 1.0.0; under 3.0.2 (after) it is 0.4.0.
  • Full pnpm changeset:version dry run in a throwaway worktree produced the versions above, and the Zed extension.toml, Cargo.toml, and language-server pin all updated.
  • node scripts/check-changesets.js, sync-intellij-plugin-version.js --check, and check-zed-grammar-rev.js pass.
  • pnpm rules:generate is up to date; touched files pass Prettier.

🤖 Generated with Claude Code


Note

Medium Risk
Touches npm publish and versioning automation (changesets 3.x and action v2); mistakes could mis-version packages or break release PR/publish flows, but does not change application runtime auth or data handling.

Overview
Prepares the post–RFC #106 release by reclassifying the lazy-destructuring and related API removal changesets from patch to minor, and aligning repo policy so scripts/check-changesets.js and contributor docs only forbid major bumps (patch for fixes/additions, minor for language or public API removals).

Upgrades @changesets/cli to 3.x (and @changesets/changelog-github / config schema) so peer-dependent packages in fixed groups bump by patch instead of being forced to 1.0.0 under 2.31.0. Migrates release, publish, and bootstrap workflows to changesets/action@v2 with the new input names (version-script, publish-script, commit-message, pr-title, github-token) and bootstrap npm auth via setup-node registry-url + NODE_AUTH_TOKEN.

Also pins the Zed extension Tree-sitter grammar rev to the commit without lazy-destructuring grammar rules, and fixes sync-zed-grammar-rev.js so an already-synced rev no longer calls process.exit(0) and skips follow-up Zed version sync.

Reviewed by Cursor Bugbot for commit 3d7b85a. Bugbot is set up for automated code reviews on this repo. Configure here.

…d grammar rev

Switch the RFC #106 changesets from PR #110 to `minor` and upgrade
`@changesets/cli` to ^3.0.2 so that peer-dependent packages are bumped by
`patch` instead of `major`. Under 2.x the `@tsrx/typescript-plugin` peer
dependencies on the target compilers would have pushed its fixed group
(eslint-parser, eslint-plugin, language-server, prettier-plugin) to 1.0.0.

- `scripts/check-changesets.js` now rejects only `major`; CI step names and
  the RuleSync bump policy are updated to match.
- Point `.changeset/config.json` `$schema` at config 4.0.0.
- Sync the Zed grammar rev to dcc0283 so the extension builds the
  tree-sitter grammar without lazy destructuring.
- Fix `sync-zed-grammar-rev.js` exiting the parent version script early on
  the already-synced path, which skipped the Zed Cargo.toml version update.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tsrx-website Ready Ready Preview Sep 14, 2026 10:36pm UTC
tsrx-website-mcp Ready Ready Preview Sep 14, 2026 10:36pm UTC

Request Review

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Action v1 incompatible with CLI 3
    • Upgraded changesets/action from v1 to v2 in publish, release, and bootstrap workflows, renamed inputs for the v2 API, and restored bootstrap npm token auth after v2 stopped writing .npmrc.

Create PR

Or push these changes by commenting:

@cursor push bfb5c0aa64
Preview (bfb5c0aa64)
diff --git a/.github/workflows/bootstrap-npm-packages.yml b/.github/workflows/bootstrap-npm-packages.yml
--- a/.github/workflows/bootstrap-npm-packages.yml
+++ b/.github/workflows/bootstrap-npm-packages.yml
@@ -56,15 +56,19 @@
 
       # This job intentionally has no id-token permission. npm prefers OIDC when
       # it is available, but a package cannot use OIDC until it exists on npm and
-      # has a trusted publisher configured.
-      - name: Publish missing packages to npm
-        uses: changesets/action@v1
-        with:
-          publish: pnpm changeset:publish
+      # has a trusted publisher configured. Action v2 no longer writes .npmrc
+      # from NPM_TOKEN, so configure token auth here before publish.
+      - name: Configure npm bootstrap token
         env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.NPM_BOOTSTRAP_TOKEN }}
+        run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc"
 
+      - name: Publish missing packages to npm
+        uses: changesets/action@v2
+        with:
+          publish-script: pnpm changeset:publish
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+
       - name: Record trusted publishing follow-up
         if: success()
         run: |

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -93,11 +93,11 @@
 
       - name: Publish to npm
         id: changesets
-        uses: changesets/action@v1
+        uses: changesets/action@v2
         with:
-          publish: pnpm changeset:publish
+          publish-script: pnpm changeset:publish
+          github-token: ${{ secrets.GITHUB_TOKEN }}
         env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           PNPM_CONFIG_PROVENANCE: true
           # keep for now just in case
           NPM_CONFIG_PROVENANCE: true

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -44,11 +44,9 @@
 
       - name: Create or update release pull request
         id: changesets
-        uses: changesets/action@v1
+        uses: changesets/action@v2
         with:
           github-token: ${{ github.token }}
-          version: pnpm changeset:version
-          commit: Version Packages
-          title: Version Packages
-        env:
-          GITHUB_TOKEN: ${{ github.token }}
+          version-script: pnpm changeset:version
+          commit-message: Version Packages
+          pr-title: Version Packages

You can send follow-ups to the cloud agent here.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1594e97. Configure here.

Comment thread .github/workflows/publish.yml Resolved
Changesets CLI 3 no longer prints the `New tag:` lines that
changesets/action@v1 parsed to find published packages, so v1 would publish
to npm but never create git tags or GitHub releases. v2 reads the CLI's
`CHANGESETS_OUTPUT` file instead and validates that the project uses CLI 3.

- Rename inputs (`version` -> `version-script`, `publish` -> `publish-script`,
  `commit` -> `commit-message`, `title` -> `pr-title`) and pass the token
  through the `github-token` input, which v2 requires.
- Keep `GITHUB_TOKEN` in the release workflow only, where
  `@changesets/changelog-github` reads it.
- v2 dropped writing `.npmrc` from `NPM_TOKEN`, so the bootstrap workflow now
  authenticates through `actions/setup-node` `registry-url` and
  `NODE_AUTH_TOKEN`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – tsrx-website-mcp — 3d7b85ae Deployed Sep 14, 2026 by vercel[bot]
Preview – tsrx-website — 3d7b85ae Deployed Sep 14, 2026 by vercel[bot]
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