Skip to content

v0.11.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 05 Nov 06:44
· 6 commits to main since this release
v0.11.0
4c78cdc

Changed

  • [BREAKING] The initialize() function has moved to the austenite/node sub-path export. You can now import it from austenite/node instead of austenite.

Fixed

  • This library now works better with Next.js. Previously Next.js would complain about various imports that were incompatible with the Edge Runtime. This has been improved in two ways:
    • The initialize() function, which uses some Node.js APIs, has been moved to the austenite/node sub-path export. Importing declaration functions from the main austenite module will no longer cause these Node.js APIs to be included in the Next.js server bundle.
    • Any remaining Node.js API imports have been updated to use the node: protocol, which allows Next.js to provide Edge Runtime polyfills. An example of this is the use of the buffer module, which is essential for binary() declarations, and can only be polyfilled by Next.js when imported as node:buffer.
  • Fixed incorrect CommonJS type definitions.