Skip to content

Releases: unjs/unenv

v2.0.0-rc.4

Choose a tag to compare

@pi0 pi0 released this 11 Feb 20:29

compare changes

🩹 Fixes

  • mock/proxy: Support promises (#440)

💅 Refactors

  • Import node types as nodeSomeModule (#429)
  • Add node:repl and node:inspector/promises to the nodeless preset (#431)
  • ⚠️ Cleanup defineEnv and docs (#434)
  • ⚠️ Avoid proxy mock usage (#438)

📦 Build

  • Fix path to type definitions (#433)
  • Add types to package.json (f7a69b1)

✅ Tests

  • Run all tests through vitest runner (#439)
  • workerd: Crypto.randomBytes() returns bytes (#428)

⚠️ Breaking Changes

  • ⚠️ Cleanup defineEnv and docs (#434)
  • ⚠️ Avoid proxy mock usage (#438)

❤️ Contributors

v2.0.0-rc.3

Choose a tag to compare

@pi0 pi0 released this 07 Feb 02:39

compare changes

🩹 Fixes

  • defineEnv: Use import.meta.url (890c145)
  • Fix coverage and add node:repl + node:inspector/promises (#424)
  • Full coverage for (esm) node exports (#425)
  • Add missing default exports (#426)
  • defineEnv: Ignore falsy ids (21dea9b)

💅 Refactors

  • ⚠️ Only export defineEnv from main (#421)
  • Use same builtinModules from runtime (041d4f6)
  • Mark notImplemented calls as side-effect free (#422)
  • Explicit imports with extension (#416)
  • Use satisfies T when possible (#423)
  • ⚠️ Reduce inject and polyfill for nodeCompat (#427)

📦 Build

  • Sync main subpath types (a65352f)
  • Avoid bundling dependencies (de43cd2)

✅ Tests

  • Make expect error better (cc5dad3)

⚠️ Breaking Changes

  • ⚠️ Only export defineEnv from main (#421)
  • ⚠️ Only export defineEnv from main (#421)
  • ⚠️ Reduce inject and polyfill for nodeCompat (#427)

v2.0.0-rc.2

Choose a tag to compare

@pi0 pi0 released this 06 Feb 20:39

compare changes

Note

This is first public release candidate for unenv@2.

⚠️ Breaking Changes

  • ⚠️ Update runtime/node structure (#392)
  • ⚠️ Esm-only build (#417)

If directly using unenv/rumtime imports, you need to update unenv/runtime/node/{module}/index to unenv/runtime/{module}

If you have encountered any issues regarding ESM-only dist, please reach out.

🚀 Enhancements

  • Compatibility with node@22.13.1 types (#414)

🩹 Fixes

  • node:async_hooks: Remove extra methods from AsyncHook class (#415)
  • node:timers: Avoid circular dependency in internals (#418)
  • node:crypto: Fix randomBytes returning zero values (#420)

💅 Refactors

  • tls: Import Socket and Server from node:net (#405)
  • Remove direct fetch support (#411)

❤️ Contributors

v1.10.0

Choose a tag to compare

@pi0 pi0 released this 16 Jul 17:57

compare changes

🚀 Enhancements

  • Implement node:os (#282)

v1.9.0

Choose a tag to compare

@pi0 pi0 released this 04 Jan 20:12
489de19

compare changes

🚀 Enhancements

  • Experimental deno preset (#155)
  • Experimental cloudflare preset (#156)
  • Experimental vercel preset (#157)
  • deno: Add process.env polyfill (a34f3e0)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.8.0

Choose a tag to compare

@pi0 pi0 released this 22 Nov 14:53
f79a091

compare changes

🚀 Enhancements

  • Polyfill node:module (#148)
  • Add polyfill for node:https with named exports (5917a50)
  • Support consola/utils subpath (#149)

🩹 Fixes

  • node:net: Add missing new exports (2b805b1)
  • node:net/socket: Add new destroySoon and autoSelectFamilyAttemptedAddresses (311c72b)

🏡 Chore

🎨 Styles

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.7.4

Choose a tag to compare

@pi0 pi0 released this 25 Aug 22:47
9050919

compare changes

🩹 Fixes

  • node:fs: Named exports for /promises subpath (b035e09)
  • node:stream: Add placeholder for more not implemented methods (294f283)

v1.7.3

Choose a tag to compare

@pi0 pi0 released this 22 Aug 21:39

compare changes

🩹 Fixes

  • Add AbortController export from node-fetch (230385c)

❤️ Contributors

Thanks to @dario-piotrowicz for reporting this issue!

v1.7.2

Choose a tag to compare

@pi0 pi0 released this 22 Aug 11:17

compare changes

🩹 Fixes

  • node:fs: Default export for node:fs/promises (37fd173)
  • node:crypto: Bind crypto functions to avoid Illegal invocation error (#134)
  • node:fs: Add mock for openAsBlob (16f6150)
  • node:stream: Support asyncDispose for readable (f8f8f46)

🏡 Chore

❤️ Contributors

v1.7.1

Choose a tag to compare

@pi0 pi0 released this 08 Aug 15:14

compare changes

🩹 Fixes

  • node:stream: Allow tree-shaking Duplex (587860f)
  • Add sideEffects to main package.json to allow tree-shaking (6dac339)
  • node:string_decoder: Use relative import (#129)

💅 Refactors

  • node:events: Rewrite EventEmitter (#128)

❤️ Contributors