@adcp/client

中文文档
5.25.1发布于 2026/04/30Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 1749

Renamed to @adcp/sdk. Compatibility shim that re-exports @adcp/sdk under the legacy package name.

此软件包已被标记为弃用

Renamed to @adcp/sdk in v6.0. Install @adcp/sdk@^6.1.0 instead.

原始使用文档
文档目录5 节
  1. Migration
  2. Why the rename
  3. Versioning
  4. Troubleshooting
  5. Deprecation timeline

@adcp/client

This package has been renamed to @adcp/sdk.

@adcp/client continues to publish as a thin re-export of @adcp/sdk so existing installs keep working without code changes. New projects should install @adcp/sdk directly.

Migration

- npm install @adcp/client
+ npm install @adcp/sdk
- import { AdcpClient } from '@adcp/client';
+ import { AdcpClient } from '@adcp/sdk';

All subpaths (/client, /server, /compliance, /testing, /conformance, /signing, etc.) are available under the new name with identical APIs.

Why the rename

@adcp/client ships three distinct surfaces — a buyer-side client, a server builder, and a compliance harness. The new name and /client /server /compliance subpaths make that shape explicit.

Versioning

@adcp/client and @adcp/sdk are version-linked via the repo's changeset config — both packages release at the same number on every cut, and the shim's dependencies."@adcp/sdk" covers the published range so npm dedupes consumers' trees that pull both names.

Troubleshooting

@adcp/client could not locate @adcp/sdk — the CLI delegator calls require.resolve('@adcp/sdk/package.json') and fails when @adcp/sdk is missing from the install tree. Most common with npm install --legacy-peer-deps or Yarn classic with nohoist skipping the peer auto-install. Resolve by running npm install @adcp/sdk alongside, or by removing the --legacy-peer-deps flag if it's not load-bearing for the rest of your tree.

Deprecation timeline

  • 5.x line (now): soft-deprecated. @adcp/client continues to publish as a re-export of @adcp/sdk. Every release is auto-deprecated on the npm registry so npm install shows the rename pointer; the package still works without code changes. New features ship to @adcp/sdk only — the shim never gains capability.
  • 6.0 (next major): hard-deprecated. Final release of @adcp/client ships under 5.x; 6.0 publishes as @adcp/sdk only. Consumers who haven't migrated by then need to swap their imports before bumping major.
  • Removal signal: @adcp/sdk weekly downloads sustained above @adcp/client for two consecutive months. We post the removal date 90 days in advance on the GitHub repo before stopping shim publishes.

The shim is intentionally minimal so this timeline can hold without surprise — there's nothing in packages/client-shim/ that diverges from @adcp/sdk semantically. If you're reading this and want the migration to take a long weekend, the change is s/@adcp\/client/@adcp\/sdk/g across imports plus a single dependency swap in package.json.

版本与发布记录

@adcp/client 共发布 143 个版本,首次发布于 2025/09/24;过去 12 个月发布了 117 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.25.1latest2026/04/306 个月前
5.25.02026/04/306 个月前
5.24.02026/04/306 个月前
5.23.02026/04/296 个月前
5.22.02026/04/296 个月前
5.21.12026/04/276 个月前

关于 @adcp/client 的常见问题

@adcp/client 是什么?

Renamed to @adcp/sdk. Compatibility shim that re-exports @adcp/sdk under the legacy package name.注意:该包已被作者标记为弃用——Renamed to @adcp/sdk in v6.0. Install @adcp/sdk@^6.1.0 instead.

如何安装 @adcp/client?

在项目目录运行 npm install @adcp/client,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 adcp,可以用 npx adcp 直接运行。

@adcp/client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adcp/client 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@adcp/client 可以商用吗?

@adcp/client 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@adcp/client 的下载量有多少?

根据 npm 官方下载统计,@adcp/client 在 2026/10/05 – 2026/11/03 这 30 天内被下载 1,749 次,日均约 58 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adcp/client 还在维护吗?

最新版本 5.25.1 发布于 2026/04/30(6 个月前);至今共发布 143 个版本,其中过去 12 个月发布了 117 个;首次发布于 2025/09/24。作者已将其标记为弃用,新项目建议寻找替代方案。