Skip to content

fix(napi): require napi >=3.16.2 for multi-environment safety - #427

Open
jdalton wants to merge 1 commit into
thx:mainfrom
jdalton:fix/napi-3-16-2
Open

jdalton wants to merge 1 commit into
thx:mainfrom
jdalton:fix/napi-3-16-2

Conversation

@jdalton

@jdalton jdalton commented Dec 1, 2026 •

Copy link
Copy Markdown

Prevents crashes and stale-state errors when @resvg/resvg-js is loaded across multiple sequential Node.js Environments on the same OS thread (e.g. Node 26.11+ multi-environment test pools like vitest-pool-fastforks).

Raises the napi floor in Cargo.toml to 3.16.2 so builds include napi-rs/napi-rs#3689, which stores per-environment state in Node-API instance data instead of thread_local!.

@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

@jdalton is attempting to deploy a commit to the yisibl's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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