Major
- Updated Node.js support to
^12.20 || >= 14.13
. - Stopped supporting Internet Explorer.
- Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- Replaced the the
package.json
exports
field public subpath folder mapping (deprecated by Node.js) with a subpath pattern, fixing #17. Deeprequire
paths withinextract-files/public/
must now include the.js
file extension. - Removed Babel related dev dependencies, config, and scripts. Published modules now contain more modern ES syntax.
- Published modules now contain JSDoc comments, which might affect TypeScript projects.
- The tests are now ESM in
.mjs
files instead of CJS in.js
files.
Patch
- Stop using
hard-rejection
to detect unhandledPromise
rejections in tests, as Node.js v15+ does this natively. - Used
revertable-globals
to define globals per-test. - Test the bundle size manually using
esbuild
andgzip-size
, removingsize-limit
related dev dependencies, config, and scripts. - Removed
npm-debug.log
from the.gitignore
file as npm v4.2.0+ doesn’t create it in the current working directory. - Fixed a test of
extractFiles
with anundefined
value. - Updated GitHub Actions CI config:
- Run tests with Node.js v12, v14, v16.
- Updated
actions/checkout
to v2. - Updated
actions/setup-node
to v2. - Don’t specify the
CI
environment variable as it’s set by default.
- More specific package
main
field path. - Simplified JSDoc related package scripts now that
jsdoc-md
v10 automatically generates a Prettier formatted readme. - Added a package
test:jsdoc
script that checks the readme API docs are up to date with the source JSDoc. - Use the
.js
file extension in internalrequire
paths. - Improved documentation.
- The file
changelog.md
is no longer published. - Updated URLs in the changelog entries for v3.1.0 and v5.0.1.