Packages

unenv

1.10.0 · 16 Jul 2024MIT49.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.7.0

8 Aug 2023Where it was published

1.10.0 is the newest release of 1.x.

In short

6 new2 fixed2 internal

Release note

compare changes

Enhancements

  • Expose __unenv__ flag for unenv classes and functions

  • node: Allow overriding AsyncHook, AsyncLocalStorage and AsyncResource with globalThis

  • node:buffer: Allow overriding Buffer with globalThis

  • node:events: Allow overriding EventEmitter with globalThis

  • node:stream: Allow overriding Duplex, Readable, Transform and Writable with globalThis

  • Add node:string_decoder with global polyfill

Fixes

  • fetch: Avoid sending body for null body reponses

  • node:crypto: Properly call web crypto methods

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.