Skip to content

Commit d8c3e06

Browse files
committed
chore: update dependencies and fix captive portal build
Update frontend dependencies (package.json, lockfile, .nvmrc, workspace, svelte-core submodule) and fix @openshock/svelte-core import specifiers that used unexported ./...index.ts subpaths, breaking `pnpm run build`. Rewrite imports to the package's exported subpaths: - components/ui/<X>/index.ts -> ui/<X> - components/stepper/index.ts -> stepper - components/index.ts -> components - typeguards/index.ts -> typeguards - state/<X>.svelte.ts -> state/<X>.svelte
1 parent 1312665 commit d8c3e06

21 files changed

Lines changed: 1248 additions & 864 deletions

frontend/.nvmrc

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

frontend/package.json

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,50 +19,47 @@
1919
"@eslint/compat": "^2.1.0",
2020
"@eslint/js": "latest",
2121
"@internationalized/date": "^3.12.2",
22-
"@lucide/svelte": "^1.17.0",
22+
"@lucide/svelte": "^1.21.0",
2323
"@openshock/svelte-core": "workspace:*",
24-
"@playwright/test": "^1.60.0",
24+
"@playwright/test": "^1.61.1",
2525
"@sveltejs/vite-plugin-svelte": "^7.1.2",
26-
"@tailwindcss/vite": "^4.3.0",
27-
"@types/node": "^25.9.2",
26+
"@tailwindcss/vite": "^4.3.1",
27+
"@types/node": "^26.0.1",
2828
"bits-ui": "2.18.1",
2929
"clsx": "^2.1.1",
3030
"core": "workspace:@openshock/svelte-core@*",
31-
"eslint": "^10.4.1",
31+
"eslint": "^10.6.0",
3232
"eslint-config-prettier": "^10.1.8",
3333
"eslint-plugin-compat": "^7.0.2",
34-
"eslint-plugin-svelte": "^3.19.0",
34+
"eslint-plugin-svelte": "^3.20.0",
3535
"flatbuffers": "^25.9.23",
36-
"globals": "^17.6.0",
37-
"prettier": "^3.8.4",
36+
"globals": "^17.7.0",
37+
"prettier": "^3.8.5",
3838
"prettier-plugin-organize-imports": "^4.3.0",
39-
"prettier-plugin-svelte": "^4.1.0",
39+
"prettier-plugin-svelte": "^4.1.1",
4040
"prettier-plugin-tailwindcss": "^0.8.0",
4141
"rollup-plugin-license": "^3.7.1",
4242
"rollup-plugin-visualizer": "^7.0.1",
4343
"svelte": "^5.56.4",
44-
"svelte-check": "^4.6.0",
44+
"svelte-check": "^4.7.1",
4545
"svelte-sonner": "^1.1.1",
4646
"tailwind-merge": "^3.6.0",
4747
"tailwind-variants": "^3.2.2",
48-
"tailwindcss": "^4.3.0",
49-
"turbo": "^2.5.0",
48+
"tailwindcss": "^4.3.1",
49+
"turbo": "^2.10.0",
5050
"tw-animate-css": "^1.4.0",
5151
"typescript": "^6.0.3",
52-
"typescript-eslint": "^8.61.0",
53-
"vite": "^8.0.16",
52+
"typescript-eslint": "^8.62.0",
53+
"vite": "^8.1.0",
5454
"vite-plugin-singlefile": "^2.3.3",
55-
"vitest": "^4.1.8"
55+
"vitest": "^4.1.9"
5656
},
5757
"engines": {
58-
"node": ">=24 <25",
59-
"pnpm": ">=10"
58+
"node": "^26",
59+
"pnpm": ">=11"
6060
},
61-
"volta": {
62-
"node": "24.14.0"
63-
},
64-
"packageManager": "pnpm@11.1.2",
6561
"browserslist": [
6662
"> 0.5%, last 2 versions, Firefox ESR, not dead, not op_mini all"
67-
]
63+
],
64+
"packageManager": "pnpm@11.9.0"
6865
}

