Repository navigation
Open
Description
These are changes in consideration for future semver major npm releases.
Breaking changes
- Support for reading
stdinacross all commands (ie. https://github.com/npm/rfcs/blob/3d5b2130504139bdc8a3b599923aa07d2ff79c96/accepted/0000-dependency-selector-syntax.md#commands-could-read-from-stdin) - Support Package Distributions by default
- Revert all of the hacks around "globstar" in packlist. Just use node-glob's patterns. This is just a [BUG]
npm packdoesn't match directory prefiex (dist-*doesn't matchdist-cjs/index.js) cli#7514 [BUG/QUESTION] since npm 9.x some files[] globs undermatch npm-packlist#152 at this point. - Make
--silenttruly silent (eg dont set up any process listeners) and create a net-new way of hiding only logging output. (The opposite could also be done). Then go through and remove allnpm.silentchecks. [BUG] Inconsistent --silent for npm install cli#4877 (comment) - Make
run-scriptbanners a log event. They have been swapped to stderr for json mode, but I think they should always be on stderr. I think an open question would be if they should be called withoutput.erroror as an actual log (maybe with a customMETAprefix)? [BUG] When run script loglevel is ignored unless set to "silent" cli#3354 (comment) - Apply
--ignore-scriptsto thepreparescript when packing and publishing [BUG]--ignore-scriptsis not respected bynpm publishcli#3707 [BUG] npm pack and publish should not run hooks, or hooks need to have opt-out cli#7211 (comment) - Make
pack --jsonreturn an object likepublish --jsoninstead of an array - Dont unwrap any single item arrays in
view --json - Set all json output on known top-level keys. I think those should be
resultanderrorto start (🚲 those names). - get rid of "populate deps on init" https://github.com/npm/init-package-json/blob/main/lib/default-input.js#L11-L39
- add
bun.lockto default pack ignorelist feat: add bun.lock to ignorelist npm-packlist#257 - [BUG] npx needs to stop mixing local, global, and npx contexts #937
- change default licensing #970
- Make
init.authorprompt likeinit.licenseinit-package-json#30 - Update minipass-flush & minipass-pipeline to latest major. Will cause breaking changes in cacache, make-fetch-happen
Features
- Consider different encoding library minipass-fetch#183
- New
npm linkexperience - Add new "lifecycle events" API - differentiate between scripts & events - user/project & dependency defined usecases)
- First-class
import-mapsSupport - Warn/error on unecessary config items in publishConfig
Refs
Metadata
Metadata
Assignees
Labels
No labels
Activity
wraithgar commentedon Feb 8, 2025
npm/cli#8090
wraithgar commentedon Jul 22, 2025
Remove url.parse from nopt
wraithgar commentedon Aug 20, 2025
kapouer commentedon Dec 21, 2025
wraithgar commentedon Feb 6, 2026
npm/pacote#442
wraithgar commentedon Feb 9, 2026
npm/cli#8938
[-]npm cli future changes[/-][+]npm cli future (breaking) changes[/+]