Skip to content

Commit f5d6016

Browse files
authored
Merge pull request #203 from vidavidorra/beta
2 parents 0850ccd + 8d14d1f commit f5d6016

15 files changed

+245
-218
lines changed

Diff for: .eslintignore

-10
This file was deleted.

Diff for: .gitattributes

-1
This file was deleted.

Diff for: .github/husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install lint-staged
4+
npx --no-install lint-staged --config .github/lint-staged.js

Diff for: .github/lint-staged.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
'*.{ts,tsx,js,jsx}': [
3+
'prettier --write',
4+
'npm run lint-es:file:fix',
5+
() => 'npm run test',
6+
],
7+
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
8+
'prettier --write',
9+
};

Diff for: .github/renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"description": "Disable updates for aliased commitlint packages with a final version",
77
"packagePatterns": [
8-
"^@commitlint/(lint|load)\\-(9|10|11|12|13|14|15)\\.x"
8+
"^@commitlint/(lint|load)\\-(9|10|11|12|13|14|15|16)\\.x"
99
],
1010
"depTypeList": ["devDependencies"],
1111
"enabled": false

Diff for: .github/workflows/build.yml

+14-48
Original file line numberDiff line numberDiff line change
@@ -3,70 +3,36 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint:
1111
uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
1212
build:
13-
name: Build (Node.js v${{ matrix.node }})
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 5
13+
name: Build (Node.js ${{ matrix.nodeVersion }})
1614
strategy:
1715
fail-fast: false
1816
matrix:
19-
node: [12, 14, 16]
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
23-
- name: Setup node
24-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
25-
with:
26-
node-version: ${{ matrix.node }}
27-
- name: Install project
28-
run: npm ci --ignore-scripts
29-
- name: Build
30-
run: npm run build
17+
nodeVersion: [16, 18, 19]
18+
uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
19+
with:
20+
nodeVersion: ${{ matrix.nodeVersion }}
3121
test:
3222
name: Test (Node.js v${{ matrix.node }})
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 5
3523
strategy:
3624
fail-fast: false
3725
matrix:
38-
node: [12, 14, 16]
39-
steps:
40-
- name: Checkout
41-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
42-
- name: Setup node
43-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
44-
with:
45-
node-version: ${{ matrix.node }}
46-
- name: Install project
47-
run: npm ci --ignore-scripts
48-
- name: Test
49-
run: npm test
26+
node: [16, 18, 19]
27+
uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
28+
with:
29+
nodeVersion: ${{ matrix.node }}
5030
code-coverage:
31+
name: Test coverage
5132
needs: [lint, build, test]
52-
runs-on: ubuntu-latest
53-
timeout-minutes: 5
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
57-
- name: Setup node
58-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
59-
with:
60-
node-version: 14
61-
- name: Install project
62-
run: npm ci --ignore-scripts
63-
- name: Test
64-
run: npm test
65-
- name: Upload coverage to Codecov
66-
uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 # v3.1.2
67-
with:
68-
token: ${{ secrets.CODECOV_TOKEN }}
69-
file: ./coverage/cobertura-coverage.xml
33+
uses: vidavidorra/.github/.github/workflows/[email protected]
34+
secrets:
35+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
7036
release:
7137
needs: [lint, build, test, code-coverage]
7238
runs-on: ubuntu-latest

Diff for: .github/workflows/lint-commit-messages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint-commit-messages:

Diff for: .lintstagedrc.js

-10
This file was deleted.

Diff for: .prettierrc.js

-4
This file was deleted.

Diff for: .releaserc.js

-60
This file was deleted.

Diff for: CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [2.0.0-beta.2](https://github.com/vidavidorra/commitlint-plugin-function-rules/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2023-06-19)
2+
3+
### Continuous Integration
4+
5+
- **renovate:** disable for commitlint v16 final version ([7cb48af](https://github.com/vidavidorra/commitlint-plugin-function-rules/commit/7cb48af598025adc12ad8b54c0a2da3511ad49d4))
6+
7+
## [2.0.0-beta.1](https://github.com/vidavidorra/commitlint-plugin-function-rules/compare/v1.7.1...v2.0.0-beta.1) (2023-04-17)
8+
9+
### ⚠ BREAKING CHANGES
10+
11+
- drop support for Node.js v12, which is EOL, and v14, which is EOL in a couple days
12+
13+
### Features
14+
15+
- drop support for Node.js v12, which is EOL, and v14, which is EOL in a couple days ([91c872b](https://github.com/vidavidorra/commitlint-plugin-function-rules/commit/91c872b77560fbe79008536ae6a7f2ba2808442b))
16+
117
### [1.7.1](https://github.com/vidavidorra/commitlint-plugin-function-rules/compare/v1.7.0...v1.7.1) (2022-05-22)
218

319
### Tests

Diff for: LICENSE.md

+70-70
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,23 @@ produce it from the Program, in the form of source code under the
217217
terms of section 4, provided that you also meet all of these
218218
conditions:
219219

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.
237237

238238
A compilation of a covered work with other separate and independent
239239
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
252252
Corresponding Source under the terms of this License, in one of these
253253
ways:
254254

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.
291291

292292
A separable portion of the object code, whose source code is excluded
293293
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
363363
add to a covered work, you may (if authorized by the copyright holders
364364
of that material) supplement the terms of this License with terms:
365365

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.
383383

384384
All other non-permissive additional terms are considered "further
385385
restrictions" within the meaning of section 10. If the Program as you

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Please refer to the [Security Policy on GitHub](https://github.com/vidavidorra/c
8484

8585
This project is licensed under the [GPLv3 license](https://www.gnu.org/licenses/gpl.html).
8686

87-
Copyright © 2020-2021 Jeroen de Bruijn
87+
Copyright © 2020-2023 Jeroen de Bruijn
8888

8989
<details><summary>License details.</summary>
9090
<p>

0 commit comments

Comments
 (0)