Releases: jaydenseric/snapshot-assertion
Releases · jaydenseric/snapshot-assertion
Version 5.0.0
Major
- Updated Node.js support to
^14.17.0 || ^16.0.0 || >= 18.0.0. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- Removed the package
mainfield. - Use the
node:URL scheme for Node.js builtin module imports. - Migrated from the Node.js builtin module
fstonode:fs/promises.
Patch
- Updated
jsconfig.json:- Set
compilerOptions.maxNodeModuleJsDepthto10. - Set
compilerOptions.moduletonodenext.
- Set
- Updated ESLint config.
- Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkoutto v3. - Updated
actions/setup-nodeto v3.
- Tweaked formatting of a JSDoc comment.
- Revamped the readme:
- Removed the badges.
- Added a “Requirements” section.
- Added information about TypeScript config and optimal JavaScript module design.
Version 4.0.2
Patch
- Updated dev dependencies.
- Simplified dev dependencies and config for ESLint.
- Removed the
jsdoc-mddev dependency and the related package scripts, replacing the readme “API” section with manually written “Examples” and “Exports” sections. - Updated
jsconfig.jsonto disable TypeScript automatic type acquisition for the project. - Added a
license.mdMIT License file.
Version 4.0.1
Patch
- Moved
@types/nodefrom packagedevDependenciestodependencies, using*for the version. - Updated dev dependencies.
Version 4.0.0
Major
- Updated Node.js support to
^12.22.0 || ^14.17.0 || >= 16.0.0. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- Removed
./packagefrom the packageexportsfield; the fullpackage.jsonfilename must be used in arequirepath. - Renamed
index.mjstoassertSnapshot.mjsand added it to the packageexportsfield. - Renamed the function
snapshottoassertSnapshot. - Renamed the function
assertSnapshotargument 2snapshotFilePathtosnapshotFile, and allow it to also be a fileURLinstance. - Added runtime argument type checks.
- Implemented TypeScript types via JSDoc comments.
Patch
- Simplified package scripts.
- Added a package
docs-checkscript that checks the readme API docs are up to date with the source JSDoc. - Check TypeScript types via a new package
typesscript. - Also run GitHub Actions CI with Node.js v17, and drop v15.
- Configured Prettier option
singleQuoteto the default,false. - Improved tests.
- Documentation tweaks.
Version 3.0.0
Major
- Updated Node.js support to
^12.20 || >= 14.13. - Updated dev dependencies, some of which require newer Node.js versions than were previously supported.
- Added a package
exportsfield. - The API is now ESM in
.mjsfiles instead of CJS in.jsfiles, accessible viaimportbut notrequire.
Minor
- Added package
sideEffectsfield.
Patch
- Stop using
hard-rejectionto detect unhandledPromiserejections in tests, as Node.js v15+ does this natively. - Simplified the package scripts now that
jsdoc-mdv10 automatically generates a Prettier formatted readme. - Updated GitHub Actions CI config:
- Also run tests with Node.js v16.
- Updated
actions/checkoutto v2. - Updated
actions/setup-nodeto v2. - Don’t specify the
CIenvironment variable as it’s set by default.
- Use
Promise.allfor faster tests. - Tweak whitespace formatting.
- Readme tweaks.
Version 2.0.0
Major
- Updated Node.js support to
^10.17.0 || ^12.0.0 || >= 13.7.0. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Patch
- Ensure GitHub Actions CI runs on pull request.
- Also run GitHub Actions CI with Node.js v14 and v15, and not v13.
- Simplified the GitHub Actions CI config with the
npm install-testcommand. - Improved the package
prepare:prettierandtest:prettierscripts. - Configured Prettier option
semito the default,true. - Removed a now redundant ESLint rule config.
- Removed
npm-debug.logfrom the.gitignorefile as npm v4.2.0+ doesn’t create it in the current working directory. - Use HTTPS in an
.editorconfigcomment URL. - Use HTTPS in a URL within a
snapshotfunction code example. - Documented how to
importandrequirethesnapshotfunction.
Version 1.0.0
Initial release.