mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 01:51:41 -04:00
pnpm uninstall could not always link the dependency name to the dependency ID (used in the store). To solve this issue, a dependency name to ID map is added to the dependencies section of `store.json`. PR #371 BREAKING CHANGE: The structure of the `store.json` has been changed. Previously the dependencies property contained just a list of dependency IDs. E.g.: ```json { "dependencies": { "math": [ "sum@1.0.0", "@zkochan+max@2.1.0" ] } } ``` With this structure it was hard to link the dependencies to their IDs. The new structure uses a map which links the dependency to its ID: ```json { "dependencies": { "map": { "sum": "sum@1.0.0", "@zkochan/max": "@zkochan+max@2.1.0" } } } ``` Unfortunately the stores created by older version of pnpm are not usable after this breaking change. They have to be removed before using the new version of pnpm.