@dendronhq/conventional-changelog-dendron

中文文档
5.0.11发布于 2020/08/25ISCCommonJS近 30 天下载 2094

conventional-changelog angular preset

原始使用文档
文档目录9 节
  1. Angular Convention
  2. Examples
  3. Commit Message Format
  4. Revert
  5. Type
  6. Scope
  7. Subject
  8. Body
  9. Footer

NPM version Build Status Dependency Status Coverage Status

conventional-changelog angular preset

Issues with the convention itself should be reported on the Angular issue tracker.

Angular Convention

Angular's commit message guidelines.

Examples

Appears under "Features" header, pencil subheader:

feat(pencil): add 'graphiteWidth' option

Appears under "Bug Fixes" header, graphite subheader, with a link to issue #28:

fix(graphite): stop graphite breaking when width < 0.1

Closes #28

Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:

perf(pencil): remove graphiteWidth option

BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.

The following commit and commit 667ecc1 do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.

revert: feat(pencil): add 'graphiteWidth' option

This reverts commit 667ecc1654a317a13331b17617d973392f415f02.

Commit Message Format

A commit message consists of a header, body and footer. The header has a type, scope and subject:

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

The header is mandatory and the scope of the header is optional.

Revert

If the commit reverts a previous commit, it should begin with revert: , followed by the header of the reverted commit. In the body it should say: This reverts commit <hash>., where the hash is the SHA of the commit being reverted.

Type

If the prefix is feat, fix or perf, it will appear in the changelog. However if there is any BREAKING CHANGE, the commit will always appear in the changelog.

Other prefixes are up to your discretion. Suggested prefixes are build, ci, docs ,style, refactor, and test for non-changelog related tasks.

Details regarding these types can be found in the official Angular Contributing Guidelines.

Scope

The scope could be anything specifying place of the commit change. For example $location, $browser, $compile, $rootScope, ngHref, ngClick, ngView, etc...

Subject

The subject contains succinct description of the change:

  • use the imperative, present tense: "change" not "changed" nor "changes"
  • don't capitalize first letter
  • no dot (.) at the end

Body

Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.

The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit Closes.

Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.

A detailed explanation can be found in this document.

版本与发布记录

@dendronhq/conventional-changelog-dendron 共发布 1 个版本,首次发布于 2020/08/25;过去 12 个月发布了 0 个版本。

版本发布日期距今
5.0.11latest2020/08/256 年前

关于 @dendronhq/conventional-changelog-dendron 的常见问题

@dendronhq/conventional-changelog-dendron 是什么?

conventional-changelog angular preset

如何安装 @dendronhq/conventional-changelog-dendron?

在项目目录运行 npm install @dendronhq/conventional-changelog-dendron,或使用 pnpm add / yarn add / bun add。

@dendronhq/conventional-changelog-dendron 支持 TypeScript 吗?

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

@dendronhq/conventional-changelog-dendron 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@dendronhq/conventional-changelog-dendron 需要什么版本的 Node.js?

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

@dendronhq/conventional-changelog-dendron 可以商用吗?

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

@dendronhq/conventional-changelog-dendron 的下载量有多少?

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

@dendronhq/conventional-changelog-dendron 还在维护吗?

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