v0.11.0
Pre-release
Pre-release
Changed
- [BREAKING] The
initialize()
function has moved to theaustenite/node
sub-path export. You can now import it fromaustenite/node
instead ofaustenite
.
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 theaustenite/node
sub-path export. Importing declaration functions from the mainaustenite
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 thebuffer
module, which is essential forbinary()
declarations, and can only be polyfilled by Next.js when imported asnode:buffer
.
- The
- Fixed incorrect CommonJS type definitions.