GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: clarify unknown-config breaking change note in changelog by reggi · Pull Request #9733 · npm/cli

Conversation

@reggi

@reggi reggi commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What / Why

#9729 reverts the .npmrc file-config half of the breaking change from 979518d (#9276): unknown .npmrc configs warn by default again, and the new strict-npmrc config opts back into erroring. Unknown CLI flags and abbreviations still throw.

The 12.0.0-pre.1 changelog entry still carried the original wording, which claimed unknown .npmrc configs now throw. Since release-please aggregates every prerelease BREAKING CHANGE note into the eventual stable v12.0.0 release notes, that stale line would surface (inaccurately) in the 12.0.0 notes. This corrects the wording in place.

Change

Edits the single breaking-changes bullet in the ## [12.0.0-pre.1] section:

unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning. (Unknown .npmrc configs still warn by default; opt into erroring with the new strict-npmrc config.)

Notes

  • Manual, targeted edit to an already-released, release-please-generated section — this does not disturb release-please, which derives versions from git tags + commit history and only prepends new sections. Precedent: chore: add contributor to changelog entry #8298 (chore: add contributor to changelog entry).
  • Best merged alongside / after feat: warn instead of error on unknown .npmrc configs #9729 so the corrected note reflects shipped behavior.

Co-authored-by: Copilot [email protected]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@reggi
chore: clarify unknown-config breaking change note in changelog
ea65593
#9729 reverts the .npmrc file-config half of the breaking change from
979518d (#9276): unknown .npmrc configs warn by default again, with the
new strict-npmrc config to opt back into erroring. Update the
12.0.0-pre.1 breaking-changes note so it no longer claims unknown .npmrc
configs throw, while still noting that unknown CLI flags and
abbreviations do.

Co-authored-by: Copilot <[email protected]>
@reggi
reggi requested review from a team as code owners July 8, 2026 18:02
v-kchindam-infy
v-kchindam-infy approved these changes Jul 8, 2026
View reviewed changes
@reggi
reggi merged commit 6fefd0e into latest Jul 8, 2026
26 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@reggi
reggi deleted the reggi/changelog-npmrc-revert-note branch July 8, 2026 18:16
martinrrm
martinrrm approved these changes Jul 8, 2026
View reviewed changes
@github-actions github-actions Bot mentioned this pull request Jul 8, 2026
chore: release 12.0.0-pre.3 #9700
Merged
@Hashim1999164 Hashim1999164 mentioned this pull request Jul 26, 2026
docs: clarify npm 12 unknown-config breaking change in changelogs #9805
Merged
reggi pushed a commit that referenced this pull request Jul 27, 2026
@Hashim1999164
docs: clarify npm 12 unknown-config breaking change in changelogs (#9805
9e17dc0
)

## Summary

Fixes #9802.

Before the npm 12 stable cut, #9729 restored warn-by-default for unknown
`.npmrc` keys (with `strict-npmrc` to opt into errors). #9733 updated
the `12.0.0-pre.1` changelog bullet to match, but the aggregated stable
`12.0.0` / `@npmcli/[email protected]` breaking-change notes (and the config
package's `pre.1` note) still said unknown `.npmrc` configs throw.

That stale line also shipped in the published [v12.0.0 GitHub release
notes](https://github.com/npm/cli/releases/tag/v12.0.0).

This aligns those changelog bullets with the corrected wording:

> unknown CLI flags, abbreviated flags, and single-hyphen multi-char
shorthands now throw instead of warning. (Unknown `.npmrc` configs still
warn by default; opt into erroring with the new `strict-npmrc` config.)

Maintainers may also want to refresh the published `v12.0.0` release
body to match; that cannot be updated via this PR alone.

## References

- #9729 (warn instead of error on unknown `.npmrc` configs)
- #9733 (clarified the `pre.1` changelog note)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@martinrrm martinrrm martinrrm approved these changes
+1 more reviewer
@v-kchindam-infy v-kchindam-infy v-kchindam-infy approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@reggi @martinrrm @v-kchindam-infy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.