pnpm 9.5 Introduces Catalogs: Shareable Dependency Version S...
Blog post from Socket
pnpm 9.5 introduces the Catalogs feature, which enhances package management by enabling shareable dependency version specifiers, thereby reducing merge conflicts and improving support for monorepos. This new feature, inspired by a similar concept from the Gradle build tool, allows multiple package.json files to share a single version specifier of a dependency through a new `catalog:` protocol, streamlining the synchronization of dependency versions across monorepos and minimizing maintenance overhead. Catalogs have matured independently of a related concept called Templates and are implemented in the `pnpm-workspace.yaml` file, where users can declare catalogs that package.json files can reference. While the `pnpm add` command will soon incorporate versions from the default catalog, the `pnpm update` command currently lacks support for catalogs, necessitating manual updates in the meantime. The feature has been well-received by the community, addressing the common challenge of maintaining consistent dependency versions and reducing the likelihood of merge conflicts in monorepos.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.