Skip to content

Commit 93e65e1

Browse files
committed
BREAKING: now requires node 20+
1 parent 8855402 commit 93e65e1

File tree

8 files changed

+1694
-1351
lines changed

8 files changed

+1694
-1351
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,20 @@ on:
77
pull_request:
88
branches:
99
- main
10-
workflow_call:
11-
secrets:
12-
CODECOV_TOKEN:
13-
required: true
1410

1511
jobs:
1612
build:
1713

1814
strategy:
1915
matrix:
20-
node-version: [18.x, 20.x, 22.x, 23.x]
16+
node-version: [20, 22, 23]
2117
os: [ubuntu-latest]
2218

2319
runs-on: ${{ matrix.os }}
2420

2521
steps:
2622
- uses: actions/checkout@v4
27-
- run: corepack enable
23+
- uses: pnpm/action-setup@v4
2824
- name: Use Node.js ${{ matrix.node-version }}
2925
uses: actions/setup-node@v4
3026
with:
@@ -35,6 +31,6 @@ jobs:
3531
- name: Test
3632
run: npm run ci
3733
- name: Upload coverage reports to Codecov
38-
uses: codecov/codecov-action@v4
34+
uses: codecov/codecov-action@v5
3935
with:
4036
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [published]
5-
workflow_call:
6-
secrets:
7-
NPM_TOKEN:
8-
required: true
95

106
jobs:
117
build:
@@ -15,10 +11,10 @@ jobs:
1511
id-token: write
1612
steps:
1713
- uses: actions/checkout@v4
18-
- run: corepack enable
14+
- uses: pnpm/action-setup@v4
1915
- uses: actions/setup-node@v4
2016
with:
21-
node-version: '22.x'
17+
node-version: 22
2218
registry-url: 'https://registry.npmjs.org'
2319
cache: pnpm
2420
- run: pnpm i -r

examples/email.abnf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262

6363
phrase = 1*word / obs-phrase
6464

65-
unstructured = (*([FWS] VCHAR) *WSP) / obs-unstruct
65+
; * changed to 1* so that obs-unstruct might match
66+
unstructured = (1*([FWS] VCHAR) *WSP) / obs-unstruct
6667

6768

6869

0 commit comments

Comments
 (0)