Skip to content

Commit f078ea3

Browse files
feat: Upgrade to Node.js 22 and update Wrangler
This commit upgrades the project to Node.js version 22. Key changes include: - Updated `package.json` to specify `engines.node >=22.0.0`. - Upgraded `@types/node` to `^22.15.21`. - Upgraded `wrangler` (Cloudflare CLI) to `^4.16.1`. - Updated `package-lock.json` accordingly. - Modified GitHub Actions workflows (`build.yml`, `release.yml`, `staging.yml`) to use Node.js 22 and the updated Wrangler version 4.16.1. The `wrangler.toml` already contained `nodejs_compat_v2` and a recent `compatibility_date`, which are suitable for this upgrade. Testing (`npm ci`, `npm run lint`, `npm run build`) passed successfully with the new versions. Minor deprecation warnings for `@esbuild-kit/*` packages and a Wrangler TOML warning for the `usage_model` field were observed but did not impede the build process or functionality.
1 parent 2641535 commit f078ea3

6 files changed

Lines changed: 745 additions & 351 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version: 22
1919
cache: "npm"
2020

2121
- name: "Execute build"

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
22+
node-version: 22
2323
cache: "npm"
2424

2525
- name: "Obtain Github App token"
@@ -56,7 +56,7 @@ jobs:
5656

5757
- uses: actions/setup-node@v4
5858
with:
59-
node-version: 20
59+
node-version: 22
6060
cache: 'npm'
6161
cache-dependency-path: '**/package-lock.json'
6262

@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
6767
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
68-
wranglerVersion: '3.112.0'
68+
wranglerVersion: '4.16.1'
6969
preCommands: npm ci
7070
command: publish
7171
secrets: |

.github/workflows/staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121

2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525
cache: 'npm'
2626

2727
- name: Publish to Cloudflare
2828
uses: cloudflare/wrangler-action@v3
2929
with:
3030
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3131
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
32-
wranglerVersion: '3.112.0'
32+
wranglerVersion: '4.16.1'
3333
preCommands: npm ci
3434
command: publish --env staging
3535
secrets: |

0 commit comments

Comments
 (0)