News for hackers. Stuff that matters.
Re:Upcoming breaking changes for NPM v12 by mschuster91 on Tuesday June 09, 2026 @06:27PM (#48468671)
An idea might be to not just pin "package xyz allowed", but "package xyz postinstall allowed with hash <1234>".
Re:Upcoming breaking changes for NPM v12 by jffry on Tuesday June 09, 2026 @07:38PM (#48469300)
The default behavior for the automated "add everything existing to the allowlist" is to include the specific version: https://docs.npmjs.com/cli/v11/using-npm/config#allow-script...

Together with a lockfile that does achieve "package xyz postinstall allowed with hash <1234>"