Repository navigation
fix(deps): align @tauri-apps/api with the tauri 2.11 crate - #1795
Merged
Merged
Conversation
The cargo-security update in #1719 pinned the tauri crate to 2.11.1 but left @tauri-apps/api on ~2.10.0. tauri build rejects crate and npm packages on different minor releases, so the v2.0.0 release job failed before compiling. Move the JS API to ~2.11.0 (2.11.1).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Release builds from
developfail before compiling. The v2.0.0 release run (34849085732) stopped in the macOS Build ORGII step after one second:Root cause: the cargo-security update in #1719 (merged 2026-09-13) moved the Rust
tauricrate pin from=2.10.3to=2.11.1, butpackage.jsonstill declares@tauri-apps/apias~2.10.0(locked at 2.10.1).tauri buildrequires the crate and the JS API to share a major/minor release, so every release build since #1719 aborts. PR CI never runstauri build, so the mismatch first surfaced in the release job. The Windows and Linux jobs depend on the macOS job and were skipped. Nothing was published, and v1.3.0 is still the latest release.Solution
Move
@tauri-apps/apito~2.11.0. The lockfile resolves it to 2.11.1, the current npmlatest, for the app and the 11 plugin packages that depend on it. The Rust crate and the JS API are on the same minor release (2.11) again, and so is everytauri-plugin-*/@tauri-apps/plugin-*pair.Aligning the npm side up keeps the security remediation from #1719. The alternative, pinning the crate back to 2.10.3, would reopen it.
Potential risks
@tauri-apps/apientries (16 lines changed). No other package re-resolved. To roll back, revert this commit, but release builds then fail again unless the crate pin is also reverted, which would undo chore(deps): apply Cargo security updates with API compatibility fixes #1719's security update.@tauri-apps/cli(spec"2") stays locked at 2.10.1, the version that bundled, signed and notarized v1.3.0. The mismatch gate does not compare the CLI. Aligning it to 2.11 is a separate change that I kept out of this unblocker.tauri buildonly runs when the release workflow reruns after merge.Verification
pnpm install --lockfile-only --ignore-scripts(pnpm 9.15.4, the version pinned inpackageManager): exit 0. The lockfile diff is limited to@tauri-apps/api2.10.1 → 2.11.1. The unmet-peer warnings it printed already existed.tauri buildmismatch gate with a script comparingsrc-tauri/Cargo.lockagainstpnpm-lock.yamlmajor/minor versions. Before:tauri 2.11.1vs@tauri-apps/api 2.10.1mismatched. After: 0 mismatches acrosstauriand all 9 plugin pairs (deep-link, dialog, fs, notification, opener, process, shell, store, updater).@tauri-apps/apiv2.11.0 and v2.11.1 release notes for breaking changes (none listed).package.json) and passed. The commit was made in a linked worktree, whereprepare-commit-msgcannot write the "Pre-commit hook ran." trailer, so the trailer is absent.tauri build. CI covers the first two on this PR; the release workflow rerun covers the build.