mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-28 01:45:30 -04:00
The pnpr resolver's two POST endpoints were the only proprietary routes served outside npm's reserved /-/ namespace, where they overlapped the package path space (a package literally named `v1`). Move them under the /-/pnpr namespace alongside the existing capability handshake: POST /v1/resolve -> POST /-/pnpr/v0/resolve POST /v1/verify-lockfile -> POST /-/pnpr/v0/verify-lockfile The GET /-/pnpr handshake now advertises protocol version 0 to match, and the Rust client's PROTOCOL_VERSION drops to 0. Keeping every pnpr route in the reserved namespace removes the package-collision concern and lets the disabled-resolver branch stop special-casing the old npm-compatible GET paths. No backward compatibility is kept: the resolver protocol is not yet released. Server and both clients (Rust pacquet-pnpr-client and the TypeScript `@pnpm/pnpr.client`) change together.