Skip to content

Releases: unjs/unenv

v2.0.0-rc.6

18 Feb 10:39
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Use node:process for polyfill (#453)
  • Resolve tree-shaking issues with node/util (#458)
  • Allow tree-shaking with default exports (#459)
  • Circular dependency between node and web performance.now() (#463)

💅 Refactors

  • process: ⚠️ Extract nextTick to a separate file (#454)
  • Mark process internals as side-effect free (#455)
  • Improve node:util tree-shaking (#456)
  • Overhaul node constants (#460)

Types

  • Rename internal node type imports (#461)
  • DefineEnv returns a ResolvedEnvironment (#451)
  • process: refine types (#452)

❤️ Contributors

v2.0.0-rc.5

12 Feb 20:15
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • console: Rename _time to _times (#443)
  • util: Import types from node:util/types (#447)
  • DefineEnv returns a ResolvedEnvironment where inject values are never false (#448)

💅 Refactors

  • ⚠️ Add all npm shims with opt-in npmShims (#444)
  • ⚠️ Remove extra node exports (#445)
  • ⚠️ Rewrite process as class (#450)

📦 Build

  • Copy non .ts files as is (5d18c2b)

⚠️ Breaking Changes

  • ⚠️ Add all npm shims with opt-in npmShims (#444)
  • ⚠️ Remove extra node exports (#445)
  • ⚠️ Rewrite process as class (#450)

❤️ Contributors

v2.0.0-rc.4

11 Feb 20:29
@pi0 pi0
Compare
Choose a tag to compare

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

07 Feb 02:39
@pi0 pi0
Compare
Choose a tag to compare

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

06 Feb 20:39
@pi0 pi0
Compare
Choose a tag to compare

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

🩹 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

16 Jul 17:57
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Implement node:os (#282)

v1.9.0

04 Jan 20:12
@pi0 pi0
489de19
Compare
Choose a tag to compare

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

22 Nov 14:53
@pi0 pi0
f79a091
Compare
Choose a tag to compare

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

25 Aug 22:47
@pi0 pi0
9050919
Compare
Choose a tag to compare

compare changes

🩹 Fixes

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

v1.7.3

22 Aug 21:39
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

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

❤️ Contributors

Thanks to @dario-piotrowicz for reporting this issue!