Skip to content

v0.1.14

Choose a tag to compare

@github-actions github-actions released this 24 Jun 05:19

Fixes

  • Next.js / Turbopack with Tailwind v4 build crash. On the fast tier (Node 22.15+), nub's sync resolve hook now recovers when a user async loader is active and Node routes a sync resolution into the async-hooks resolveSync()/loadSync() stub (which throws ERR_METHOD_NOT_IMPLEMENTED). This unblocks nub run build in real Next.js apps using @tailwindcss/node + Turbopack, which previously aborted evaluating globals.css and triggered an esbuild deadlock. The recovery branch fires only for the impossible sync-into-async hop; the user's async loader still runs for everything else. (#98)
  • npm save-prefix mirroring on add. When the incumbent package manager is npm, nub add <pkg> writes the saved specifier with npm's default save-prefix applied (^1.2.3), matching real npm install. .npmrc save-prefix / save-exact are honored. pnpm/bun/nub-identity projects keep literal-preserve, and an explicit range is preserved verbatim on every PM. (#97)

What's Changed

  • ci: enforce commit-message hygiene by @colinhacks in #93
  • feat(add): mirror npm save-prefix for bare-version add under npm incumbent by @colinhacks in #97
  • fix(runtime): recover from async-loader resolveSync stub on the fast tier (Turbopack/Tailwind crash) by @colinhacks in #98

Full Changelog: v0.1.13...v0.1.14