Skip to content

Conversation

@philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Sep 16, 2025

This PR bumps all napi related dependencies to their latest version. Napi 3 has by now officially been released but since we've been using the preview already, there aren't many changes.

One thing that ChatGPT found is that --no-const-enum is the default behavior now (see default value in this table)

Test plan

  • pnpm install && pnpm build
  • cd crates/node/npm/wasm32-wasi
  • pnpm install --ignore-workspace (This is necessary for some reason or the bundled dependencies won't work, I have no clue why it's not necessary on CI)
  • pnpm pack
  • Install dependency in a new npm package with a simple config like this:
    import { Scanner } from "@tailwindcss/oxide-wasm32-wasi"; let scanner = new Scanner({ sources: [ { base: "/Users/philipp/dev/tailwindcss/packages/@tailwindcss-postcss/src/fixtures/example-project", pattern: "**/*", negated: false, }, ], }); console.log(scanner.scan());
  • CleanShot 2025-09-19 at 14 53 52@2x

I also tested the CI build to make sure the bundledDependencies are properly added.

@philipp-spiess philipp-spiess requested a review from a team as a code owner September 16, 2025 15:44
@philipp-spiess philipp-spiess marked this pull request as draft September 16, 2025 22:53
@philipp-spiess philipp-spiess changed the title chore(node): bump napi toolchain to 3.3 Bump napi toolchain to 3.3 Sep 19, 2025
@philipp-spiess philipp-spiess marked this pull request as ready for review September 19, 2025 13:14
@philipp-spiess philipp-spiess merged commit 6c30d5e into main Sep 19, 2025
7 checks passed
@philipp-spiess philipp-spiess deleted the chore/bump-napi-3-3-0 branch September 19, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants