commitlint-plugin-function-rules 1.7.1 → 2.0.0-beta.2

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.
Files changed (3) hide show
  1. package/LICENSE.md +70 -70
  2. package/README.md +1 -1
  3. package/package.json +150 -29
package/LICENSE.md CHANGED
@@ -217,23 +217,23 @@ produce it from the Program, in the form of source code under the
217
217
  terms of section 4, provided that you also meet all of these
218
218
  conditions:
219
219
 
220
- - a) The work must carry prominent notices stating that you modified
221
- it, and giving a relevant date.
222
- - b) The work must carry prominent notices stating that it is
223
- released under this License and any conditions added under
224
- section 7. This requirement modifies the requirement in section 4
225
- to "keep intact all notices".
226
- - c) You must license the entire work, as a whole, under this
227
- License to anyone who comes into possession of a copy. This
228
- License will therefore apply, along with any applicable section 7
229
- additional terms, to the whole of the work, and all its parts,
230
- regardless of how they are packaged. This License gives no
231
- permission to license the work in any other way, but it does not
232
- invalidate such permission if you have separately received it.
233
- - d) If the work has interactive user interfaces, each must display
234
- Appropriate Legal Notices; however, if the Program has interactive
235
- interfaces that do not display Appropriate Legal Notices, your
236
- work need not make them do so.
220
+ - a) The work must carry prominent notices stating that you modified
221
+ it, and giving a relevant date.
222
+ - b) The work must carry prominent notices stating that it is
223
+ released under this License and any conditions added under
224
+ section 7. This requirement modifies the requirement in section 4
225
+ to "keep intact all notices".
226
+ - c) You must license the entire work, as a whole, under this
227
+ License to anyone who comes into possession of a copy. This
228
+ License will therefore apply, along with any applicable section 7
229
+ additional terms, to the whole of the work, and all its parts,
230
+ regardless of how they are packaged. This License gives no
231
+ permission to license the work in any other way, but it does not
232
+ invalidate such permission if you have separately received it.
233
+ - d) If the work has interactive user interfaces, each must display
234
+ Appropriate Legal Notices; however, if the Program has interactive
235
+ interfaces that do not display Appropriate Legal Notices, your
236
+ work need not make them do so.
237
237
 
238
238
  A compilation of a covered work with other separate and independent
239
239
  works, which are not by their nature extensions of the covered work,
@@ -252,42 +252,42 @@ sections 4 and 5, provided that you also convey the machine-readable
252
252
  Corresponding Source under the terms of this License, in one of these
253
253
  ways:
254
254
 
255
- - a) Convey the object code in, or embodied in, a physical product
256
- (including a physical distribution medium), accompanied by the
257
- Corresponding Source fixed on a durable physical medium
258
- customarily used for software interchange.
259
- - b) Convey the object code in, or embodied in, a physical product
260
- (including a physical distribution medium), accompanied by a
261
- written offer, valid for at least three years and valid for as
262
- long as you offer spare parts or customer support for that product
263
- model, to give anyone who possesses the object code either (1) a
264
- copy of the Corresponding Source for all the software in the
265
- product that is covered by this License, on a durable physical
266
- medium customarily used for software interchange, for a price no
267
- more than your reasonable cost of physically performing this
268
- conveying of source, or (2) access to copy the Corresponding
269
- Source from a network server at no charge.
270
- - c) Convey individual copies of the object code with a copy of the
271
- written offer to provide the Corresponding Source. This
272
- alternative is allowed only occasionally and noncommercially, and
273
- only if you received the object code with such an offer, in accord
274
- with subsection 6b.
275
- - d) Convey the object code by offering access from a designated
276
- place (gratis or for a charge), and offer equivalent access to the
277
- Corresponding Source in the same way through the same place at no
278
- further charge. You need not require recipients to copy the
279
- Corresponding Source along with the object code. If the place to
280
- copy the object code is a network server, the Corresponding Source
281
- may be on a different server (operated by you or a third party)
282
- that supports equivalent copying facilities, provided you maintain
283
- clear directions next to the object code saying where to find the
284
- Corresponding Source. Regardless of what server hosts the
285
- Corresponding Source, you remain obligated to ensure that it is
286
- available for as long as needed to satisfy these requirements.
287
- - e) Convey the object code using peer-to-peer transmission,
288
- provided you inform other peers where the object code and
289
- Corresponding Source of the work are being offered to the general
290
- public at no charge under subsection 6d.
255
+ - a) Convey the object code in, or embodied in, a physical product
256
+ (including a physical distribution medium), accompanied by the
257
+ Corresponding Source fixed on a durable physical medium
258
+ customarily used for software interchange.
259
+ - b) Convey the object code in, or embodied in, a physical product
260
+ (including a physical distribution medium), accompanied by a
261
+ written offer, valid for at least three years and valid for as
262
+ long as you offer spare parts or customer support for that product
263
+ model, to give anyone who possesses the object code either (1) a
264
+ copy of the Corresponding Source for all the software in the
265
+ product that is covered by this License, on a durable physical
266
+ medium customarily used for software interchange, for a price no
267
+ more than your reasonable cost of physically performing this
268
+ conveying of source, or (2) access to copy the Corresponding
269
+ Source from a network server at no charge.
270
+ - c) Convey individual copies of the object code with a copy of the
271
+ written offer to provide the Corresponding Source. This
272
+ alternative is allowed only occasionally and noncommercially, and
273
+ only if you received the object code with such an offer, in accord
274
+ with subsection 6b.
275
+ - d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+ - e) Convey the object code using peer-to-peer transmission,
288
+ provided you inform other peers where the object code and
289
+ Corresponding Source of the work are being offered to the general
290
+ public at no charge under subsection 6d.
291
291
 
