Skip to content

Commit 156b0d9

Browse files
authored
chore: Update dependencies (#3666)
Update dependencies. # Changes - Remove no longer used dependencies: - `@astrojs/*`, `astro` previously used for legacy showcase. - `@icp-sdk/auth` only used in demo projects, moved to deps there. - `@types/ua-parser-js`, `ua-parser-js` previously used in legacy frontend. - Update dependencies to latest version: - `@eslint/*`, `eslint`, `eslint-plugin-*` - `@lingui/*` - `@sveltejs/*`, `svelte`, `svelte-check` - `@tailwindcss/*`, `tailwindcss` - `@vitejs/*`, `vite`, `vitest`, `vite-plugin-node-polyfills` - `@icp-sdk/*` - `@noble/hashes` - `@lucide/svelte` - `typescript`, `typescript-eslint` - `prettier`, `prettier-plugin-*` - `devtools-protocol` - `jsdom` - `magic-string` - Implement `./scripts/rewrite-dfinity-imports` to rewrite `@dfinity/*` imports to `@icp-sdk/core/*` for now. - Update and pinned various deps in child projects/demos to fix compatibility with root deps during npm install. - Update node version to 24.14.0 (latest LTS) and add `.nvmrc`. - Update DFX version to `0.30.2` (latest) to be compatible with latest `@icp-sdk/*`. - Fix eslint configuration for svelte, `.svelte` and related extensions are now linted correctly. - Updated base64 utils to avoid arg spread error with larger inputs. - Added hex utils since `@noble/*` no longer exports these. - Fix TS errors across various files as a result of TS version update. - Fix Uint8Array/ArrayBuffer TS errors as a result of `@icp-sdk/*` version update. - Specify reporter explicitly in e2e workflow so that we get both html output (default) and console output, showing failed tests immediately in e2e logs without having to wait for a shard to complete. # Tests All tests should pass as-is.
1 parent 93dc868 commit 156b0d9

Some content is hidden

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

49 files changed

+7478
-16132
lines changed

.github/workflows/canister-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ jobs:
582582
583583
- name: Run Playwright tests
584584
run: |
585-
npx playwright test --project ${{ matrix.device }} --workers 1 --shard=$(tr <<<'${{ matrix.shard }}' -s _ /)
585+
npx playwright test --project ${{ matrix.device }} --workers 1 --shard=$(tr <<<'${{ matrix.shard }}' -s _ /) --reporter=line,html
586586
587587
- name: Stop dfx
588588
if: ${{ always() }}

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.20.0
1+
24.14.0

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.14.0

demos/test-app/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"private": true,
55
"dependencies": {
6-
"@icp-sdk/core": "*",
6+
"@icp-sdk/core": "^4.2.3",
77
"@slide-computer/signer": "^4.2.0",
88
"@slide-computer/signer-web": "^4.2.0",
99
"@noble/hashes": "*",
@@ -21,12 +21,11 @@
2121
"devDependencies": {
2222
"@dfinity/internet-identity-vc-api": "*",
2323
"@dfinity/internet-identity-vite-plugins": "*",
24-
"@icp-sdk/core": "^4.2.3",
2524
"@types/react": "^18.2.38",
2625
"@types/react-dom": "^18.2.17",
27-
"@vitejs/plugin-react": "^4.2.0",
26+
"@vitejs/plugin-react": "^5.1.4",
2827
"typescript": "5.2.2",
29-
"vite": "^6.4.1",
30-
"vite-plugin-node-polyfills": "^0.23.0"
28+
"vite": "^7.3.1",
29+
"vite-plugin-node-polyfills": "^0.25.0"
3130
}
3231
}

demos/vc_issuer/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"license": "SEE LICENSE IN LICENSE.md",
66
"dependencies": {
7-
"@dfinity/utils": "*",
8-
"@icp-sdk/auth": "*",
9-
"@icp-sdk/core": "^4.0.4",
7+
"@dfinity/utils": "^4.0.2",
8+
"@icp-sdk/auth": "^4.2.0",
9+
"@icp-sdk/core": "^4.2.3",
1010
"buffer": "^6.0.3",
1111
"react": "^18.2.0",
1212
"react-dom": "^18.2.0"
@@ -24,9 +24,9 @@
2424
"@dfinity/internet-identity-vite-plugins": "*",
2525
"@types/react": "^18.2.38",
2626
"@types/react-dom": "^18.2.17",
27-
"@vitejs/plugin-react": "^4.2.0",
27+
"@vitejs/plugin-react": "^5.1.4",
2828
"typescript": "5.2.2",
29-
"vite": "^6.4.1",
30-
"vite-plugin-node-polyfills": "^0.23.0"
29+
"vite": "^7.3.1",
30+
"vite-plugin-node-polyfills": "^0.25.0"
3131
}
3232
}

dfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"packtool": ""
3737
}
3838
},
39-
"dfx": "0.29.0",
39+
"dfx": "0.30.2",
4040
"version": 1
4141
}

eslint.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default ts.config(
2424
},
2525
},
2626
{
27-
files: ["**/*.svelte"],
27+
files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
2828

2929
languageOptions: {
3030
parserOptions: {
@@ -35,7 +35,7 @@ export default ts.config(
3535
{
3636
languageOptions: {
3737
parserOptions: {
38-
project: ["./tsconfig.json"],
38+
project: ["./tsconfig.eslint.json"],
3939
},
4040
},
4141
},
@@ -55,9 +55,11 @@ export default ts.config(
5555
],
5656
"require-await": ["error"],
5757
"@typescript-eslint/no-floating-promises": ["error"],
58+
// @see https://github.com/sveltejs/eslint-plugin-svelte/issues/1353
59+
"svelte/no-navigation-without-resolve": "off",
5860
},
5961
},
6062
{
61-
ignores: ["src/frontend/src/lib/generated/*", "src/showcase/.astro/*"],
63+
ignores: ["src/frontend/src/lib/generated/*"],
6264
},
6365
);

0 commit comments

Comments
 (0)