telexed ~ c / 531ba42e-3cdradar:70 · infra_saasLIVE
← back
NO.
#531ba42e
Topic
INFRA & SAAS
Source
GitHub Changelog
Published
2026-05-22 18:27:12
Importance
★ 7/10 — radar 70
Staged publishing and new install-time controls for npm
FIG-5311:1

Staged publishing and new install-time controls for npm

npm enhances supply-chain security with staged publishing and new --allow-* install flags. These features provide granular control over package sources, mitigating dependency attacks.

[ KEY POINTS ]
  1. staged publishing: Publish with npm publish --stage <name> and later promote with npm stage promote. This prevents accidentally tagging a pre-release as `latest`.
  2. --allow-* flags: New flags like --allow-file and --allow-remote let you explicitly whitelist installation sources during npm install, expanding on the existing --allow-git.
  3. Both features focus on hardening defenses against supply-chain attacks. It's a good practice to configure them in .npmrc even for solo projects with many dependencies.
Originalgithub.blog/changelog/2026-05-22-staged-publishing-and-new-install-time-controls-for-npmRead original →

// related