frontend/packages/svelte-core

Submodule svelte-core updated 263 files

frontend/pnpm-lock.yaml

Lines changed: 1186 additions & 799 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/pnpm-workspace.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ minimumReleaseAge: 4320 # 3 days
99

1010
minimumReleaseAgeExclude:
1111
- '@openshock/*'
12+
- cookie@0.7.0
13+
- ts-deepmerge@8.0.0
1214

1315
onlyBuiltDependencies:
1416
- '@tailwindcss/oxide'
1517
- esbuild
1618

1719
overrides:
18-
# Force a single svelte version across the workspace. Without this, svelte-core
19-
# can resolve a different patch (e.g. 5.56.3) than the captive-portal root,
20-
# producing two unrelated Snippet types and svelte-check errors.
21-
svelte@>=5.0.0 <5.56.4: ^5.56.4
20+
cookie@<0.7.0: ^0.7.0
21+
ts-deepmerge@<8.0.0: ^8.0.0

frontend/src/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import Guided from '$lib/views/Guided.svelte';
66
import Advanced from '$lib/views/Advanced.svelte';
77
import Success from '$lib/views/Success.svelte';
8-
import { Toaster } from '@openshock/svelte-core/components/ui/sonner/index.ts';
9-
import { initializeColorScheme } from '@openshock/svelte-core/state/color-scheme-state.svelte.ts';
8+
import { Toaster } from '@openshock/svelte-core/ui/sonner';
9+
import { initializeColorScheme } from '@openshock/svelte-core/state/color-scheme-state.svelte';
1010
import { ViewModeStore } from '$lib/stores';
1111
import { closePortal } from '$lib/portalClose';
1212
import { fetchBoardInfo } from '$lib/api';

frontend/src/lib/WebSocketClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getDeviceHostname } from '$lib/utils/localRedirect';
2-
import { isArrayBuffer, isString } from '@openshock/svelte-core/typeguards/index.ts';
2+
import { isArrayBuffer, isString } from '@openshock/svelte-core/typeguards';
33
import { toast } from 'svelte-sonner';
44
import { WebSocketMessageBinaryHandler } from './MessageHandlers';
55

frontend/src/lib/components/AddHiddenNetworkDialog.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { saveWifiNetwork } from '$lib/api';
3-
import { Button, buttonVariants } from '@openshock/svelte-core/components/ui/button/index.ts';
3+
import { Button, buttonVariants } from '@openshock/svelte-core/ui/button';
44
import {
55
Dialog,
66
DialogContent,
@@ -9,9 +9,9 @@
99
DialogHeader,
1010
DialogTitle,
1111
DialogTrigger,
12-
} from '@openshock/svelte-core/components/ui/dialog/index.ts';
13-
import { Input } from '@openshock/svelte-core/components/ui/input/index.ts';
14-
import { Label } from '@openshock/svelte-core/components/ui/label/index.ts';
12+
} from '@openshock/svelte-core/ui/dialog';
13+
import { Input } from '@openshock/svelte-core/ui/input';
14+
import { Label } from '@openshock/svelte-core/ui/label';
1515
import { Plus } from '@lucide/svelte';
1616
1717
const securityOptions = [

frontend/src/lib/components/GpioPinSelector.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { hubState, usedPins } from '$lib/stores';
3-
import { Button } from '@openshock/svelte-core/components/ui/button/index.ts';
4-
import { Input } from '@openshock/svelte-core/components/ui/input/index.ts';
3+
import { Button } from '@openshock/svelte-core/ui/button';
4+
import { Input } from '@openshock/svelte-core/ui/input';
55
66
interface Props {
77
name: string;

frontend/src/lib/components/Layout/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { LightSwitch } from '@openshock/svelte-core/components/index.ts';
2+
import { LightSwitch } from '@openshock/svelte-core/components';
33
import { ViewModeStore } from '$lib/stores';
44
</script>
55

0 commit comments

Comments
 (0)