Zoltan Kochan
fcdd50aaa7
chore(release): 11.0.0-rc.3
2026-04-21 00:17:38 +02:00
Zoltan Kochan
96ece9d736
chore(release): 11.0.0-rc.2
2026-04-17 18:21:35 +02:00
Zoltan Kochan
f7c23231a9
chore(release): 11.0.0-rc.1
2026-04-16 01:18:55 +02:00
Alessio Attilio
b738043ab1
feat: implement native pnpm ping command ( #11258 )
...
Add native `pnpm ping` command to test connectivity to registries.
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2026-04-14 21:21:55 +00:00
Alessio Attilio
f2083f4d7a
feat(cli): implement native pnpm search ( #11243 )
...
This PR implements the native `pnpm search` command and its aliases (`s`, `se`, `find`), removing the fallback to npm CLI. It follows the project standards by being root-cause and avoiding type duplications.
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2026-04-14 19:58:11 +00:00
Zoltan Kochan
06d6c2d405
chore(release): 11.0.0-rc.0
2026-04-10 18:30:33 +02:00
Alessio Attilio
2c90d4061d
feat: add native pnpm deprecate and undeprecate commands ( #11120 )
...
Adds native `pnpm deprecate` and `pnpm undeprecate` commands that interact with the npm registry directly instead of delegating to the npm CLI.
## Changes
- **New package `@pnpm/registry-access.commands`** — a new top-level domain for commands that manage packages on the registry
- **`pnpm deprecate <package>[@<version>] <message>`** — sets a deprecation message on matching versions
- **`pnpm undeprecate <package>[@<version>]`** — removes deprecation from already-deprecated versions
- Updated `pnpm-workspace.yaml`, CLI registration, and meta-updater config
- Removed `deprecate` from the not-implemented commands list
- Added changeset
## Implementation Details
- `registry-access/commands/src/deprecation/common.ts` — shared logic (auth, registry fetch, version matching)
- `registry-access/commands/src/deprecation/deprecate.ts` — deprecate command handler
- `registry-access/commands/src/deprecation/undeprecate.ts` — undeprecate command handler
- Uses `pickRegistryForPackage` for per-scope registry support
- Uses `createFetchFromRegistry`/`fetchWithDispatcher` for proxy/TLS support
- Uses `@pnpm/npm-package-arg` for package spec parsing
- Reuses `PackageMeta`/`PackageInRegistry` types from `@pnpm/resolving.registry.types`
- Sends minimal payload (only `name` + modified `versions.deprecated` fields) to the registry
## Usage
```bash
# Deprecate all versions
pnpm deprecate my-package "This package is deprecated"
# Deprecate a specific version
pnpm deprecate my-package@1.0.0 "Use v2 instead"
# Undeprecate all versions
pnpm undeprecate my-package
# Undeprecate a specific version
pnpm undeprecate my-package@1.0.0
```
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2026-04-06 15:30:11 +02:00