-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update @emnapi/runtime 1.8.1 → 1.9.2 (minor) #19971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
depfu
wants to merge
1
commit into
main
Choose a base branch
from
depfu/update/pnpm/@emnapi/runtime-1.9.2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+19
−12
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: tailwindlabs/tailwindcss
Length of output: 1814
🌐 Web query:
@emnapi/runtime 1.9.2 peer dependencies compatibility💡 Result:
For
@emnapi/runtimev1.9.2, there is no peerDependency declared by the package itself. It depends only on tslib, while peer-dependency compatibility is enforced by downstream packages that require matching@emnapi/coreand@emnapi/runtimeversions. What’s in@emnapi/runtime@1.9.2 - Package metadata for@emnapi/runtime(including v1.9.2) shows only a dependency on tslib; no peerDependencies are listed. Compatibility expectations (what to align in your project) - If you’re using@napi-rs/wasm-runtime, it declares peerDependencies on: -@emnapi/core: ^1.7.1 -@emnapi/runtime: ^1.7.1 This means@emnapi/runtime@1.9.2 satisfies the peer range. But you should also use a compatible@emnapi/coreversion (ideally 1.9.2) to avoid version-mismatch checks. - The napi-rs project added/uses version-sync logic to ensure the installed@emnapipackage version matches the installed@emnapi/coreand@emnapi/runtimeversions used during WASM build/package generation, and it notes the move of@emnapi/coreand@emnapi/runtimeto peerDependencies for wasm-runtime. Practical answer - You can typically pair@emnapi/runtime@1.9.2 with@napi-rs/wasm-runtime(>=1.0.0 and peer range ^1.7.1) as long as your@emnapi/coreversion is within the expected major line (and preferably the same version, e.g. core@1.9.2). If you tell me which package(s) you’re integrating (e.g.,@napi-rs/wasm-runtime,@napi-rs/wasm-tools, emnapi itself, or another wrapper), I can map the exact peer ranges and what versions to install together.Citations:
🌐 Web query:
@emnapi/core@emnapi/runtimeversion compatibility issues💡 Result:
There are no known version compatibility issues between
@emnapi/coreand@emnapi/runtime. The official emnapi documentation explicitly states: "Each package should match the same version." Both packages follow the same versioning scheme (e.g., latest versions are both 1.10.0 as of April 2026), with synchronized releases from the monorepo at https://github.com/toyobayashi/emnapi. They are designed to be used together at identical versions for Node-API (NAPI) implementations in WebAssembly environments like Emscripten, wasi-sdk, and clang wasm32. Reported issues primarily involve: - Mismatched versions in transitive dependencies (e.g., Next.js/Sharp pulling older@emnapi/runtime@1.5.0). - Runtime errors from version mismatches in prebuilt WASM addons (e.g., linking against emnapi v1.8.1 causing "Cannot read properties of undefined (reading 'whenLoaded')"). To avoid issues: - Install matching versions: npm install@emnapi/core@1.10.0@emnapi/runtime@1.10.0 - Use npm ls to verify no extraneous/mismatched installations. - Pin exact versions in package.json (avoid ^/~ ranges for these packages). - For Emscripten builds, ensure compatible flags like -pthread for threaded APIs. No peerDependencies are declared between the packages; compatibility is maintained via parallel releases and the monorepo structure.Citations:
Cannot read properties of undefined (reading 'whenLoaded')error toyobayashi/emnapi#202🌐 Web query:
emnapi packages changelog release notes 1.8.1 1.9.2💡 Result:
emnapi (toyobayashi/emnapi) release notes / changelog items for versions 1.8.1 and 1.9.2: 1) v1.8.1 (published 2026-01-04) - The emnapi repo lists tags/releases for v1.8.1, but the captured sources in this research run did not include the v1.8.1 release page’s “What’s Changed” / changelog text. So I can’t reliably quote the specific changes for 1.8.1 from the evidence collected. 2) v1.9.2 (published 2026-04-02) - fix: allow maximum memory 4GB (PR
#205).Citations:
Align
@emnapi/corewith@emnapi/runtimeversion.The update to
@emnapi/runtime@^1.9.2creates a version mismatch with@emnapi/core@^1.8.1. While technically compatible within peer ranges, official emnapi documentation explicitly recommends matching versions for these companion packages to prevent runtime issues. Update@emnapi/coreto^1.9.2to align with the runtime version.🤖 Prompt for AI Agents