Releases
v11.0.0
Major
Added a package exports
field to support native ESM in Node.js.
Some source and published files are now .js
(CJS) instead of .mjs
(ESM), so undocumented deep imports may no longer work. This approach avoids the dual package hazard .
Updated Node.js support from v10+ to 10 - 12 || >= 13.7
to reflect the package exports
related breaking changes.
Patch
Updated dependencies.
Added a new babel-plugin-transform-runtime-file-extensions
dev dependency to simplify Babel config.
Improved the package prepare:prettier
and test:prettier
scripts.
Reordered the package test:eslint
script args for consistency with test:prettier
.
Configured Prettier option semi
to the default, true
.
Reconfigured size-limit
:
Separately test the universal and server only exports, without using unpublished size limit entry files that bloat the measured sizes.
Separately test the ESM and CJS exports.
Separately limit tests, with the universal ESM and CJS set to a 3 KB maximum size.
Removed redundant ESLint disable comments.
Also run GitHub Actions with Node.js v14.
Updated readme content.
Updated JSDoc code examples:
Prettier formatting.
Import React in examples containing JSX.
Use Node.js ESM compatible import specifiers.
You can’t perform that action at this time.