Releases: npm/init-package-json
Releases · npm/init-package-json
Release list
v9.0.0
9.0.0 (2026-05-22)
⚠️ BREAKING CHANGES
init-package-jsonnow supports node^22.22.2 || ^24.15.0 || >=26.0.0- template-oss-apply
- The author prompt will now be shown even if an author is already specified in the existing package.json. If the user leaves the prompt blank, the author field will be omitted from the resulting package.json instead of being set to an empty string.
- existing packages in
node_modulesare no longer used to try to pre-populate dependencies and devDependencies - The license field is no longer included by default when running
npm initornpm init --yes. If you want to include a license, you can either set it in your npm config (npm set init-license=MIT) or provide it interactively when runningnpm init.
Features
042e1c4#359 bump to new node engine range (@owlstronaut)965f605#359 template-oss-apply (@owlstronaut)0ab701a#352 make author prompt even when already specified (@owlstronaut)6e34dd8#350 omit license field by default when initializing package.json (@owlstronaut)
Bug Fixes
cddad4f#349 stop auto populating dependencies (#349) (@wraithgar)
Dependencies
2959f9c#359validate-npm-package-name@8.0.096a5bb8#359read@6.0.0fefbeee#359promzard@4.0.06114288#359npm-package-arg@14.0.0da6fbc1#359@npmcli/package-json@8.0.0
Chores
43073db#359@npmcli/eslint-config@7.0.0(@owlstronaut)0f70db1#359 template-oss-apply (@owlstronaut)7dfdb1a#359 bumping @npmcli/template-oss from 4.30.0 to 5.1.0 (@owlstronaut)cc57229#350 template-oss-apply (@owlstronaut)e885190#348 bump @npmcli/template-oss from 4.29.0 to 4.30.0 (#348) (@dependabot[bot], @npm-cli-bot)
v8.2.5
8.2.5 (2026-02-19)
Bug Fixes
94effe9update license validation code (#345) (@wraithgar)
Chores
803e95d#346 trigger release process (#346) (@wraithgar)81d2b3c#343 bump @npmcli/template-oss from 4.23.4 to 4.29.0 (#343) (@dependabot[bot], @npm-cli-bot, @owlstronaut)
v8.2.4
8.2.4 (2025-11-21)
Dependencies
f2df0e2#338 bump promzard from 2.0.0 to 3.0.1 (#338) (@dependabot[bot])02e2313#341 bump read from 4.1.0 to 5.0.1 (#341) (@dependabot[bot])
Chores
291136b#340 bump @npmcli/eslint-config from 5.1.0 to 6.0.1 (#340) (@dependabot[bot])
v8.2.3
v8.2.2
v8.2.1
8.2.1 (2025-05-14)
Bug Fixes
d2da53b#330 private option uses the real config to determine default (#330) (@owlstronaut)
v8.2.0
8.2.0 (2025-05-05)
Features
8f6d95d#329 add new test packages (#329) (@wraithgar)
Bug Fixes
23c5eb9#327 Use the private value as long as it isn't undefined (#327) (@owlstronaut)
v8.1.1
8.1.1 (2025-04-23)
Bug Fixes
52b3766#324 make private only effective when set to true, handle existing packages (#324) (@owlstronaut)
v8.1.0
8.1.0 (2025-04-23)
Features
78b2cd0#322 adds init-private option to config (#322) (@owlstronaut)
Chores
0578b8b#320 bump @npmcli/config from 9.0.0 to 10.0.0 (#320) (@dependabot[bot])
v8.0.0
8.0.0 (2024-12-02)
⚠️ BREAKING CHANGES
- this module is now compatible with the following node versions: ^20.17.0 || >=22.9.0
- adds a new
typeprompt and changes the sort order of created packages
Features
Bug Fixes
f4c1430update node engines to ^20.17.0 || >=22.9.0 (#318) (@wraithgar)
Chores
47339ef#311 bump @npmcli/config from 8.3.4 to 9.0.0 (#311) (@dependabot[bot])2ccbf30#310 bump @npmcli/template-oss from 4.23.3 to 4.23.4 (#310) (@dependabot[bot], @npm-cli-bot)