292
292
  A separable portion of the object code, whose source code is excluded
293
293
  from the Corresponding Source as a System Library, need not be
@@ -363,23 +363,23 @@ Notwithstanding any other provision of this License, for material you
363
363
  add to a covered work, you may (if authorized by the copyright holders
364
364
  of that material) supplement the terms of this License with terms:
365
365
 
366
- - a) Disclaiming warranty or limiting liability differently from the
367
- terms of sections 15 and 16 of this License; or
368
- - b) Requiring preservation of specified reasonable legal notices or
369
- author attributions in that material or in the Appropriate Legal
370
- Notices displayed by works containing it; or
371
- - c) Prohibiting misrepresentation of the origin of that material,
372
- or requiring that modified versions of such material be marked in
373
- reasonable ways as different from the original version; or
374
- - d) Limiting the use for publicity purposes of names of licensors
375
- or authors of the material; or
376
- - e) Declining to grant rights under trademark law for use of some
377
- trade names, trademarks, or service marks; or
378
- - f) Requiring indemnification of licensors and authors of that
379
- material by anyone who conveys the material (or modified versions
380
- of it) with contractual assumptions of liability to the recipient,
381
- for any liability that these contractual assumptions directly
382
- impose on those licensors and authors.
366
+ - a) Disclaiming warranty or limiting liability differently from the
367
+ terms of sections 15 and 16 of this License; or
368
+ - b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+ - c) Prohibiting misrepresentation of the origin of that material,
372
+ or requiring that modified versions of such material be marked in
373
+ reasonable ways as different from the original version; or
374
+ - d) Limiting the use for publicity purposes of names of licensors
375
+ or authors of the material; or
376
+ - e) Declining to grant rights under trademark law for use of some
377
+ trade names, trademarks, or service marks; or
378
+ - f) Requiring indemnification of licensors and authors of that
379
+ material by anyone who conveys the material (or modified versions
380
+ of it) with contractual assumptions of liability to the recipient,
381
+ for any liability that these contractual assumptions directly
382
+ impose on those licensors and authors.
383
383
 
384
384
  All other non-permissive additional terms are considered "further
385
385
  restrictions" within the meaning of section 10. If the Program as you
package/README.md CHANGED
@@ -84,7 +84,7 @@ Please refer to the [Security Policy on GitHub](https://github.com/vidavidorra/c
84
84
 
85
85
  This project is licensed under the [GPLv3 license](https://www.gnu.org/licenses/gpl.html).
86
86
 
87
- Copyright © 2020-2021 Jeroen de Bruijn
87
+ Copyright © 2020-2023 Jeroen de Bruijn
88
88
 
89
89
  <details><summary>License details.</summary>
90
90
  <p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commitlint-plugin-function-rules",
3
- "version": "1.7.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "commitlint plugin to define rules as functions.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,13 +15,9 @@
15
15
  "lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
16
16
  "lint-es:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix .",
17
17
  "lint-es:file:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix",
18
- "format": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
19
- "format:check": "prettier --ignore-path .eslintignore --check \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
20
- "format:file": "prettier --write",
18
+ "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
19
+ "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
21
20
  "build": "tsc",
22
- "build:check": "tsc --noEmit",
23
- "build:clean-first": "run-s clean build",
24
- "clean": "rm -rf ./dist",
25
21
  "test": "c8 ava"
26
22
  },
27
23
  "repository": {
@@ -41,15 +37,15 @@
41
37
  },
42
38
  "homepage": "https://github.com/vidavidorra/commitlint-plugin-function-rules#readme",
43
39
  "engines": {
44
- "node": ">=12"
40
+ "node": ">=16"
45
41
  },
46
42
  "peerDependencies": {
47
43
  "@commitlint/lint": ">=9.1.2 <18"
48
44
  },
49
45
  "devDependencies": {
50
46
  "@ava/typescript": "3.0.1",
51
- "@commitlint/cli": "17.0.0",
52
- "@commitlint/config-conventional": "17.0.0",
47
+ "@commitlint/cli": "17.4.4",
48
+ "@commitlint/config-conventional": "17.4.4",
53
49
  "@commitlint/lint-10.x": "npm:@commitlint/lint@10.0.0",
54
50
  "@commitlint/lint-11.x": "npm:@commitlint/lint@11.0.0",
55
51
  "@commitlint/lint-12.x": "npm:@commitlint/lint@12.1.4",
@@ -57,7 +53,7 @@
57
53
  "@commitlint/lint-14.x": "npm:@commitlint/lint@14.1.0",
58
54
  "@commitlint/lint-15.x": "npm:@commitlint/lint@15.0.0",
59
55
  "@commitlint/lint-16.x": "npm:@commitlint/lint@16.2.4",
60
- "@commitlint/lint-17.x": "npm:@commitlint/lint@17.0.0",
56
+ "@commitlint/lint-17.x": "npm:@commitlint/lint@17.4.4",
61
57
  "@commitlint/lint-9.x": "npm:@commitlint/lint@9.1.2",
62
58
  "@commitlint/load-10.x": "npm:@commitlint/load@10.0.0",
63
59
  "@commitlint/load-11.x": "npm:@commitlint/load@11.0.0",
@@ -66,29 +62,29 @@
66
62
  "@commitlint/load-14.x": "npm:@commitlint/load@14.1.0",
67
63
  "@commitlint/load-15.x": "npm:@commitlint/load@15.0.0",
68
64
  "@commitlint/load-16.x": "npm:@commitlint/load@16.3.0",
69
- "@commitlint/load-17.x": "npm:@commitlint/load@17.0.0",
65
+ "@commitlint/load-17.x": "npm:@commitlint/load@17.4.4",
70
66
  "@commitlint/load-9.x": "npm:@commitlint/load@9.1.2",
71
- "@commitlint/rules": "17.0.0",
72
- "@commitlint/types": "17.0.0",
73
- "@semantic-release/changelog": "6.0.1",
67
+ "@commitlint/rules": "17.4.4",
68
+ "@commitlint/types": "17.4.4",
69
+ "@semantic-release/changelog": "6.0.3",
74
70
  "@semantic-release/exec": "6.0.3",
75
71
  "@semantic-release/git": "10.0.1",
76
- "@types/sinon": "10.0.11",
77
- "@typescript-eslint/eslint-plugin": "5.25.0",
78
- "@typescript-eslint/parser": "5.25.0",
79
- "ava": "4.2.0",
80
- "c8": "7.11.3",
81
- "eslint": "8.15.0",
82
- "eslint-config-prettier": "8.5.0",
72
+ "@types/sinon": "10.0.13",
73
+ "@typescript-eslint/eslint-plugin": "5.58.0",
74
+ "@typescript-eslint/parser": "5.58.0",
75
+ "ava": "5.0.1",
76
+ "c8": "7.13.0",
77
+ "eslint": "8.38.0",
78
+ "eslint-config-prettier": "8.8.0",
83
79
  "eslint-plugin-json": "3.1.0",
84
- "eslint-plugin-prettier": "4.0.0",
85
- "husky": "8.0.1",
86
- "lint-staged": "12.4.1",
80
+ "eslint-plugin-prettier": "4.2.1",
81
+ "husky": "8.0.3",
82
+ "lint-staged": "13.2.1",
87
83
  "npm-run-all": "4.1.5",
88
- "prettier": "2.6.2",
89
- "semantic-release": "19.0.2",
90
- "sinon": "14.0.0",
91
- "typescript": "4.6.4"
84
+ "prettier": "2.8.7",
85
+ "semantic-release": "21.0.1",
86
+ "sinon": "15.0.3",
87
+ "typescript": "4.8.4"
92
88
  },
93
89
  "ava": {
94
90
  "typescript": {
@@ -107,5 +103,130 @@
107
103
  "include": [
108
104
  "dist/**/*.js"
109
105
  ]
106
+ },
107
+ "prettier": {
108
+ "singleQuote": true,
109
+ "trailingComma": "all"
110
+ },
111
+ "release": {
112
+ "branches": [
113
+ "main",
114
+ {
115
+ "name": "beta",
116
+ "prerelease": true
117
+ }
118
+ ],
119
+ "plugins": [
120
+ [
121
+ "@semantic-release/commit-analyzer",
122
+ {
123
+ "releaseRules": [
124
+ {
125
+ "type": "perf",
126
+ "release": "patch"
127
+ },
128
+ {
129
+ "type": "revert",
130
+ "release": "patch"
131
+ },
132
+ {
133
+ "type": "docs",
134
+ "release": "patch"
135
+ },
136
+ {
137
+ "type": "chore",
138
+ "release": false
139
+ },
140
+ {
141
+ "type": "refactor",
142
+ "release": "patch"
143
+ },
144
+ {
145
+ "type": "test",
146
+ "release": "patch"
147
+ },
148
+ {
149
+ "type": "build",
150
+ "release": "patch"
151
+ },
152
+ {
153
+ "type": "ci",
154
+ "release": "patch"
155
+ }
156
+ ]
157
+ }
158
+ ],
159
+ "@semantic-release/release-notes-generator",
160
+ "@semantic-release/changelog",
161
+ [
162
+ "@semantic-release/exec",
163
+ {
164
+ "prepareCmd": "prettier --write CHANGELOG.md"
165
+ }
166
+ ],
167
+ [
168
+ "@semantic-release/npm",
169
+ {
170
+ "tarballDir": "dist"
171
+ }
172
+ ],
173
+ "@semantic-release/git",
174
+ [
175
+ "@semantic-release/github",
176
+ {
177
+ "assets": "dist/*.tgz"
178
+ }
179
+ ]
180
+ ],
181
+ "preset": "conventionalcommits",
182
+ "presetConfig": {
183
+ "types": [
184
+ {
185
+ "type": "feat",
186
+ "section": "Features"
187
+ },
188
+ {
189
+ "type": "fix",
190
+ "section": "Bug Fixes"
191
+ },
192
+ {
193
+ "type": "perf",
194
+ "section": "Performance Improvements"
195
+ },
196
+ {
197
+ "type": "revert",
198
+ "section": "Reverts"
199
+ },
200
+ {
201
+ "type": "docs",
202
+ "section": "Documentation"
203
+ },
204
+ {
205
+ "type": "style",
206
+ "section": "Styles"
207
+ },
208
+ {
209
+ "type": "chore",
210
+ "section": "Miscellaneous Chores",
211
+ "hidden": true
212
+ },
213
+ {
214
+ "type": "refactor",
215
+ "section": "Code Refactoring"
216
+ },
217
+ {
218
+ "type": "test",
219
+ "section": "Tests"
220
+ },
221
+ {
222
+ "type": "build",
223
+ "section": "Build System"
224
+ },
225
+ {
226
+ "type": "ci",
227
+ "section": "Continuous Integration"
228
+ }
229
+ ]
230
+ }
110
231
  }
111
232
  }