台灣 AI x AEC 情報BY FBI SICENTER
AI × AEC · CURATED INSIGHT

JavaScript Package Manager pnpm 12.24 Fixes Archive Parsing Discrepancies and Over-Authorization Issues

AI coding · Cybersecurity and privacy · AI assistants

JavaScript package manager pnpm released version 12.24.0, resolving security discrepancies with npm over abnormal archive header parsing and tightening permission approvals. The update also extends AI agent skill support to globally installed packages and introduces audit commands for deprecations and platform compatibility.

JavaScript Package Manager pnpm 12.24 Fixes Archive Parsing Discrepancies and Over-Authorization Issues
AI-generated concept illustration; not an event photograph.

JavaScript package manager pnpm has released version 12.24.0, addressing security issues in package archive parsing and permission approval workflows while expanding package auditing and AI agent integration. Regarding archive extraction, pnpm and npm previously parsed certain abnormal archive headers differently, which could lead to different files being extracted from the same package archive. Version 12.24.0 adopts npm-consistent parsing behavior and rejects installation if an archive cannot be parsed in the same manner. For permission control and AI integration, running 'pnpm approve' on packages without pending permissions in older versions automatically granted both build script execution and AI agent skill installation rights. The new release requires developers to explicitly select the permissions to grant, necessitating upfront configuration in CI or non-interactive terminals. Additionally, while AI agent skills were previously limited to direct project dependencies, the new version extends support to globally installed packages, linking approved skills to the user's home skill directory. On maintenance and supply chain security, pnpm introduces 'pnpm audit deprecations' and 'pnpm audit engines' to flag deprecated packages and environment incompatibilities, returning exit code 1 to facilitate CI/CD pipelines. Installation warnings are now consolidated at the end of the log, and an issue omitting optional dependencies during SBOM generation for dev dependencies has been resolved.

Key takeaways

  • Aligned package archive parsing with npm standards, rejecting installation if parsing discrepancy occurs.
  • Restricted pnpm approve behavior to require explicit privilege selection instead of default dual authorization.
  • Added support for AI agent skills from globally installed packages, linking them to the user home directory.
  • Introduced audit commands for deprecations and environment compatibility, and fixed dev-dependency SBOM omissions.

Source:iThome Read the original ↗

Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.

← All articles