@anolilab/commitlint-config 9.4.0 → 10.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
@@ -1,3 +1,35 @@
1
+ ## @anolilab/commitlint-config [10.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@9.5.0...@anolilab/commitlint-config@10.0.0) (2026-04-07)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * Minimum Node.js version raised from 20.18 to 22.12.0
6
+ (current active LTS). Node 20 lacks Object.groupBy which is required by
7
+ eslint-flat-config-utils and lint-staged-config. Updated engines in all
8
+ packages and .nvmrc.
9
+
10
+ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11
+
12
+ ### Features
13
+
14
+ * require Node.js >=22.12.0 ([7c491c6](https://github.com/anolilab/javascript-style-guide/commit/7c491c660ea3ec96262dd4d9a17cc3e280b91579))
15
+
16
+ ### Bug Fixes
17
+
18
+ * **commitlint-config:** fix eslint errors in bin.ts ([8ed1304](https://github.com/anolilab/javascript-style-guide/commit/8ed1304c3197d3c3376300d8185dbe3825e57694))
19
+
20
+
21
+ ### Dependencies
22
+
23
+ * **@anolilab/eslint-config:** upgraded to 27.0.0
24
+ * **@anolilab/prettier-config:** upgraded to 10.0.0
25
+
26
+ ## @anolilab/commitlint-config [9.5.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@9.4.0...@anolilab/commitlint-config@9.5.0) (2026-04-01)
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * **@anolilab/eslint-config:** upgraded to 26.0.0
32
+
1
33
  ## @anolilab/commitlint-config [9.4.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@9.3.0...@anolilab/commitlint-config@9.4.0) (2026-03-28)
2
34
 
3
35
 
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var m=Object.defineProperty;var l=(e,t)=>m(e,"name",{value:t,configurable:!0});import{existsSync as c}from"node:fs";import{readFile as g,writeFile as f}from"node:fs/promises";import{join as i}from"node:path";import n from"node:process";var u=Object.defineProperty,a=l((e,t)=>u(e,"name",{value:t,configurable:!0}),"e");const w=a(e=>c(e)?(console.warn(`⚠️ ${e} already exists;`),!0):!1,"checkIfFileExists"),$=a(async(e,t)=>{const o="commitlint";for(const s of[o,`.${o}rc`,`.${o}.json`,`.${o}.yaml`,`.${o}.yml`,`.${o}.js`,`.${o}.cjs`,`.${o}.mjs`,`.${o}.ts`,`.${o}.cts`,`.${o}.config.js`,`.${o}.config.cjs`,`.${o}.config.mjs`,`.${o}.config.ts`,`.${o}.config.cts`])if(w(i(e,s))){console.warn(`⚠️ ${s} already exists;`);return}const r=i(e,"commitlint.config.js");await f(r,`${t?"export default":"module.exports ="} {
2
+ var g=Object.defineProperty;var l=(e,t)=>g(e,"name",{value:t,configurable:!0});import{existsSync as c}from"node:fs";import{readFile as u,writeFile as f}from"node:fs/promises";import{join as i}from"node:path";import n from"node:process";var w=Object.defineProperty,a=l((e,t)=>w(e,"name",{value:t,configurable:!0}),"e");const $=a(e=>c(e)?(console.warn(`⚠️ ${e} already exists;`),!0):!1,"checkIfFileExists"),d=a(async(e,t)=>{const o="commitlint",r=[o,`.${o}rc`,`.${o}.json`,`.${o}.yaml`,`.${o}.yml`,`.${o}.js`,`.${o}.cjs`,`.${o}.mjs`,`.${o}.ts`,`.${o}.cts`,`.${o}.config.js`,`.${o}.config.cjs`,`.${o}.config.mjs`,`.${o}.config.ts`,`.${o}.config.cts`];for(const s of r)if($(i(e,s))){console.warn(`⚠️ ${s} already exists;`);return}const m=i(e,"commitlint.config.js");await f(m,`${t?"export default":"module.exports ="} {
3
3
  extends: ["@anolilab/commitlint-config"],
4
4
  rules: {
5
5
  // overwrite rules here
@@ -7,9 +7,9 @@ var m=Object.defineProperty;var l=(e,t)=>m(e,"name",{value:t,configurable:!0});i
7
7
  },
8
8
  };
9
9
 
10
- `,"utf8")},"writeCommitLintConfig"),d=a(async e=>{const t=i(e,".czrc");if(c(t)){console.warn("⚠️ .czrc already exists;");return}await f(t,`{
10
+ `,"utf8")},"writeCommitLintConfig"),y=a(async e=>{const t=i(e,".czrc");if(c(t)){console.warn("⚠️ .czrc already exists;");return}await f(t,`{
11
11
  "path": "cz-conventional-changelog"
12
12
  }
13
13
 
14
- `,"utf8")},"writeCzrc");(async()=>{const e=n.cwd(),t=i(e,"package.json");c(t)||(console.error("No package.json found in the current directory. You need to run this command in a directory with a package.json file."),n.exit(1));const o=JSON.parse(await g(t,"utf8"));console.log("Configuring @anolilab/commitlint-config",e,`
15
- `);try{await $(e,o.type==="module"),await d(e),console.log("Everything went well, have fun!"),n.exit(0)}catch(r){console.error("Something went wrong:",r),n.exit(1)}})();
14
+ `,"utf8")},"writeCzrc");(async()=>{const e=n.cwd(),t=i(e,"package.json");c(t)||(console.error("No package.json found in the current directory. You need to run this command in a directory with a package.json file."),n.exit(1));const o=JSON.parse(await u(t,"utf8"));console.log("Configuring @anolilab/commitlint-config",e,`
15
+ `);try{await d(e,o.type==="module"),await y(e),console.log("Everything went well, have fun!"),n.exit(0)}catch(r){console.error("Something went wrong:",r),n.exit(1)}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/commitlint-config",
3
- "version": "9.4.0",
3
+ "version": "10.0.0",
4
4
  "description": "Anolilab´s shareable coding standard config for commitlint.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -66,14 +66,14 @@
66
66
  "@commitlint/config-conventional": "20.5.0",
67
67
  "@commitlint/core": "20.5.0",
68
68
  "commitizen": "^4.3.1",
69
- "conventional-changelog-conventionalcommits": "9.3.0",
69
+ "conventional-changelog-conventionalcommits": "9.3.1",
70
70
  "cz-conventional-changelog": "^3.3.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@commitlint/cli": "^17.6.5 || ^18.x || ^19.x || ^20.0.0"
74
74
  },
75
75
  "engines": {
76
- "node": ">=20.18.* <=25.*"
76
+ "node": ">=22.12.0 <=25.*"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public",