Skip to content

Update @emnapi/wasi-threads 1.2.1 → 2.0.0 (major)#20239

Closed
depfu[bot] wants to merge 1 commit into
mainfrom
depfu/update/pnpm/@emnapi/wasi-threads-2.0.0
Closed

Update @emnapi/wasi-threads 1.2.1 → 2.0.0 (major)#20239
depfu[bot] wants to merge 1 commit into
mainfrom
depfu/update/pnpm/@emnapi/wasi-threads-2.0.0

Conversation

@depfu

@depfu depfu Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ @​emnapi/wasi-threads (1.2.1 → 2.0.0) · Repo

Sorry, we couldn't find anything useful about this release.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot requested a review from a team as a code owner June 15, 2026 03:40
@depfu depfu Bot added the depfu label Jun 15, 2026
@greptile-apps

greptile-apps Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

Safe to merge after CI passes; the change is isolated to the WASM runtime package with no direct call sites in the codebase.

The only change is bumping a bundled WASM-thread-support library to its new major version. No release notes are available for 2.0.0, so any API changes are opaque, but no JS/TS code in the repo calls into this package directly — the risk surface is limited to the generated WASM runtime behavior. The lock file shows no new transitive dependencies. CI test results are the main signal to watch here.

No files require special attention beyond verifying that the WASM-based package still works correctly in CI.

Reviews (1): Last reviewed commit: "Update @emnapi/wasi-threads to version 2..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The @emnapi/wasi-threads dependency version range in crates/node/npm/wasm32-wasi/package.json is updated from ^1.2.1 to ^2.0.0. No other fields or entries in the file are modified.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically identifies the main change: a major version update of @emnapi/wasi-threads from 1.2.1 to 2.0.0.
Description check ✅ Passed The description is related to the changeset, documenting the dependency upgrade and providing context about the update source and management by Depfu.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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


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

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/node/npm/wasm32-wasi/package.json`:
- Line 34: The `@emnapi/wasi-threads` package at line 34 in package.json was
upgraded to version 2.0.0, which is incompatible with the currently declared
`@emnapi/core` version 1.10.0. The 2.0.0 release of `@emnapi/wasi-threads` requires
`@emnapi/core` 2.0.0-alpha.1 or later due to breaking changes. To resolve this
dependency incompatibility, either upgrade `@emnapi/core` to version 2.0.0 or
later (ensuring both packages are on compatible major versions), or revert
`@emnapi/wasi-threads` back to the 1.x version range that is compatible with
`@emnapi/core` 1.10.0. Choose the upgrade path to keep both packages current.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 097b1b24-0bda-40e5-b3ca-b5378bb1b550

📥 Commits

Reviewing files that changed from the base of the PR and between 8a14a71 and 0eae77d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • crates/node/npm/wasm32-wasi/package.json

"@emnapi/runtime": "^1.10.0",
"@tybys/wasm-util": "^0.10.2",
"@emnapi/wasi-threads": "^1.2.1",
"@emnapi/wasi-threads": "^2.0.0",

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.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

LOCKFILE="$(fd -HI '^pnpm-lock\.yaml$' | head -n1)"
if [ -z "${LOCKFILE}" ]; then
  echo "pnpm-lock.yaml not found"
  exit 1
fi

echo "=== wasm32-wasi manifest dependency entry ==="
rg -n -C2 '"`@emnapi/wasi-threads`"' crates/node/npm/wasm32-wasi/package.json

echo
echo "=== lockfile: workspace package resolution ==="
rg -n -A12 -B4 "crates/node/npm/wasm32-wasi:|`@emnapi/wasi-threads`" "${LOCKFILE}"

echo
echo "=== lockfile: snapshots for core + wasi-threads ==="
rg -n -A8 -B2 "'`@emnapi/core`@|`@emnapi/wasi-threads`@" "${LOCKFILE}"

echo
echo "=== direct imports/usages in wasm32-wasi package sources ==="
rg -n -C2 "from ['\"]`@emnapi/wasi-threads`['\"]|require\\(['\"]`@emnapi/wasi-threads`['\"]\\)|`@emnapi/wasi-threads`" crates/node/npm/wasm32-wasi

Repository: tailwindlabs/tailwindcss

Length of output: 5045


🌐 Web query:

What are the breaking changes in @emnapi/wasi-threads2.0.0 vs 1.2.1, and which@emnapi/coreversion first declares compatibility with@emnapi/wasi-threads 2.x?

💡 Result:

The transition from @emnapi/wasi-threads 1.2.1 to 2.0.0 is part of a broader major version update for the emnapi ecosystem [1][2]. The primary breaking changes in the 2.x release cycle include: - Deprecation and removal of the JavaScript-based implementation for AsyncWork and ThreadSafeFunction (TSFN), shifting entirely to shared C implementations for consistency and stability [1]. - Dropping support for wasm32-unknown-unknown and wasm32-wasip1 targets, which have been removed from continuous integration (CI) tests [1]. - Removal of the libemnapi-basic[-mt].a prebuilt library [1]. Regarding compatibility, @emnapi/core first declares official compatibility with @emnapi/wasi-threads 2.x in its 2.0.0-alpha.1 release, published in May 2026 [3]. As of June 2026, the stable @emnapi/core releases (e.g., 1.11.1) continue to depend on @emnapi/wasi-threads 1.2.2 [3].

Citations:


Incompatible upgrade: @emnapi/wasi-threads 2.0.0 requires @emnapi/core 2.0.0-alpha.1 or later.

Line 34 bumps @emnapi/wasi-threads to ^2.0.0, but this package currently uses @emnapi/core@1.10.0, which declares a dependency on @emnapi/wasi-threads@1.2.1. The 2.0.0 release contains breaking changes (removal of JavaScript-based AsyncWork/TSFN implementations) and is not compatible with @emnapi/core 1.10.0. Upgrade @emnapi/core to version 2.0.0 or later, or revert @emnapi/wasi-threads to a 1.x version.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/node/npm/wasm32-wasi/package.json` at line 34, The
`@emnapi/wasi-threads` package at line 34 in package.json was upgraded to version
2.0.0, which is incompatible with the currently declared `@emnapi/core` version
1.10.0. The 2.0.0 release of `@emnapi/wasi-threads` requires `@emnapi/core`
2.0.0-alpha.1 or later due to breaking changes. To resolve this dependency
incompatibility, either upgrade `@emnapi/core` to version 2.0.0 or later (ensuring
both packages are on compatible major versions), or revert `@emnapi/wasi-threads`
back to the 1.x version range that is compatible with `@emnapi/core` 1.10.0.
Choose the upgrade path to keep both packages current.

@depfu depfu Bot deleted the depfu/update/pnpm/@emnapi/wasi-threads-2.0.0 branch June 15, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants