@commitlint/ensure 17.0.0 → 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": "17.0.0",
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",
@@ -36,12 +36,20 @@
36
36
  "license": "MIT",
37
37
  "devDependencies": {
38
38
  "@commitlint/utils": "^17.0.0",
39
- "@types/lodash": "^4.14.161",
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
47
  "@commitlint/types": "^17.0.0",
44
- "lodash": "^4.17.19"
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": "ed437d29464ab1b239deecb84ce4d1f2a5e471c6"
54
+ "gitHead": "618aee50a953ab06e736d985009f7182bd1a8ae1"
47
55
  }
package/CHANGELOG.md DELETED
@@ -1,370 +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
- # [17.0.0](https://github.com/conventional-changelog/commitlint/compare/v16.3.0...v17.0.0) (2022-05-16)
7
-
8
-
9
- * chore!: minimum node version v14 (#3128) ([ac5f9b4](https://github.com/conventional-changelog/commitlint/commit/ac5f9b47a9e3cd5c9d58b14da0feb426f06b1ef9)), closes [#3128](https://github.com/conventional-changelog/commitlint/issues/3128)
10
-
11
-
12
- ### BREAKING CHANGES
13
-
14
- * drop node v12 support
15
-
16
- * chore: rename circleci windows job
17
-
18
- node version is not defned by the name anyways (i think)
19
-
20
-
21
-
22
-
23
-
24
- ## [16.2.1](https://github.com/conventional-changelog/commitlint/compare/v16.2.0...v16.2.1) (2022-02-13)
25
-
26
- **Note:** Version bump only for package @commitlint/ensure
27
-
28
-
29
-
30
-
31
-
32
- # [16.0.0](https://github.com/conventional-changelog/commitlint/compare/v15.0.0...v16.0.0) (2021-12-26)
33
-
34
- **Note:** Version bump only for package @commitlint/ensure
35
-
36
-
37
-
38
-
39
-
40
- # [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
41
-
42
- **Note:** Version bump only for package @commitlint/ensure
43
-
44
-
45
-
46
-
47
-
48
- # [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01)
49
-
50
- **Note:** Version bump only for package @commitlint/ensure
51
-
52
-
53
-
54
-
55
-
56
- # [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
57
-
58
- **Note:** Version bump only for package @commitlint/ensure
59
-
60
-
61
-
62
-
63
-
64
- # [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
65
-
66
- **Note:** Version bump only for package @commitlint/ensure
67
-
68
-
69
-
70
-
71
-
72
- # [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
73
-
74
- **Note:** Version bump only for package @commitlint/ensure
75
-
76
-
77
-
78
-
79
-
80
- # [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
81
-
82
-
83
- * 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)
84
-
85
-
86
- ### BREAKING CHANGES
87
-
88
- * minimum node version is 12
89
-
90
-
91
-
92
-
93
-
94
- ## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
95
-
96
- **Note:** Version bump only for package @commitlint/ensure
97
-
98
-
99
-
100
-
101
-
102
- ## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
103
-
104
- **Note:** Version bump only for package @commitlint/ensure
105
-
106
-
107
-
108
-
109
-
110
- ## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
111
-
112
- **Note:** Version bump only for package @commitlint/ensure
113
-
114
-
115
-
116
-
117
-
118
- ## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
119
-
120
- **Note:** Version bump only for package @commitlint/ensure
121
-
122
-
123
-
124
-
125
-
126
- # [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
127
-
128
- **Note:** Version bump only for package @commitlint/ensure
129
-
130
-
131
-
132
-
133
-
134
- # [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
135
-
136
- **Note:** Version bump only for package @commitlint/ensure
137
-
138
-
139
-
140
-
141
-
142
- # [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
143
-
144
-
145
- * 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)
146
-
147
-
148
- ### BREAKING CHANGES
149
-
150
- * remove node 8 from circle-ci checks
151
-
152
- also remove node 13 because we do not support experimental versions
153
-
154
- * docs: update node v10 to latest LTS 10 version
155
-
156
- Co-authored-by: Cedric van Putten <me@bycedric.com>
157
-
158
- Co-authored-by: Cedric van Putten <me@bycedric.com>
159
-
160
-
161
-
162
-
163
-
164
- ## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
165
-
166
- **Note:** Version bump only for package @commitlint/ensure
167
-
168
-
169
-
170
-
171
-
172
- ## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
173
-
174
- **Note:** Version bump only for package @commitlint/ensure
175
-
176
-
177
-
178
-
179
-
180
- # [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
181
-
182
- **Note:** Version bump only for package @commitlint/ensure
183
-
184
-
185
-
186
-
187
-
188
- ## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
189
-
190
- **Note:** Version bump only for package @commitlint/ensure
191
-
192
-
193
-
194
-
195
-
196
- # [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
197
-
198
-
199
- ### Bug Fixes
200
-
201
- * [#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))
202
-
203
-
204
-
205
-
206
-
207
- ## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
208
-
209
- **Note:** Version bump only for package @commitlint/ensure
210
-
211
-
212
-
213
-
214
-
215
- # [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
216
-
217
- **Note:** Version bump only for package @commitlint/ensure
218
-
219
-
220
-
221
-
222
-
223
- # [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
224
-
225
- **Note:** Version bump only for package @commitlint/ensure
226
-
227
-
228
-
229
-
230
-
231
- # [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
232
-
233
- **Note:** Version bump only for package @commitlint/ensure
234
-
235
-
236
-
237
-
238
-
239
- # [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
240
-
241
- **Note:** Version bump only for package @commitlint/ensure
242
-
243
-
244
-
245
-
246
-
247
- ## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11)
248
-
249
-
250
- ### Bug Fixes
251
-
252
- * 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))
253
-
254
-
255
-
256
-
257
-
258
- <a name="7.5.0"></a>
259
- # [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
260
-
261
-
262
- ### Bug Fixes
263
-
264
- * `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)
265
- * 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))
266
- * 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))
267
-
268
-
269
-
270
-
271
- <a name="7.3.1"></a>
272
- ## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
273
-
274
-
275
-
276
-
277
- **Note:** Version bump only for package @commitlint/ensure
278
-
279
- <a name="7.3.0"></a>
280
- # [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
281
-
282
-
283
- ### Bug Fixes
284
-
285
- * 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)
286
- * update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
287
-
288
-
289
-
290
-
291
- <a name="7.2.0"></a>
292
- # [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
293
-
294
-
295
- ### Bug Fixes
296
-
297
- * handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
298
-
299
-
300
-
301
-
302
- <a name="7.1.2"></a>
303
- ## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
304
-
305
-
306
-
307
-
308
- **Note:** Version bump only for package @commitlint/ensure
309
-
310
- <a name="7.1.0"></a>
311
- # [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
312
-
313
-
314
- ### Features
315
-
316
- * add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
317
-
318
-
319
-
320
-
321
- <a name="6.1.1"></a>
322
- ## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * **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))
328
-
329
-
330
-
331
-
332
- <a name="6.1.0"></a>
333
- # [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
334
-
335
-
336
-
337
-
338
- **Note:** Version bump only for package @commitlint/ensure
339
-
340
- <a name="6.0.4"></a>
341
- ## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
342
-
343
-
344
-
345
-
346
- **Note:** Version bump only for package @commitlint/ensure
347
-
348
- <a name="6.0.3"></a>
349
- ## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
350
-
351
-
352
-
353
-
354
- **Note:** Version bump only for package @commitlint/ensure
355
-
356
- <a name="6.0.2"></a>
357
- ## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
358
-
359
-
360
-
361
-
362
- **Note:** Version bump only for package @commitlint/ensure
363
-
364
- <a name="6.0.0"></a>
365
- # [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
366
-
367
-
368
- ### Bug Fixes
369
-
370
- * 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))