Changelog
5.0.0
^14.17.0 || ^16.0.0 || >= 18.0.0
.main
field.node:
URL scheme for Node.js builtin module imports in tests.jsconfig.json
:
compilerOptions.maxNodeModuleJsDepth
to 10
.compilerOptions.module
to nodenext
.actions/checkout
to v3.actions/setup-node
to v3.not IE > 0
from the Browserslist query.Changelog
4.0.0
^12.22.0 || ^14.17.0 || >= 16.0.0
../package
from the package exports
field; the full package.json
filename must be used in a require
path..mjs
files instead of CJS in .js
files, accessible via import
but not require
../fakeTag.mjs
module to the package exports
field to allow it to be deep imported.types
script.jsdoc-md
dev dependency and the related package scripts, replacing the readme “API” section with manually written “Examples” and “Exports” sections.esm
and mjs
keywords to the package keywords
field.singleQuote
to the default, false
.license.md
MIT License file.Changelog
3.0.0
^12.20 || >= 14.13
.> 0.5%, not OperaMini all, not IE > 0, not dead
.exports
field..mjs
file instead of CJS in a .js
file.jsdoc-md
in package scripts to generate a new “API” readme section. The published module now contains JSDoc comments, which might affect TypeScript projects.browserslist
field query.actions/checkout
to v2.actions/setup-node
to v2.npm install-test
command.CI
environment variable as it’s set by default.sideEffects
field.main
path.npm-debug.log
from the .gitignore
file as npm v4.2.0+ doesn’t create it in the current working directory.test:prettier
script.semi
to the default, true
.fakeTag
instead of being anonymous.changelog.md
is no longer published.Changelog
2.0.0
coverage-node
for test code coverage..github/funding.yml
to display a sponsor button in GitHub.package.json
funding
field to enable npm CLI funding features.eslint-plugin-import-order-alphabetical
dev dependency.Changelog
1.0.1
husky
and lint-staged
.eslint-config-env
.test-director
instead of ava
for tests.repository
field.main
field.engines
field declaring support for Node.js >= v8.10, as that is what ESLint supports. This only limits the dev environment; the published code is very simple and should be able to run almost anywhere.browserslist
field, for linting.package.json
to separate files to reduce the published package size..yml
files.package-lock.json
from the .gitignore
file, as it has been disabled anyway.0.1.0
to 1.0.0
.