@commitlint/config-workspace-scopes 20.4.3 → 21.0.1

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.1](https://github.com/conventional-changelog/commitlint/compare/v21.0.0...v21.0.1) (2026-05-12)
7
+
8
+ **Note:** Version bump only for package @commitlint/config-workspace-scopes
9
+
10
+
11
+
12
+
13
+
14
+ # [21.0.0](https://github.com/conventional-changelog/commitlint/compare/v20.5.3...v21.0.0) (2026-05-08)
15
+
16
+
17
+ * 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)
18
+
19
+
20
+ ### BREAKING CHANGES
21
+
22
+ * drop node v18 and v20 support
23
+
24
+ - Bump engines to >=v22 in all 39 package.json files
25
+ - Update @types/node to ^22.0.0
26
+ - Update CI matrix to [22, 24]
27
+ - Update Ubuntu baseline job to ubuntu:26.04
28
+ - Update Dockerfile.ci, .mise.toml, .codesandbox/ci.json
29
+ - Update pre-commit hook to use --ignore-engines
30
+ - Update README and docs
31
+
32
+ Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33
+
34
+
35
+
36
+
37
+
6
38
  ## [20.4.3](https://github.com/conventional-changelog/commitlint/compare/v20.4.2...v20.4.3) (2026-03-03)
7
39
 
8
40
  **Note:** Version bump only for package @commitlint/config-workspace-scopes
package/index.js CHANGED
@@ -1,15 +1,14 @@
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
 
8
8
  export default {
9
9
  utils: { getPackages },
10
10
  rules: {
11
- "scope-enum": (ctx) =>
12
- getPackages(ctx).then((packages) => [2, "always", packages]),
11
+ "scope-enum": (ctx) => getPackages(ctx).then((packages) => [2, "always", packages]),
13
12
  },
14
13
  };
15
14
 
@@ -27,7 +26,10 @@ function getPackages(context) {
27
26
 
28
27
  const wsGlobs = workspaces.flatMap((ws) => {
29
28
  const path = Path.posix.join(ws, "package.json");
30
- return globSync(path, { cwd, ignore: ["**/node_modules/**"] });
29
+ return globSync(path, {
30
+ cwd,
31
+ exclude: (p) => p.includes("node_modules"),
32
+ });
31
33
  });
32
34
 
33
35
  return wsGlobs.sort().map((pJson) => require(Path.join(cwd, pJson)));
package/index.test.js CHANGED
@@ -80,7 +80,5 @@ test("returns expected value for workspaces has nested packages", async () => {
80
80
 
81
81
  const [, , value] = await fn({ cwd });
82
82
  expect(value).toEqual(expect.arrayContaining(["nested-a", "nested-b"]));
83
- expect(value).toEqual(
84
- expect.not.arrayContaining(["dependency-a", "dependency-b"]),
85
- );
83
+ expect(value).toEqual(expect.not.arrayContaining(["dependency-a", "dependency-b"]));
86
84
  });
package/package.json CHANGED
@@ -1,41 +1,37 @@
1
1
  {
2
2
  "name": "@commitlint/config-workspace-scopes",
3
- "type": "module",
4
- "version": "20.4.3",
3
+ "version": "21.0.1",
4
+ "gitHead": "db8d7d6461d721fe2561ce4307e4069eaf6dcc8c",
5
5
  "description": "Shareable commitlint config enforcing workspace names as scopes",
6
- "main": "index.js",
7
- "scripts": {
8
- "deps": "dep-check",
9
- "pkg": "pkg-check"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/conventional-changelog/commitlint.git",
14
- "directory": "@commitlint/config-lerna-scopes"
15
- },
16
6
  "keywords": [
17
- "conventional-changelog",
18
7
  "commitlint",
19
8
  "commitlint-config",
9
+ "conventional-changelog",
20
10
  "npm-workspaces",
21
11
  "yarn-workspaces"
22
12
  ],
23
- "author": "Jan Biasi (https://github.com/janbiasi)",
24
- "license": "MIT",
13
+ "homepage": "https://commitlint.js.org/",
25
14
  "bugs": {
26
15
  "url": "https://github.com/conventional-changelog/commitlint/issues"
27
16
  },
28
- "homepage": "https://commitlint.js.org/",
29
- "engines": {
30
- "node": ">=v18"
17
+ "license": "MIT",
18
+ "author": "Jan Biasi (https://github.com/janbiasi)",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/conventional-changelog/commitlint.git",
22
+ "directory": "@commitlint/config-lerna-scopes"
31
23
  },
32
- "dependencies": {
33
- "glob": "^11.0.0"
24
+ "type": "module",
25
+ "main": "index.js",
26
+ "scripts": {
27
+ "deps": "dep-check",
28
+ "pkg": "pkg-check"
34
29
  },
35
30
  "devDependencies": {
36
- "@commitlint/test": "^20.4.3",
37
- "@commitlint/utils": "^20.0.0",
38
- "@types/glob": "^8.1.0"
31
+ "@commitlint/test": "^21.0.1",
32
+ "@commitlint/utils": "^21.0.1"
39
33
  },
40
- "gitHead": "a7469817974796a6e89f55911bb66b7bffa44099"
34
+ "engines": {
35
+ "node": ">=22.12.0"
36
+ }
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.