unpkg-white-list 1.223.0 → 1.224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -144,6 +144,57 @@ _你将会看到 package.json 文件中的 `allowLargeScopes` 字段被更新,
144
144
 
145
145
  修改完成后提交一个 `Pull Request` 合并到 master 分支,等待 Review,合并后会自动发布,预计最长 5 分钟后会全网生效。
146
146
 
147
+ ### Pull Request 标题规范
148
+
149
+ 本项目使用 [Conventional Commits](https://www.conventionalcommits.org/) 规范,所有 Pull Request 的标题必须符合 [semantic-release](https://semantic-release.gitbook.io/) 要求。
150
+
151
+ 由于本项目使用 squash 合并方式,最终的 commit message 会基于 PR 标题生成,因此 PR 标题格式如下:
152
+
153
+ ```
154
+ <type>(<scope>): <subject>
155
+
156
+ <body>
157
+
158
+ <footer>
159
+ ```
160
+
161
+ **Type 类型:**
162
+
163
+ - `feat`: 新功能(会触发 minor 版本更新)
164
+ - `fix`: Bug 修复(会触发 patch 版本更新)
165
+ - `perf`: 性能优化(会触发 patch 版本更新)
166
+ - `docs`: 文档修改(不会触发版本更新)
167
+ - `style`: 代码格式修改(不影响代码含义,不会触发版本更新)
168
+ - `refactor`: 代码重构(不会触发版本更新)
169
+ - `test`: 测试相关修改(不会触发版本更新)
170
+ - `build`: 构建系统或依赖项修改(不会触发版本更新)
171
+ - `ci`: CI 配置文件修改(不会触发版本更新)
172
+ - `chore`: 其他不修改 src 或 test 文件的修改(不会触发版本更新)
173
+ - `revert`: 回退之前的 commit(不会触发版本更新)
174
+
175
+ **示例:**
176
+
177
+ ```bash
178
+ feat: add lodash to allowPackages
179
+ feat(allowScopes): add @babel scope
180
+ fix: correct semver range validation
181
+ docs: update README with commit guidelines
182
+ ```
183
+
184
+ **Breaking Changes:**
185
+
186
+ 如果包含破坏性变更,需要在 type 后加 `!` 或在 footer 中说明:
187
+
188
+ ```bash
189
+ feat!: remove deprecated API
190
+ # or
191
+ feat: add new feature
192
+
193
+ BREAKING CHANGE: This removes the old API
194
+ ```
195
+
196
+ CI 会自动检查 Pull Request 标题是否符合规范,不符合规范的 PR 将无法通过检查。
197
+
147
198
  ## for admins
148
199
 
149
200
  block sync packages and scopes:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unpkg-white-list",
3
- "version": "1.223.0",
3
+ "version": "1.224.0",
4
4
  "description": "npmmirror 允许开启 unpkg 和 sync package tgz 超大文件功能的白名单列表",
5
5
  "main": "index.js",
6
6
  "files": [],
@@ -11,6 +11,8 @@
11
11
  "add": "node scripts/generate.js"
12
12
  },
13
13
  "devDependencies": {
14
+ "@commitlint/cli": "^20.2.0",
15
+ "@commitlint/config-conventional": "^20.2.0",
14
16
  "eslint": "^9.33.0",
15
17
  "eslint-plugin-jsonc": "^2.20.1",
16
18
  "fs-extra": "^11.3.1",
@@ -7638,6 +7640,9 @@
7638
7640
  "html2canvas": {
7639
7641
  "version": "*"
7640
7642
  },
7643
+ "html2canvas-pro": {
7644
+ "version": "*"
7645
+ },
7641
7646
  "html2canvas-stroke": {
7642
7647
  "version": "*"
7643
7648
  },