Skip to content

Commit fd672dd

Browse files
chtituxclaude
andcommitted
Update CI matrix to Node 20/22/24 and bump GitHub Actions
Matches the new engines.node >=20.0.0 range. checkout/setup-node/ upload-artifact to v7, configure-pages to v6, upload-pages-artifact and deploy-pages to v5. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MNBx9fdd9ks7ppr6Vjd4mZ
1 parent aa033f1 commit fd672dd

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x, 20.x, 21.x]
15+
node-version: [20.x, 22.x, 24.x]
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v7
1919

2020
- name: Setup Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@v7
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
cache: 'npm'
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Upload build artifacts
4242
if: matrix.node-version == '20.x'
43-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@v7
4444
with:
4545
name: dist
4646
path: dist/

.github/workflows/pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v7
2222

2323
- name: Setup Node.js
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v7
2525
with:
2626
node-version: '20.x'
2727
cache: 'npm'
@@ -47,10 +47,10 @@ jobs:
4747
run: cp -r typedoc-out website/dist/docs
4848

4949
- name: Setup Pages
50-
uses: actions/configure-pages@v4
50+
uses: actions/configure-pages@v6
5151

5252
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v3
53+
uses: actions/upload-pages-artifact@v5
5454
with:
5555
path: './website/dist'
5656

@@ -63,4 +63,4 @@ jobs:
6363
steps:
6464
- name: Deploy to GitHub Pages
6565
id: deployment
66-
uses: actions/deploy-pages@v4
66+
uses: actions/deploy-pages@v5

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
publish:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v7
1616

17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v7
1818
with:
1919
node-version: '24'
2020
registry-url: 'https://registry.npmjs.org'

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- **Breaking: drop Node.js 18 support (`engines.node` is now `>=20.0.0`).** The `await import('node:crypto')` fallback for Node 18's missing `globalThis.crypto` is removed from the cache checksum code. This also fixes vite emitting `Module "crypto" has been externalized for browser compatibility` for the core `gtfs-sqljs` entry when bundling for the browser. Node 18 has been EOL since April 2025.
66
- README: document that the remaining vite `fs`/`path`/`crypto` warnings pointing at `sql.js/dist/sql-wasm.js` come from sql.js's UMD build, are harmless in the browser, and cannot be fixed from gtfs-sqljs.
7-
7+
- CI: test matrix is now Node 20.x / 22.x / 24.x (was 18.x / 20.x / 21.x), matching the new `engines` range. GitHub Actions bumped across workflows (`checkout`/`setup-node`/`upload-artifact` to v7, `configure-pages` to v6, `upload-pages-artifact`/`deploy-pages` to v5).
88
- Fix: `ProgressInfo` and `ProgressCallback` types are now exported from the package entry point, as documented in the README (`import { type ProgressInfo } from 'gtfs-sqljs'` previously failed).
99
- **Add `getCalendars(filters?)`** — bulk read of the `calendar` table (filters: `serviceId` single value or array, `limit`). `getCalendarByServiceId()` remains as a convenience wrapper. ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))
1010
- **`getCalendarDates()` no longer requires a service id** — it now accepts an optional filters object (`serviceId`, `date`, `limit`) and returns the whole `calendar_dates` table when called without arguments. The legacy `getCalendarDates('SERVICE_ID')` string form is still accepted. ([#46](https://github.com/sysdevrun/gtfs-sqljs/issues/46))

0 commit comments

Comments
 (0)