@adobe/adobe-client-data-layer

中文文档
3.0.1发布于 2025/09/04Apache-2.0近 30 天下载 26.8万

Adobe Client Data Layer

原始使用文档
文档目录7 节
  1. Adobe Client Data Layer
  2. Documentation
  3. Consuming
  4. Building / Testing
  5. Releasing
  6. Contributing
  7. Licensing

Adobe Client Data Layer

NPM version BundlePhobia LGTM CircleCI Codecov

The Adobe Client Data Layer aims to reduce the effort to instrument websites by providing a standardized method to expose and access any kind of data for any script.

Documentation

Consuming

The best way to try out the Adobe Client Data Layer is to install the distributed npm package in your project build, by running:

npm install @adobe/adobe-client-data-layer

Locate the /dist folder in the installed package, which contains the built and minified javascript.

This script can then be included in your page head, as follows:

<script src="adobe-client-data-layer.min.js" async defer></script>

Note - you can directly access the minified version of the data layer without downloading the sources and compiling them.

Building / Testing

First run the following commands:

npm install

Then choose from the following npm scripts:

  • npm run dev - generates the build in the ./dist folder and runs a development server on localhost:3000.
  • npm run build - generates the build in the ./dist folder.
  • npm run test - run the unit tests

Note - you can get some stats (bundle size, download time) about the released version.

Releasing

Release can be triggered only as a Github action. There is no way to release package manually using npm scripts anymore.

To release using Github action:

  1. Go to the Github Actions tab.
  2. Select "Release and publish to npm" and click "Run workflow".
  3. Provide a new version. Patch, minor or major versions allowed, see NPM Semantic Versioning.

Release and publish Github action will:

  • increase the ACDL version accordingly,
  • commit release and push to Github repository,
  • create and push the Git release tag,
  • publish the npm package.

Contributing

Contributions are welcome! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

版本与发布记录

@adobe/adobe-client-data-layer 共发布 18 个版本,首次发布于 2019/10/29;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.1latest2025/09/041.2 年前
3.0.02025/08/281.2 年前
2.0.22021/06/115 年前
2.0.12021/02/225 年前
2.0.02021/02/185 年前
1.1.52021/02/035 年前

关于 @adobe/adobe-client-data-layer 的常见问题

@adobe/adobe-client-data-layer 是什么?

Adobe Client Data Layer

如何安装 @adobe/adobe-client-data-layer?

在项目目录运行 npm install @adobe/adobe-client-data-layer,或使用 pnpm add / yarn add / bun add。

@adobe/adobe-client-data-layer 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adobe__adobe-client-data-layer 是否存在。

@adobe/adobe-client-data-layer 可以商用吗?

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

@adobe/adobe-client-data-layer 的下载量有多少?

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

@adobe/adobe-client-data-layer 还在维护吗?

最新版本 3.0.1 发布于 2025/09/04(1.2 年前);至今共发布 18 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/10/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。