Skip to content

Commit 0791635

Browse files
author
Corentin Mors
authored
Upgrade to node22 (#296)
This is a major NodeJS version bump to v22 and includes version upgrades for multiple dependencies.
1 parent 07f4293 commit 0791635

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5924
-3862
lines changed

.github/workflows/documentation-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18
24+
node-version: 22
2525

2626
- name: Build
2727
run: |

.github/workflows/manual-test-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- host: ubuntu-latest
1818
target: linux-x64
1919
runs-on: ${{ matrix.settings.host }}
20-
name: dev build - ${{ matrix.settings.target }} - node@18
20+
name: dev build - ${{ matrix.settings.target }} - node@22
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Use Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 18.x
26+
node-version: 22.x
2727

2828
- if: matrix.settings.host == 'macos-14'
2929
run: brew install python-setuptools
@@ -35,7 +35,7 @@ jobs:
3535
- run: yarn workspaces focus --all --production
3636
# package final binaries
3737
- run: |
38-
yarn dlx @yao-pkg/pkg@5.12.0 ./dist -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"
38+
yarn dlx @yao-pkg/pkg@6.1.1 ./dist -t node22-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"
3939
4040
- name: Archive binary artifact
4141
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- host: ubuntu-latest
2121
target: linux-x64
2222
runs-on: ${{ matrix.settings.host }}
23-
name: dev build - ${{ matrix.settings.target }} - node@18
23+
name: dev build - ${{ matrix.settings.target }} - node@22
2424
steps:
2525
- uses: actions/checkout@v4
2626
- name: Use Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 18.x
29+
node-version: 22.x
3030

3131
- if: matrix.settings.host == 'macos-14'
3232
run: brew install python-setuptools
@@ -38,7 +38,7 @@ jobs:
3838
- run: yarn workspaces focus --all --production
3939
# package final binaries
4040
- run: |
41-
yarn dlx @yao-pkg/pkg@5.12.0 ./dist -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"
41+
yarn dlx @yao-pkg/pkg@6.1.1 ./dist -t node22-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C Brotli "--public" "--public-packages" "tslib,thirty-two,node-hkdf-sync,vows" "--no-bytecode"
4242
4343
- name: Archive binary artifact
4444
uses: actions/upload-artifact@v4

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18.x
19+
node-version: 22.x
2020
- run: yarn
2121
- run: yarn run lint
2222
- run: yarn run test

.yarn/releases/yarn-4.2.2.cjs

Lines changed: 0 additions & 894 deletions
This file was deleted.

.yarn/releases/yarn-4.5.1.cjs

Lines changed: 2056 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

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

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.2.2.cjs
7+
yarnPath: .yarn/releases/yarn-4.5.1.cjs

documentation/components/player.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ export const YoutubePlayer = (props: { videoId: string }) => {
1313
></iframe>
1414
);
1515
};
16+
17+
export default YoutubePlayer;

documentation/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

documentation/next.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
const withNextra = require('nextra')({
1+
import nextra from 'nextra';
2+
3+
const withNextra = nextra({
24
theme: 'nextra-theme-docs',
3-
themeConfig: './theme.config.jsx',
5+
themeConfig: './theme.config.jsx'
46
});
57

68
let assetPrefix = '';
79
let basePath = '';
810

9-
module.exports = {
10-
...withNextra(),
11+
export default withNextra({
1112
images: {
1213
unoptimized: true,
1314
},
1415
assetPrefix: assetPrefix,
1516
basePath: basePath,
1617
output: 'export'
17-
};
18+
});

0 commit comments

Comments
 (0)