@commitlint/config-workspace-scopes 20.4.3 → 21.0.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.
- package/CHANGELOG.md +24 -0
- package/index.js +5 -2
- package/package.json +5 -9
- package/readme.md +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [21.0.0](https://github.com/conventional-changelog/commitlint/compare/v20.5.3...v21.0.0) (2026-05-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* chore!: minimum node version v22 (#4679) ([ac2b3f4](https://github.com/conventional-changelog/commitlint/commit/ac2b3f4a947670e46af9a738881ba14158f0987a)), closes [#4679](https://github.com/conventional-changelog/commitlint/issues/4679)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* drop node v18 and v20 support
|
|
15
|
+
|
|
16
|
+
- Bump engines to >=v22 in all 39 package.json files
|
|
17
|
+
- Update @types/node to ^22.0.0
|
|
18
|
+
- Update CI matrix to [22, 24]
|
|
19
|
+
- Update Ubuntu baseline job to ubuntu:26.04
|
|
20
|
+
- Update Dockerfile.ci, .mise.toml, .codesandbox/ci.json
|
|
21
|
+
- Update pre-commit hook to use --ignore-engines
|
|
22
|
+
- Update README and docs
|
|
23
|
+
|
|
24
|
+
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [20.4.3](https://github.com/conventional-changelog/commitlint/compare/v20.4.2...v20.4.3) (2026-03-03)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @commitlint/config-workspace-scopes
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import Path from "node:path";
|
|
3
3
|
|
|
4
|
-
import { globSync } from "
|
|
4
|
+
import { globSync } from "node:fs";
|
|
5
5
|
|
|
6
6
|
const require = createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -27,7 +27,10 @@ function getPackages(context) {
|
|
|
27
27
|
|
|
28
28
|
const wsGlobs = workspaces.flatMap((ws) => {
|
|
29
29
|
const path = Path.posix.join(ws, "package.json");
|
|
30
|
-
return globSync(path, {
|
|
30
|
+
return globSync(path, {
|
|
31
|
+
cwd,
|
|
32
|
+
exclude: (p) => p.includes("node_modules"),
|
|
33
|
+
});
|
|
31
34
|
});
|
|
32
35
|
|
|
33
36
|
return wsGlobs.sort().map((pJson) => require(Path.join(cwd, pJson)));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/config-workspace-scopes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "21.0.0",
|
|
5
5
|
"description": "Shareable commitlint config enforcing workspace names as scopes",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -27,15 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://commitlint.js.org/",
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"glob": "^11.0.0"
|
|
30
|
+
"node": ">=22.12.0"
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
|
-
"@commitlint/test": "^
|
|
37
|
-
"@commitlint/utils": "^
|
|
38
|
-
"@types/glob": "^8.1.0"
|
|
33
|
+
"@commitlint/test": "^21.0.0",
|
|
34
|
+
"@commitlint/utils": "^21.0.0"
|
|
39
35
|
},
|
|
40
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "f081a8ef93019bb8b07f39c756f6d4a052020d3b"
|
|
41
37
|
}
|
package/readme.md
CHANGED
|
@@ -31,17 +31,14 @@ packages
|
|
|
31
31
|
└── web
|
|
32
32
|
|
|
33
33
|
❯ echo "build(api): change something in api's build" | commitlint
|
|
34
|
-
⧗ input: build(api): change something in api's build
|
|
35
|
-
✔ found 0 problems, 0 warnings
|
|
36
34
|
|
|
37
35
|
❯ echo "test(foo): this won't pass" | commitlint
|
|
38
|
-
⧗ input
|
|
36
|
+
⧗ --- input ---
|
|
37
|
+
test(foo): this won't pass
|
|
39
38
|
✖ scope must be one of [api, app, web] [scope-enum]
|
|
40
39
|
✖ found 1 problems, 0 warnings
|
|
41
40
|
|
|
42
41
|
❯ echo "ci: do some general maintenance" | commitlint
|
|
43
|
-
⧗ input: ci: do some general maintenance
|
|
44
|
-
✔ found 0 problems, 0 warnings
|
|
45
42
|
```
|
|
46
43
|
|
|
47
44
|
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.
|