Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@devongovett devongovett released this 18 Jun 22:50
· 6 commits to master since this release

This release modernizes restructure to drop Node-specific dependencies so it can more easily be used in the browser. With these changes, restructure now has zero dependencies.

  • Add ESM support.
  • Input and output is now Uint8Array rather than Buffer
  • Encoding drops the streaming API in favor of a toBuffer method.
  • fromBuffer is also added as a shortcut.
  • Legacy text encodings are now supported via TextDecoder, a native browser API also implemented in Node, rather than iconv-lite. This means only decoding is supported, not encoding, as TextEncoder does not support legacy encodings.
  • Drop Node 12 support. Raise baseline to 14 (current LTS).