Home / Companies / Socket / Blog / Post Details
Content Deep Dive

pnpm 9.5 Introduces Catalogs: Shareable Dependency Version S...

Blog post from Socket

Post Details
Company
Date Published
Author
Sarah Gooding
Word Count
694
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

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.