mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 11:31:45 -04:00
* feat: use JSON for npm registry metadata cache instead of msgpack Switch the on-disk package metadata cache from msgpack (.mpk) to JSON (.json). When metadata is not filtered, the raw JSON response from the registry is written directly to disk with cachedAt injected, avoiding a parse-then-serialize round-trip. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: update lockfileOnly test to use .json metadata extension Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update resolving/npm-resolver/src/pickPackage.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"name": "@pnpm/cache.api",
|
|
"version": "1000.0.36",
|
|
"description": "API for controlling the cache",
|
|
"keywords": [
|
|
"pnpm",
|
|
"pnpm11",
|
|
"cache"
|
|
],
|
|
"license": "MIT",
|
|
"funding": "https://opencollective.com/pnpm",
|
|
"repository": "https://github.com/pnpm/pnpm/tree/main/cache/api",
|
|
"homepage": "https://github.com/pnpm/pnpm/tree/main/cache/api#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
},
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"types": "lib/index.d.ts",
|
|
"exports": {
|
|
".": "./lib/index.js"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"!*.map"
|
|
],
|
|
"scripts": {
|
|
"lint": "eslint \"src/**/*.ts\"",
|
|
"test": "pnpm run compile",
|
|
"prepublishOnly": "pnpm run compile",
|
|
"compile": "tsgo --build && pnpm run lint --fix"
|
|
},
|
|
"dependencies": {
|
|
"@pnpm/config": "workspace:*",
|
|
"@pnpm/constants": "workspace:*",
|
|
"@pnpm/npm-resolver": "workspace:*",
|
|
"@pnpm/store.cafs": "workspace:*",
|
|
"@pnpm/store.index": "workspace:*",
|
|
"encode-registry": "catalog:",
|
|
"tinyglobby": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@pnpm/logger": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@pnpm/cache.api": "workspace:*",
|
|
"@pnpm/logger": "workspace:*"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.13"
|
|
},
|
|
"jest": {
|
|
"preset": "@pnpm/jest-config"
|
|
}
|
|
}
|