@commitlint/config-workspace-scopes 20.4.0 → 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 CHANGED
@@ -3,6 +3,38 @@
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
+
30
+ ## [20.4.3](https://github.com/conventional-changelog/commitlint/compare/v20.4.2...v20.4.3) (2026-03-03)
31
+
32
+ **Note:** Version bump only for package @commitlint/config-workspace-scopes
33
+
34
+
35
+
36
+
37
+
6
38
  # [20.4.0](https://github.com/conventional-changelog/commitlint/compare/v20.3.1...v20.4.0) (2026-01-30)
7
39
 
8
40
  **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 "glob";
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, { cwd, ignore: ["**/node_modules/**"] });
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": "20.4.0",
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": ">=v18"
31
- },
32
- "dependencies": {
33
- "glob": "^11.0.0"
30
+ "node": ">=22.12.0"
34
31
  },
35
32
  "devDependencies": {
36
- "@commitlint/test": "^20.4.0",
37
- "@commitlint/utils": "^20.0.0",
38
- "@types/glob": "^8.1.0"
33
+ "@commitlint/test": "^21.0.0",
34
+ "@commitlint/utils": "^21.0.0"
39
35
  },
40
- "gitHead": "c68de5e24b010e38eac171f35ba18d31bb1fd3dd"
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: test(foo): this won't pass
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.