Files
pnpm/pnpr/client/src
Zoltan Kochan 4d3fe4b495 refactor(pnpr): move resolver endpoints under the /-/pnpr namespace (#12565)
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.
2026-06-22 01:13:15 +00:00
..