@commitlint/ensure 16.2.1 → 17.3.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/lib/to-case.js CHANGED
@@ -3,29 +3,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const camelCase_1 = __importDefault(require("lodash/camelCase"));
7
- const kebabCase_1 = __importDefault(require("lodash/kebabCase"));
8
- const snakeCase_1 = __importDefault(require("lodash/snakeCase"));
9
- const upperFirst_1 = __importDefault(require("lodash/upperFirst"));
10
- const startCase_1 = __importDefault(require("lodash/startCase"));
6
+ const lodash_camelcase_1 = __importDefault(require("lodash.camelcase"));
7
+ const lodash_kebabcase_1 = __importDefault(require("lodash.kebabcase"));
8
+ const lodash_snakecase_1 = __importDefault(require("lodash.snakecase"));
9
+ const lodash_upperfirst_1 = __importDefault(require("lodash.upperfirst"));
10
+ const lodash_startcase_1 = __importDefault(require("lodash.startcase"));
11
11
  function toCase(input, target) {
12
12
  switch (target) {
13
13
  case 'camel-case':
14
- return (0, camelCase_1.default)(input);
14
+ return (0, lodash_camelcase_1.default)(input);
15
15
  case 'kebab-case':
16
- return (0, kebabCase_1.default)(input);
16
+ return (0, lodash_kebabcase_1.default)(input);
17
17
  case 'snake-case':
18
- return (0, snakeCase_1.default)(input);
18
+ return (0, lodash_snakecase_1.default)(input);
19
19
  case 'pascal-case':
20
- return (0, upperFirst_1.default)((0, camelCase_1.default)(input));
20
+ return (0, lodash_upperfirst_1.default)((0, lodash_camelcase_1.default)(input));
21
21
  case 'start-case':
22
- return (0, startCase_1.default)(input);
22
+ return (0, lodash_startcase_1.default)(input);
23
23
  case 'upper-case':
24
24
  case 'uppercase':
25
25
  return input.toUpperCase();
26
26
  case 'sentence-case':
27
27
  case 'sentencecase':
28
- return (0, upperFirst_1.default)(input);
28
+ return (0, lodash_upperfirst_1.default)(input);
29
29
  case 'lower-case':
30
30
  case 'lowercase':
31
31
  case 'lowerCase': // Backwards compat config-angular v4
@@ -1 +1 @@
1
- {"version":3,"file":"to-case.js","sourceRoot":"","sources":["../src/to-case.ts"],"names":[],"mappings":";;;;;AACA,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,mEAA2C;AAC3C,iEAAyC;AAEzC,SAAwB,MAAM,CAAC,KAAa,EAAE,MAAsB;IACnE,QAAQ,MAAM,EAAE;QACf,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,aAAa;YACjB,OAAO,IAAA,oBAAU,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC,CAAC;QACrC,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW;YACf,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B,KAAK,eAAe,CAAC;QACrB,KAAK,cAAc;YAClB,OAAO,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;QAC1B,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,EAAE,qCAAqC;YACtD,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B;YACC,MAAM,IAAI,SAAS,CAAC,iCAAiC,MAAM,GAAG,CAAC,CAAC;KACjE;AACF,CAAC;AAzBD,yBAyBC"}
1
+ {"version":3,"file":"to-case.js","sourceRoot":"","sources":["../src/to-case.ts"],"names":[],"mappings":";;;;;AACA,wEAAyC;AACzC,wEAAyC;AACzC,wEAAyC;AACzC,0EAA2C;AAC3C,wEAAyC;AAEzC,SAAwB,MAAM,CAAC,KAAa,EAAE,MAAsB;IACnE,QAAQ,MAAM,EAAE;QACf,KAAK,YAAY;YAChB,OAAO,IAAA,0BAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,0BAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,0BAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,aAAa;YACjB,OAAO,IAAA,2BAAU,EAAC,IAAA,0BAAS,EAAC,KAAK,CAAC,CAAC,CAAC;QACrC,KAAK,YAAY;YAChB,OAAO,IAAA,0BAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW;YACf,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B,KAAK,eAAe,CAAC;QACrB,KAAK,cAAc;YAClB,OAAO,IAAA,2BAAU,EAAC,KAAK,CAAC,CAAC;QAC1B,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,EAAE,qCAAqC;YACtD,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B;YACC,MAAM,IAAI,SAAS,CAAC,iCAAiC,MAAM,GAAG,CAAC,CAAC;KACjE;AACF,CAAC;AAzBD,yBAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commitlint/ensure",
3
- "version": "16.2.1",
3
+ "version": "17.3.0",
4
4
  "description": "Lint your commit messages",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "pkg": "pkg-check"
13
13
  },
14
14
  "engines": {
15
- "node": ">=v12"
15
+ "node": ">=v14"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
@@ -35,13 +35,21 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "devDependencies": {
38
- "@commitlint/utils": "^16.2.1",
39
- "@types/lodash": "^4.14.161",
38
+ "@commitlint/utils": "^17.0.0",
39
+ "@types/lodash.camelcase": "^4.3.7",
40
+ "@types/lodash.kebabcase": "^4.1.7",
41
+ "@types/lodash.snakecase": "^4.1.7",
42
+ "@types/lodash.startcase": "^4.4.7",
43
+ "@types/lodash.upperfirst": "^4.3.7",
40
44
  "globby": "^11.0.0"
41
45
  },
42
46
  "dependencies": {
43
- "@commitlint/types": "^16.2.1",
44
- "lodash": "^4.17.19"
47
+ "@commitlint/types": "^17.0.0",
48
+ "lodash.camelcase": "^4.3.0",
49
+ "lodash.kebabcase": "^4.1.1",
50
+ "lodash.snakecase": "^4.1.1",
51
+ "lodash.startcase": "^4.4.0",
52
+ "lodash.upperfirst": "^4.3.1"
45
53
  },
46
- "gitHead": "071cce297f207ebcaf9cfa00e23542b7e0a550e8"
54
+ "gitHead": "618aee50a953ab06e736d985009f7182bd1a8ae1"
47
55
  }
package/CHANGELOG.md DELETED
@@ -1,352 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [16.2.1](https://github.com/conventional-changelog/commitlint/compare/v16.2.0...v16.2.1) (2022-02-13)
7
-
8
- **Note:** Version bump only for package @commitlint/ensure
9
-
10
-
11
-
12
-
13
-
14
- # [16.0.0](https://github.com/conventional-changelog/commitlint/compare/v15.0.0...v16.0.0) (2021-12-26)
15
-
16
- **Note:** Version bump only for package @commitlint/ensure
17
-
18
-
19
-
20
-
21
-
22
- # [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
23
-
24
- **Note:** Version bump only for package @commitlint/ensure
25
-
26
-
27
-
28
-
29
-
30
- # [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01)
31
-
32
- **Note:** Version bump only for package @commitlint/ensure
33
-
34
-
35
-
36
-
37
-
38
- # [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
39
-
40
- **Note:** Version bump only for package @commitlint/ensure
41
-
42
-
43
-
44
-
45
-
46
- # [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
47
-
48
- **Note:** Version bump only for package @commitlint/ensure
49
-
50
-
51
-
52
-
53
-
54
- # [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
55
-
56
- **Note:** Version bump only for package @commitlint/ensure
57
-
58
-
59
-
60
-
61
-
62
- # [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
63
-
64
-
65
- * chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
66
-
67
-
68
- ### BREAKING CHANGES
69
-
70
- * minimum node version is 12
71
-
72
-
73
-
74
-
75
-
76
- ## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
77
-
78
- **Note:** Version bump only for package @commitlint/ensure
79
-
80
-
81
-
82
-
83
-
84
- ## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
85
-
86
- **Note:** Version bump only for package @commitlint/ensure
87
-
88
-
89
-
90
-
91
-
92
- ## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
93
-
94
- **Note:** Version bump only for package @commitlint/ensure
95
-
96
-
97
-
98
-
99
-
100
- ## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
101
-
102
- **Note:** Version bump only for package @commitlint/ensure
103
-
104
-
105
-
106
-
107
-
108
- # [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
109
-
110
- **Note:** Version bump only for package @commitlint/ensure
111
-
112
-
113
-
114
-
115
-
116
- # [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
117
-
118
- **Note:** Version bump only for package @commitlint/ensure
119
-
120
-
121
-
122
-
123
-
124
- # [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
125
-
126
-
127
- * refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
128
-
129
-
130
- ### BREAKING CHANGES
131
-
132
- * remove node 8 from circle-ci checks
133
-
134
- also remove node 13 because we do not support experimental versions
135
-
136
- * docs: update node v10 to latest LTS 10 version
137
-
138
- Co-authored-by: Cedric van Putten <me@bycedric.com>
139
-
140
- Co-authored-by: Cedric van Putten <me@bycedric.com>
141
-
142
-
143
-
144
-
145
-
146
- ## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
147
-
148
- **Note:** Version bump only for package @commitlint/ensure
149
-
150
-
151
-
152
-
153
-
154
- ## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
155
-
156
- **Note:** Version bump only for package @commitlint/ensure
157
-
158
-
159
-
160
-
161
-
162
- # [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
163
-
164
- **Note:** Version bump only for package @commitlint/ensure
165
-
166
-
167
-
168
-
169
-
170
- ## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
171
-
172
- **Note:** Version bump only for package @commitlint/ensure
173
-
174
-
175
-
176
-
177
-
178
- # [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
179
-
180
-
181
- ### Bug Fixes
182
-
183
- * [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644))
184
-
185
-
186
-
187
-
188
-
189
- ## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
190
-
191
- **Note:** Version bump only for package @commitlint/ensure
192
-
193
-
194
-
195
-
196
-
197
- # [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
198
-
199
- **Note:** Version bump only for package @commitlint/ensure
200
-
201
-
202
-
203
-
204
-
205
- # [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
206
-
207
- **Note:** Version bump only for package @commitlint/ensure
208
-
209
-
210
-
211
-
212
-
213
- # [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
214
-
215
- **Note:** Version bump only for package @commitlint/ensure
216
-
217
-
218
-
219
-
220
-
221
- # [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
222
-
223
- **Note:** Version bump only for package @commitlint/ensure
224
-
225
-
226
-
227
-
228
-
229
- ## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11)
230
-
231
-
232
- ### Bug Fixes
233
-
234
- * failing sentence-case for subjects with slashes ([#574](https://github.com/conventional-changelog/commitlint/issues/574)) ([48a8602](https://github.com/conventional-changelog/commitlint/commit/48a8602))
235
-
236
-
237
-
238
-
239
-
240
- <a name="7.5.0"></a>
241
- # [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
242
-
243
-
244
- ### Bug Fixes
245
-
246
- * `sentence-case` allow upper-case characters in first word ([#531](https://github.com/conventional-changelog/commitlint/issues/531)) ([5a6a4a8](https://github.com/conventional-changelog/commitlint/commit/5a6a4a8)), closes [#211](https://github.com/conventional-changelog/commitlint/issues/211)
247
- * replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
248
- * slash in scope [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([#529](https://github.com/conventional-changelog/commitlint/issues/529)) ([b2b63e5](https://github.com/conventional-changelog/commitlint/commit/b2b63e5))
249
-
250
-
251
-
252
-
253
- <a name="7.3.1"></a>
254
- ## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
255
-
256
-
257
-
258
-
259
- **Note:** Version bump only for package @commitlint/ensure
260
-
261
- <a name="7.3.0"></a>
262
- # [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
263
-
264
-
265
- ### Bug Fixes
266
-
267
- * fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399)
268
- * update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
269
-
270
-
271
-
272
-
273
- <a name="7.2.0"></a>
274
- # [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
275
-
276
-
277
- ### Bug Fixes
278
-
279
- * handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
280
-
281
-
282
-
283
-
284
- <a name="7.1.2"></a>
285
- ## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
286
-
287
-
288
-
289
-
290
- **Note:** Version bump only for package @commitlint/ensure
291
-
292
- <a name="7.1.0"></a>
293
- # [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
294
-
295
-
296
- ### Features
297
-
298
- * add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
299
-
300
-
301
-
302
-
303
- <a name="6.1.1"></a>
304
- ## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
305
-
306
-
307
- ### Bug Fixes
308
-
309
- * **ensure:** ignore word delimiters for case matching [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([fa69299](https://github.com/conventional-changelog/commitlint/commit/fa69299))
310
-
311
-
312
-
313
-
314
- <a name="6.1.0"></a>
315
- # [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
316
-
317
-
318
-
319
-
320
- **Note:** Version bump only for package @commitlint/ensure
321
-
322
- <a name="6.0.4"></a>
323
- ## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
324
-
325
-
326
-
327
-
328
- **Note:** Version bump only for package @commitlint/ensure
329
-
330
- <a name="6.0.3"></a>
331
- ## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
332
-
333
-
334
-
335
-
336
- **Note:** Version bump only for package @commitlint/ensure
337
-
338
- <a name="6.0.2"></a>
339
- ## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
340
-
341
-
342
-
343
-
344
- **Note:** Version bump only for package @commitlint/ensure
345
-
346
- <a name="6.0.0"></a>
347
- # [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
348
-
349
-
350
- ### Bug Fixes
351
-
352
- * sanitize ensure.case [#211](https://github.com/conventional-changelog/commitlint/issues/211) ([#217](https://github.com/conventional-changelog/commitlint/issues/217)) ([03aeefc](https://github.com/conventional-changelog/commitlint/commit/03aeefc))