commitizen 4.3.2 → 5.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/dist/git/init.js CHANGED
@@ -4,85 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.init = init;
7
- var _child_process = _interopRequireDefault(require("child_process"));
7
+ var _nodeChild_process = _interopRequireDefault(require("node:child_process"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- function cov_2lfeo71xnk() {
10
- var path = "/home/runner/work/cz-cli/cz-cli/src/git/init.js";
11
- var hash = "2e1de1e82ca18c86df306fd611871f92429b8fa5";
12
- var global = new Function("return this")();
13
- var gcv = "__coverage__";
14
- var coverageData = {
15
- path: "/home/runner/work/cz-cli/cz-cli/src/git/init.js",
16
- statementMap: {
17
- "0": {
18
- start: {
19
- line: 9,
20
- column: 2
21
- },
22
- end: {
23
- line: 9,
24
- column: 61
25
- }
26
- }
27
- },
28
- fnMap: {
29
- "0": {
30
- name: "init",
31
- decl: {
32
- start: {
33
- line: 8,
34
- column: 9
35
- },
36
- end: {
37
- line: 8,
38
- column: 13
39
- }
40
- },
41
- loc: {
42
- start: {
43
- line: 8,
44
- column: 25
45
- },
46
- end: {
47
- line: 10,
48
- column: 1
49
- }
50
- },
51
- line: 8
52
- }
53
- },
54
- branchMap: {},
55
- s: {
56
- "0": 0
57
- },
58
- f: {
59
- "0": 0
60
- },
61
- b: {},
62
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
63
- hash: "2e1de1e82ca18c86df306fd611871f92429b8fa5"
64
- };
65
- var coverage = global[gcv] || (global[gcv] = {});
66
- if (!coverage[path] || coverage[path].hash !== hash) {
67
- coverage[path] = coverageData;
68
- }
69
- var actualCoverage = coverage[path];
70
- {
71
- // @ts-ignore
72
- cov_2lfeo71xnk = function () {
73
- return actualCoverage;
74
- };
75
- }
76
- return actualCoverage;
77
- }
78
- cov_2lfeo71xnk();
79
9
  /**
80
10
  * Synchronously creates a new git repo at a path
81
11
  */
82
12
  function init(repoPath) {
83
- cov_2lfeo71xnk().f[0]++;
84
- cov_2lfeo71xnk().s[0]++;
85
- _child_process.default.spawnSync('git', ['init'], {
13
+ _nodeChild_process.default.spawnSync('git', ['init'], {
86
14
  cwd: repoPath
87
15
  });
88
16
  }
package/dist/git/log.js CHANGED
@@ -4,191 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.log = log;
7
- var _child_process = require("child_process");
8
- function cov_uo383o3rs() {
9
- var path = "/home/runner/work/cz-cli/cz-cli/src/git/log.js";
10
- var hash = "af9ef92940eb1c905d0a9cd466704f086cbe48fa";
11
- var global = new Function("return this")();
12
- var gcv = "__coverage__";
13
- var coverageData = {
14
- path: "/home/runner/work/cz-cli/cz-cli/src/git/log.js",
15
- statementMap: {
16
- "0": {
17
- start: {
18
- line: 9,
19
- column: 2
20
- },
21
- end: {
22
- line: 17,
23
- column: 5
24
- }
25
- },
26
- "1": {
27
- start: {
28
- line: 13,
29
- column: 4
30
- },
31
- end: {
32
- line: 15,
33
- column: 5
34
- }
35
- },
36
- "2": {
37
- start: {
38
- line: 14,
39
- column: 6
40
- },
41
- end: {
42
- line: 14,
43
- column: 18
44
- }
45
- },
46
- "3": {
47
- start: {
48
- line: 16,
49
- column: 4
50
- },
51
- end: {
52
- line: 16,
53
- column: 17
54
- }
55
- }
56
- },
57
- fnMap: {
58
- "0": {
59
- name: "log",
60
- decl: {
61
- start: {
62
- line: 8,
63
- column: 9
64
- },
65
- end: {
66
- line: 8,
67
- column: 12
68
- }
69
- },
70
- loc: {
71
- start: {
72
- line: 8,
73
- column: 30
74
- },
75
- end: {
76
- line: 18,
77
- column: 1
78
- }
79
- },
80
- line: 8
81
- },
82
- "1": {
83
- name: "(anonymous_1)",
84
- decl: {
85
- start: {
86
- line: 12,
87
- column: 5
88
- },
89
- end: {
90
- line: 12,
91
- column: 6
92
- }
93
- },
94
- loc: {
95
- start: {
96
- line: 12,
97
- column: 38
98
- },
99
- end: {
100
- line: 17,
101
- column: 3
102
- }
103
- },
104
- line: 12
105
- }
106
- },
107
- branchMap: {
108
- "0": {
109
- loc: {
110
- start: {
111
- line: 13,
112
- column: 4
113
- },
114
- end: {
115
- line: 15,
116
- column: 5
117
- }
118
- },
119
- type: "if",
120
- locations: [{
121
- start: {
122
- line: 13,
123
- column: 4
124
- },
125
- end: {
126
- line: 15,
127
- column: 5
128
- }
129
- }, {
130
- start: {
131
- line: undefined,
132
- column: undefined
133
- },
134
- end: {
135
- line: undefined,
136
- column: undefined
137
- }
138
- }],
139
- line: 13
140
- }
141
- },
142
- s: {
143
- "0": 0,
144
- "1": 0,
145
- "2": 0,
146
- "3": 0
147
- },
148
- f: {
149
- "0": 0,
150
- "1": 0
151
- },
152
- b: {
153
- "0": [0, 0]
154
- },
155
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
156
- hash: "af9ef92940eb1c905d0a9cd466704f086cbe48fa"
157
- };
158
- var coverage = global[gcv] || (global[gcv] = {});
159
- if (!coverage[path] || coverage[path].hash !== hash) {
160
- coverage[path] = coverageData;
161
- }
162
- var actualCoverage = coverage[path];
163
- {
164
- // @ts-ignore
165
- cov_uo383o3rs = function () {
166
- return actualCoverage;
167
- };
168
- }
169
- return actualCoverage;
170
- }
171
- cov_uo383o3rs();
7
+ var _nodeChild_process = require("node:child_process");
172
8
  /**
173
9
  * Asynchronously gets the git log output
174
10
  */
175
11
  function log(repoPath, done) {
176
- cov_uo383o3rs().f[0]++;
177
- cov_uo383o3rs().s[0]++;
178
- (0, _child_process.exec)('git log', {
12
+ (0, _nodeChild_process.exec)('git log', {
179
13
  maxBuffer: Infinity,
180
14
  cwd: repoPath
181
15
  }, function (error, stdout, stderr) {
182
- cov_uo383o3rs().f[1]++;
183
- cov_uo383o3rs().s[1]++;
184
16
  if (error) {
185
- cov_uo383o3rs().b[0][0]++;
186
- cov_uo383o3rs().s[2]++;
187
17
  throw error;
188
- } else {
189
- cov_uo383o3rs().b[0][1]++;
190
18
  }
191
- cov_uo383o3rs().s[3]++;
192
19
  done(stdout);
193
20
  });
194
21
  }
@@ -4,192 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.whatChanged = whatChanged;
7
- var _child_process = require("child_process");
8
- function cov_2ixm6leycz() {
9
- var path = "/home/runner/work/cz-cli/cz-cli/src/git/whatChanged.js";
10
- var hash = "646047d51a2f6743c3816670e17dd9d719c0a9ef";
11
- var global = new Function("return this")();
12
- var gcv = "__coverage__";
13
- var coverageData = {
14
- path: "/home/runner/work/cz-cli/cz-cli/src/git/whatChanged.js",
15
- statementMap: {
16
- "0": {
17
- start: {
18
- line: 10,
19
- column: 2
20
- },
21
- end: {
22
- line: 18,
23
- column: 5
24
- }
25
- },
26
- "1": {
27
- start: {
28
- line: 14,
29
- column: 4
30
- },
31
- end: {
32
- line: 16,
33
- column: 5
34
- }
35
- },
36
- "2": {
37
- start: {
38
- line: 15,
39
- column: 6
40
- },
41
- end: {
42
- line: 15,
43
- column: 18
44
- }
45
- },
46
- "3": {
47
- start: {
48
- line: 17,
49
- column: 4
50
- },
51
- end: {
52
- line: 17,
53
- column: 17
54
- }
55
- }
56
- },
57
- fnMap: {
58
- "0": {
59
- name: "whatChanged",
60
- decl: {
61
- start: {
62
- line: 9,
63
- column: 9
64
- },
65
- end: {
66
- line: 9,
67
- column: 20
68
- }
69
- },
70
- loc: {
71
- start: {
72
- line: 9,
73
- column: 38
74
- },
75
- end: {
76
- line: 19,
77
- column: 1
78
- }
79
- },
80
- line: 9
81
- },
82
- "1": {
83
- name: "(anonymous_1)",
84
- decl: {
85
- start: {
86
- line: 13,
87
- column: 5
88
- },
89
- end: {
90
- line: 13,
91
- column: 6
92
- }
93
- },
94
- loc: {
95
- start: {
96
- line: 13,
97
- column: 38
98
- },
99
- end: {
100
- line: 18,
101
- column: 3
102
- }
103
- },
104
- line: 13
105
- }
106
- },
107
- branchMap: {
108
- "0": {
109
- loc: {
110
- start: {
111
- line: 14,
112
- column: 4
113
- },
114
- end: {
115
- line: 16,
116
- column: 5
117
- }
118
- },
119
- type: "if",
120
- locations: [{
121
- start: {
122
- line: 14,
123
- column: 4
124
- },
125
- end: {
126
- line: 16,
127
- column: 5
128
- }
129
- }, {
130
- start: {
131
- line: undefined,
132
- column: undefined
133
- },
134
- end: {
135
- line: undefined,
136
- column: undefined
137
- }
138
- }],
139
- line: 14
140
- }
141
- },
142
- s: {
143
- "0": 0,
144
- "1": 0,
145
- "2": 0,
146
- "3": 0
147
- },
148
- f: {
149
- "0": 0,
150
- "1": 0
151
- },
152
- b: {
153
- "0": [0, 0]
154
- },
155
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
156
- hash: "646047d51a2f6743c3816670e17dd9d719c0a9ef"
157
- };
158
- var coverage = global[gcv] || (global[gcv] = {});
159
- if (!coverage[path] || coverage[path].hash !== hash) {
160
- coverage[path] = coverageData;
161
- }
162
- var actualCoverage = coverage[path];
163
- {
164
- // @ts-ignore
165
- cov_2ixm6leycz = function () {
166
- return actualCoverage;
167
- };
168
- }
169
- return actualCoverage;
170
- }
171
- cov_2ixm6leycz();
7
+ var _nodeChild_process = require("node:child_process");
172
8
  /**
173
9
  * Asynchronously gets the git log raw output (formerly `git whatchanged`,
174
10
  * which modern git refuses to run without `--i-still-use-this`).
175
11
  */
176
12
  function whatChanged(repoPath, done) {
177
- cov_2ixm6leycz().f[0]++;
178
- cov_2ixm6leycz().s[0]++;
179
- (0, _child_process.exec)('git log --raw --no-merges', {
13
+ (0, _nodeChild_process.exec)('git log --raw --no-merges', {
180
14
  maxBuffer: Infinity,
181
15
  cwd: repoPath
182
16
  }, function (error, stdout, stderr) {
183
- cov_2ixm6leycz().f[1]++;
184
- cov_2ixm6leycz().s[1]++;
185
17
  if (error) {
186
- cov_2ixm6leycz().b[0][0]++;
187
- cov_2ixm6leycz().s[2]++;
188
18
  throw error;
189
- } else {
190
- cov_2ixm6leycz().b[0][1]++;
191
19
  }
192
- cov_2ixm6leycz().s[3]++;
193
20
  done(stdout);
194
21
  });
195
22
  }
package/dist/index.js CHANGED
@@ -1,59 +1,4 @@
1
1
  "use strict";
2
2
 
3
- function cov_toszyysar() {
4
- var path = "/home/runner/work/cz-cli/cz-cli/src/index.js";
5
- var hash = "2dc4d0be9f441adce3ca215aa053ea537077b4a1";
6
- var global = new Function("return this")();
7
- var gcv = "__coverage__";
8
- var coverageData = {
9
- path: "/home/runner/work/cz-cli/cz-cli/src/index.js",
10
- statementMap: {
11
- "0": {
12
- start: {
13
- line: 1,
14
- column: 17
15
- },
16
- end: {
17
- line: 1,
18
- column: 40
19
- }
20
- },
21
- "1": {
22
- start: {
23
- line: 2,
24
- column: 0
25
- },
26
- end: {
27
- line: 2,
28
- column: 28
29
- }
30
- }
31
- },
32
- fnMap: {},
33
- branchMap: {},
34
- s: {
35
- "0": 0,
36
- "1": 0
37
- },
38
- f: {},
39
- b: {},
40
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
41
- hash: "2dc4d0be9f441adce3ca215aa053ea537077b4a1"
42
- };
43
- var coverage = global[gcv] || (global[gcv] = {});
44
- if (!coverage[path] || coverage[path].hash !== hash) {
45
- coverage[path] = coverageData;
46
- }
47
- var actualCoverage = coverage[path];
48
- {
49
- // @ts-ignore
50
- cov_toszyysar = function () {
51
- return actualCoverage;
52
- };
53
- }
54
- return actualCoverage;
55
- }
56
- cov_toszyysar();
57
- var commitizen = (cov_toszyysar().s[0]++, require('./commitizen'));
58
- cov_toszyysar().s[1]++;
3
+ var commitizen = require('./commitizen');
59
4
  module.exports = commitizen;
package/dist/npm.js CHANGED
@@ -1,33 +1,2 @@
1
1
  // this file left blank until npm init is implemented
2
- "use strict";
3
-
4
- function cov_1gc3c8mxtr() {
5
- var path = "/home/runner/work/cz-cli/cz-cli/src/npm.js";
6
- var hash = "05b9d3440fe2b0b7f84bf1dcc5d4f9bf2770e33e";
7
- var global = new Function("return this")();
8
- var gcv = "__coverage__";
9
- var coverageData = {
10
- path: "/home/runner/work/cz-cli/cz-cli/src/npm.js",
11
- statementMap: {},
12
- fnMap: {},
13
- branchMap: {},
14
- s: {},
15
- f: {},
16
- b: {},
17
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
18
- hash: "05b9d3440fe2b0b7f84bf1dcc5d4f9bf2770e33e"
19
- };
20
- var coverage = global[gcv] || (global[gcv] = {});
21
- if (!coverage[path] || coverage[path].hash !== hash) {
22
- coverage[path] = coverageData;
23
- }
24
- var actualCoverage = coverage[path];
25
- {
26
- // @ts-ignore
27
- cov_1gc3c8mxtr = function () {
28
- return actualCoverage;
29
- };
30
- }
31
- return actualCoverage;
32
- }
33
- cov_1gc3c8mxtr();
2
+ "use strict";
package/jobs/build.yml CHANGED
@@ -11,36 +11,37 @@ jobs:
11
11
  strategy:
12
12
  maxParallel: 3
13
13
  matrix:
14
+ node-26:
15
+ node_version: ^26.8.1
16
+ node-24:
17
+ node_version: ^24.20.0
14
18
  node-22:
15
- node_version: ^22.11.0
16
- node-20:
17
- node_version: ^20.9.0
18
- node-18:
19
- node_version: ^18.12.0
19
+ node_version: ^22.23.2
20
20
  steps:
21
- - task: NodeTool@0
22
- displayName: " Install Node.js"
21
+ - task: UseNode@1
22
+ displayName: "Install Node.js"
23
23
  inputs:
24
- versionSpec: $(node_version)
24
+ version: $(node_version)
25
25
  - script: git config --global user.email "example@example.com"
26
26
  - script: git config --global user.name "Example Git User"
27
- - script: npm install -g pnpm@9
27
+ - script: npm install -g pnpm@12
28
28
  displayName: "Setup pnpm"
29
- - script: npm install
30
- - script: npm run build
31
- - script: npm test && npm run write-coverage
29
+ # `prepare` builds dist/ during install. The init tests drive real npm/yarn/pnpm
30
+ # installs using the pinned npm-cli/yarn-cli devDependencies.
31
+ - script: pnpm install --frozen-lockfile
32
+ - script: pnpm test && pnpm run write-coverage && pnpm run check-coverage
32
33
  - script: bash logo/generate.sh
33
34
  condition: eq(variables['Agent.OS'], 'Linux')
34
35
  - task: PublishTestResults@2
35
36
  displayName: 'Publish Test Results'
36
37
  inputs:
37
- testResultsFiles: '**/junit-*.xml'
38
+ testResultsFiles: 'junit-testresults.xml'
39
+ searchFolder: '$(System.DefaultWorkingDirectory)'
38
40
  testRunTitle: TestRun ${{ parameters.name }} $(node_version)
39
- - task: PublishCodeCoverageResults@1
41
+ - task: PublishCodeCoverageResults@2
40
42
  displayName: 'Publish code coverage results'
41
43
  inputs:
42
- codeCoverageTool: 'cobertura'
43
- summaryFileLocation: '**/coverage/cobertura-coverage.xml'
44
+ summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
44
45
  - task: PublishBuildArtifacts@1
45
46
  displayName: Publish packages
46
47
  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))