@commercetools-frontend-extensions/change-history

中文文档
9.6.0发布于 2026/10/08MITESM + CJS近 30 天下载 3037

Change history shared components and utilities

原始使用文档
文档目录4 节
  1. Getting started
  2. Releasing
  3. Canary releases
  4. i18n

@commercetools-frontend-extensions/change-history

Package for building and integrating Commercetools Change History feature into your Merchant Center Applications.

This library takes into account that you are building a Merchant Center Applications which documentation you can find here.

The components follow the same principles of the UIKit components, but are more specific to Change History.

Getting started

# npm
$ npm install --save @commercetools-frontend-extensions/change-history

# yarn
$ yarn add @commercetools-frontend-extensions/change-history

# pnpm
$ pnpm add @commercetools-frontend-extensions/change-history

Releasing

This package uses changesets in order to do releases to NPM.

In case you want to publish a new version with the latest changes you need to:

  1. Add a changeset with pnpm exec changeset and select @commercetools-frontend-extensions/change-history as the modified package.
  2. Some options would be appear in order to do the release:
    • patch: use this release for fixes or small changes
    • minor: use this release for depenency upgrades or medium changes
    • major: use this release for breaking changes
  3. After selecting the option you will need to add a comment for the release notes. We recommend to use the same format as for the commits.
    • e.g: feat(utils): add utils for dates
  4. Push the changeset to your branch and GitHub actions will detect that the PR contains changes that affect the published library.
  5. After the PR gets merged, another PR will be created called Version Packages which is the one that will be detected, again by GitHub Actions, to do a release to NPM.
  6. Make sure that everything is correct and then merge Version Packages PR.
  7. Once the new version is published by NPM, the package will be available to be consumed manually and/or on schedule by Renovate.

Canary releases

On main branch, we automatically publish canary releases from CI to the canary distribution channel, after the build runs successfully.

Canary releases are useful to test early changes that should not be released yet to next or latest. They are automatically triggered and released after a Pull Request merged into main, unless the commit message contains [skip publish].

In order to generate a canary release, the code must be merged into main with a changeset. To access the tag, you can either:

  • Navigate to https://www.npmjs.com/package/@commercetools-frontend-extensions/change-history?activeTab=versions for the current and past versions.
  • Run pnpm info @commercetools-frontend-extensions/change-history in the terminal.

Note that canary releases will not create git tags and version bump commits.

i18n

The repo is configured with an integration with Transifex. The process for i18n is the same as the Merchant Center uses.

pnpm run i18n:build for adding the new keys to transifex.

Once the PR gets merged to main transifex will receive a notification with new keys that need to be translated (that's why is important that description and defaultMessage are descriptive enough).

Whenever the translators finish translations and mark them as done, the repo will receive a PR (per language) for adding translated messages.

Once we review that translated keys are correct and add a changeset we can merge the PR. (Don't forget to deploy the custom app)

版本与发布记录

@commercetools-frontend-extensions/change-history 共发布 467 个版本,首次发布于 2020/07/28;过去 12 个月发布了 67 个版本。

版本发布日期距今
9.6.0latest2026/10/081 个月前
0.0.0-canary-20261008082637canary2026/10/081 个月前
0.0.0-canary-202609292003462026/09/301 个月前
0.0.0-canary-202609030821542026/09/032 个月前
9.5.02026/07/074 个月前
0.0.0-canary-202607070913572026/07/074 个月前

其他发布通道:fec-161-react-19 → 0.0.0-fec-161-react-19-20250307105147,canary → 0.0.0-canary-20261008082637。

关于 @commercetools-frontend-extensions/change-history 的常见问题

@commercetools-frontend-extensions/change-history 是什么?

Change history shared components and utilities

如何安装 @commercetools-frontend-extensions/change-history?

在项目目录运行 npm install @commercetools-frontend-extensions/change-history,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:msw(1.3.3)、react(17.x || 18.x || 19.x)、react-dom(17.x || 18.x || 19.x)、react-intl(6.x || 7.x)、react-select(5.10.2)、react-router-dom(5.x)、@commercetools-frontend/sdk(24.x || 25.x || 27.x)、@commercetools-frontend/i18n(24.x || 25.x || 27.x)、@commercetools-frontend/l10n(24.x || 25.x || 27.x)、@commercetools-uikit/filters(^19.22.6 || 20.x)、@commercetools-frontend/assets(24.x || 25.x || 27.x)、@commercetools-frontend/sentry(24.x || 25.x || 27.x)、@commercetools-frontend/ui-kit(^19.22.6 || 20.x)、@commercetools-uikit/radio-input(^19.22.6 || 20.x)、@commercetools-frontend/constants(24.x || 25.x || 27.x)、@commercetools-uikit/design-system(^19.22.6 || 20.x)、@commercetools-frontend/permissions(24.x || 25.x || 27.x)、@commercetools-frontend/application-shell(24.x || 25.x || 27.x)、@commercetools-frontend/application-components(24.x || 25.x || 27.x)、@commercetools-frontend/experimental-components(8.x)、@commercetools-frontend/application-shell-connectors(24.x || 25.x || 27.x)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@commercetools-frontend-extensions/change-history 支持 TypeScript 吗?

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

@commercetools-frontend-extensions/change-history 支持 ESM 还是 CommonJS?

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

@commercetools-frontend-extensions/change-history 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@commercetools-frontend-extensions/change-history 可以商用吗?

@commercetools-frontend-extensions/change-history 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@commercetools-frontend-extensions/change-history 的下载量有多少?

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

@commercetools-frontend-extensions/change-history 还在维护吗?

最新版本 9.6.0 发布于 2026/10/08(1 个月前);至今共发布 467 个版本,其中过去 12 个月发布了 67 个;首次发布于 2020/07/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。