Skip to content

Commit feade92

Browse files
arg274claude
andcommitted
Upgrade to SvelteKit 3
Migrated with sv migrate: the config moves from svelte.config.js into the sveltekit() plugin in vite.config.ts, $lib imports become #lib subpath imports, $app/environment becomes $app/env, and TypeScript goes to 6. The migration also ran prettier over src. Two follow-ups the migration left broken: - env.publicPrefix no longer exists in SvelteKit 3 and nothing read a CAMBIA_ variable, so it is gone. - TypeScript 6 rejects ws.send() on a value annotated as plain Uint8Array; the inferred Uint8Array<ArrayBuffer> is accepted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 9f47c4d commit feade92

105 files changed

Lines changed: 3121 additions & 2418 deletions

File tree

Some content is hidden

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

‎web/package-lock.json‎

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

‎web/package.json‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"@iconify/json": "^2.2.177",
1919
"@internationalized/date": "^3.12.4",
2020
"@playwright/test": "^1.41.1",
21-
"@sveltejs/adapter-auto": "^3.3.1",
22-
"@sveltejs/adapter-static": "^3.0.10",
23-
"@sveltejs/kit": "^2.70.3",
21+
"@sveltejs/adapter-auto": "^8.0.0",
22+
"@sveltejs/adapter-static": "^4.0.0",
23+
"@sveltejs/kit": "^3.0.0",
2424
"@sveltejs/vite-plugin-svelte": "^7.3.0",
2525
"@tailwindcss/forms": "^0.5.11",
2626
"@tailwindcss/typography": "^0.5.20",
@@ -45,11 +45,11 @@
4545
"prettier-plugin-svelte": "^3.3.3",
4646
"reflect-metadata": "^0.2.1",
4747
"slugify": "^1.6.6",
48-
"svelte": "^5.57.0",
48+
"svelte": "^5.57.1",
4949
"svelte-check": "^4.7.6",
5050
"tailwindcss": "^4.3.3",
5151
"tslib": "^2.6.2",
52-
"typescript": "^5.3.3",
52+
"typescript": "^6.0.0",
5353
"unplugin-icons": "^23.0.1",
5454
"vite": "^8.2.2",
5555
"vitest": "^4.1.11",
@@ -58,5 +58,9 @@
5858
"type": "module",
5959
"dependencies": {
6060
"@floating-ui/dom": "^1.6.1"
61+
},
62+
"imports": {
63+
"#lib": "./src/lib/index.js",
64+
"#lib/*": "./src/lib/*"
6165
}
6266
}

‎web/src/app.css‎

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
font-family: var(--font-sans);
3333
color: light-dark(#000000, #ffffff);
3434
}
35-
3635
}
3736

3837
/*
@@ -312,46 +311,53 @@ body {
312311

313312
/* cyrillic-ext */
314313
@font-face {
315-
font-family: 'Geist';
316-
font-style: normal;
317-
font-weight: 100 900;
318-
font-display: swap;
319-
src: url("/fonts/Geist-cyrillic-ext.woff2") format("woff2");
320-
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
314+
font-family: 'Geist';
315+
font-style: normal;
316+
font-weight: 100 900;
317+
font-display: swap;
318+
src: url('/fonts/Geist-cyrillic-ext.woff2') format('woff2');
319+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
321320
}
322321
/* cyrillic */
323322
@font-face {
324-
font-family: 'Geist';
325-
font-style: normal;
326-
font-weight: 100 900;
327-
font-display: swap;
328-
src: url("/fonts/Geist-cyrillic.woff2") format("woff2");
329-
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
323+
font-family: 'Geist';
324+
font-style: normal;
325+
font-weight: 100 900;
326+
font-display: swap;
327+
src: url('/fonts/Geist-cyrillic.woff2') format('woff2');
328+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
330329
}
331330
/* vietnamese */
332331
@font-face {
333-
font-family: 'Geist';
334-
font-style: normal;
335-
font-weight: 100 900;
336-
font-display: swap;
337-
src: url("/fonts/Geist-vietnamese.woff2") format("woff2");
338-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
332+
font-family: 'Geist';
333+
font-style: normal;
334+
font-weight: 100 900;
335+
font-display: swap;
336+
src: url('/fonts/Geist-vietnamese.woff2') format('woff2');
337+
unicode-range:
338+
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
339+
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
339340
}
340341
/* latin-ext */
341342
@font-face {
342-
font-family: 'Geist';
343-
font-style: normal;
344-
font-weight: 100 900;
345-
font-display: swap;
346-
src: url("/fonts/Geist-latin-ext.woff2") format("woff2");
347-
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
343+
font-family: 'Geist';
344+
font-style: normal;
345+
font-weight: 100 900;
346+
font-display: swap;
347+
src: url('/fonts/Geist-latin-ext.woff2') format('woff2');
348+
unicode-range:
349+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
350+
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
351+
U+A720-A7FF;
348352
}
349353
/* latin */
350354
@font-face {
351-
font-family: 'Geist';
352-
font-style: normal;
353-
font-weight: 100 900;
354-
font-display: swap;
355-
src: url("/fonts/Geist-latin.woff2") format("woff2");
356-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
357-
}
355+
font-family: 'Geist';
356+
font-style: normal;
357+
font-weight: 100 900;
358+
font-display: swap;
359+
src: url('/fonts/Geist-latin.woff2') format('woff2');
360+
unicode-range:
361+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
362+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
363+
}

‎web/src/app.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" data-theme="cambia-theme">
33
<head>
44
<meta charset="utf-8" />
55
<title>cambia LogTools</title>
66
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
77
<meta name="viewport" content="width=device-width" />
8-
<meta name="darkreader-lock">
8+
<meta name="darkreader-lock" />
99
<!--
1010
Applies the stored theme before first paint. This mirrors Skeleton's
1111
`setInitialClassState`, which used to be injected via `{@html}` from

0 commit comments

Comments
 (0)