| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2021-11-27 | 2.1 kB | |
| Version 16.0.0 source code.tar.gz | 2021-11-27 | 169.0 kB | |
| Version 16.0.0 source code.zip | 2021-11-27 | 204.9 kB | |
| Totals: 3 Items | 376.0 kB | 0 | |
Major
- Updated Node.js support to
^12.22.0 || ^14.17.0 || >= 16.0.0. - Updated dependencies, some of which require newer Node.js versions than previously supported.
- Public modules are now individually listed in the package
filesandexportsfields. - Removed
./packagefrom the packageexportsfield; the fullpackage.jsonfilename must be used in arequirepath. - Removed the package main index module; deep imports must be used.
- Shortened public module deep import paths, removing the
/public/. - The API is now ESM in
.mjsfiles instead of CJS in.jsfiles, accessible viaimportbut notrequire. - Switched back to using
React.createElementinstead of the the new React JSX runtime.
Patch
- Also run GitHub Actions CI with Node.js v17.
- Simplified package scripts.
- Removed the
isobjectdependency. - Refactored the
useCacheEntryPrunePreventionReact hook to avoid theReact.useCallbackReact hook. - Avoid named imports from
reactandreact-domas they’re not proper Node.js ESM. - Removed conditionality on the Node.js global
process.env.NODE_ENV. - Configured polyfilled globals in ESLint config for
eslint-plugin-compat. - Fixed JSDoc grammar typos.
- Reorganized the test file structure.
- Corrected a test name.
- Test the bundle sizes for public modules individually.
- Use a new
assertBundleSizefunction to assert module bundle size in tests: - Failure message contains details about the bundle size and how much the limit was exceeded.
- Errors when the surplus is greater than 25% of the limit, suggesting the limit should be reduced.
- Resolves the minified bundle and its gzipped size for debugging in tests.
- Configured Prettier option
singleQuoteto the default,false. - Documentation tweaks.