Skip to content

Modern Docker Management, Designed for Everyone

chore(deps): upgrade to sveltekit v3 (#2836)

Kyle Mendell2709b6b999f2
diff --git a/.github/workflows/build-next-images.yml b/.github/workflows/build-next-images.yml
index 175252855..d0486538f 100644
--- a/.github/workflows/build-next-images.yml
+++ b/.github/workflows/build-next-images.yml
@@ -40,7 +40,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 25
+ node-version: 26
cache: pnpm
- name: Set up Go
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8ed0185fd..ea7f0d8a0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -209,7 +209,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 25
+ node-version: 26
cache: pnpm
- name: Setup Just
@@ -263,7 +263,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 25
+ node-version: 26
cache: pnpm
- name: Set up Depot CLI
@@ -332,7 +332,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 25
+ node-version: 26
cache: pnpm
- name: Setup Go
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c351c483b..3d889f616 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,7 +39,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 25
+ node-version: 26
cache: pnpm
- name: Set up Depot CLI
diff --git a/backend/internal/config/version.go b/backend/internal/config/version.go
index 57f629cc9..bb29a957b 100644
--- a/backend/internal/config/version.go
+++ b/backend/internal/config/version.go
@@ -3,9 +3,11 @@ package config
import "runtime"
var (
- Version = "dev"
- Revision = "unknown"
- BuildTime = "unknown"
+ Version = "dev"
+ Revision = "unknown"
+ BuildTime = "unknown"
+ NodeVersion = "unknown"
+ SvelteKitVersion = "unknown"
)
// ShortRevision returns the first 8 characters of the revision hash
diff --git a/backend/internal/services/version_service.go b/backend/internal/services/version_service.go
index 5661786d7..ef6a5b5e5 100644
--- a/backend/internal/services/version_service.go
+++ b/backend/internal/services/version_service.go
@@ -227,17 +227,19 @@ func (s *VersionService) GetAppVersionInfo(ctx context.Context) *version.Info {
// Build base info struct (always populated)
info := &version.Info{
- CurrentVersion: ver,
- CurrentTag: currentTag,
- CurrentDigest: currentDigest,
- DisplayVersion: s.getDisplayVersion(),
- Revision: s.revision,
- ShortRevision: config.ShortRevision(),
- GoVersion: config.GoVersion(),
- EnabledFeatures: parseEnabledFeatures(),
- BuildTime: config.BuildTime,
- IsSemverVersion: isSemver,
- UpdateAvailable: false,
+ CurrentVersion: ver,
+ CurrentTag: currentTag,
+ CurrentDigest: currentDigest,
+ DisplayVersion: s.getDisplayVersion(),
+ Revision: s.revision,
+ ShortRevision: config.ShortRevision(),
+ GoVersion: config.GoVersion(),
+ NodeVersion: config.NodeVersion,
+ SvelteKitVersion: config.SvelteKitVersion,
+ EnabledFeatures: parseEnabledFeatures(),
+ BuildTime: config.BuildTime,
+ IsSemverVersion: isSemver,
+ UpdateAvailable: false,
}
// If update checks disabled, return base info
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2e7967a28..c3c6d1c73 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,7 +3,7 @@ ARG BUILD_TAGS=""
ARG ARCANE_RUNTIME_BASE_IMAGE=ghcr.io/getarcaneapp/base:distroless
# Stage 1: Build Frontend
-FROM --platform=$BUILDPLATFORM node:25-trixie-slim AS frontend-builder
+FROM --platform=$BUILDPLATFORM node:26-trixie-slim AS frontend-builder
RUN npm install -g --force [email protected] && corepack enable
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
@@ -17,6 +17,11 @@ RUN --mount=type=cache,id=arcane-pnpm-v2,target=/pnpm/store,sharing=locked \
pnpm fetch && \
pnpm install -r --offline --frozen-lockfile
+RUN printf 'NODE_VERSION=%s\nSVELTEKIT_VERSION=%s\n' \
+ "$(node --version)" \
+ "$(pnpm -C frontend exec node -p 'require("@sveltejs/kit/package.json").version')" \
+ > /tmp/arcane-frontend-build.env
+
COPY frontend ./frontend
ENV BUILD_PATH=dist
@@ -47,7 +52,9 @@ COPY backend ./
COPY .arcane.json ../arcane.json
COPY --from=frontend-builder /build/frontend/dist ./frontend/dist
+COPY --from=frontend-builder /tmp/arcane-frontend-build.env /tmp/arcane-frontend-build.env
RUN --mount=type=cache,target=/root/.cache/go-build \
+ . /tmp/arcane-frontend-build.env && \
if [ "${VERSION}" = "dev" ]; then VERSION=$(jq -r '.version // "dev"' ../arcane.json); fi && \
if [ "${REVISION}" = "unknown" ]; then REVISION=$(jq -r '.revision // "unknown"' ../arcane.json); fi && \
if [ "${BUILD_TIME}" = "unknown" ]; then BUILD_TIME=$(jq -r '.buildTime // "unknown"' ../arcane.json); fi && \
@@ -60,7 +67,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=linux \
go build \
-tags "${BUILD_TAGS}" \
- -ldflags "-w -s -X github.com/getarcaneapp/arcane/backend/internal/config.Version=${VERSION} -X github.com/getarcaneapp/arcane/backend/internal/config.Revision=${REVISION} -X github.com/getarcaneapp/arcane/backend/internal/config.BuildTime=${BUILD_TIME}" \
+ -ldflags "-w -s -X github.com/getarcaneapp/arcane/backend/internal/config.Version=${VERSION} -X github.com/getarcaneapp/arcane/backend/internal/config.Revision=${REVISION} -X github.com/getarcaneapp/arcane/backend/internal/config.BuildTime=${BUILD_TIME} -X github.com/getarcaneapp/arcane/backend/internal/config.NodeVersion=${NODE_VERSION} -X github.com/getarcaneapp/arcane/backend/internal/config.SvelteKitVersion=${SVELTEKIT_VERSION}" \
-trimpath \
-o /build/arcane \
./cmd/main.go
diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev
index e5936ff08..225e7c08e 100644
--- a/docker/Dockerfile.dev
+++ b/docker/Dockerfile.dev
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
# Stage 1: Frontend Development with optimized caching
-FROM --platform=$BUILDPLATFORM node:25-trixie-slim AS frontend-dev
+FROM --platform=$BUILDPLATFORM node:26-trixie-slim AS frontend-dev
RUN npm install -g --force corepack && corepack enable pnpm
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index 6dd71bd78..cd1eca38b 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -2097,6 +2097,8 @@
"version_info_tag": "Image Tag",
"version_info_full_commit": "Full Commit Hash",
"version_info_go_version": "Go Version",
+ "version_info_node_version": "Node Version",
+ "version_info_sveltekit_version": "SvelteKit Version",
"version_info_build_time": "Build Time",
"version_info_digest": "Image Digest",
"version_info_view_release": "View Release",
diff --git a/frontend/package.json b/frontend/package.json
index f28f0cd0a..3defb610b 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -25,7 +25,7 @@
"@fontsource-variable/geist-mono": "^5.2.8",
"@fontsource-variable/montserrat": "^5.2.8",
"@lezer/highlight": "^1.2.3",
- "@sveltejs/kit": "^2.61.1",
+ "@sveltejs/kit": "^3.0.0-next.1",
"@tanstack/svelte-query": "^6.1.33",
"@tanstack/table-core": "^8.21.3",
"@uiw/codemirror-themes": "^4.25.10",
@@ -50,7 +50,7 @@
"@inlang/paraglide-js": "2.18.1",
"@internationalized/date": "^3.12.2",
"@prettier/plugin-oxc": "^0.1.4",
- "@sveltejs/adapter-static": "^3.0.10",
+ "@sveltejs/adapter-static": "^4.0.0-next.0",
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tailwindcss/vite": "^4.3.0",
"@tanstack/svelte-query-devtools": "^6.1.33",
diff --git a/frontend/src/lib/components/code-editor/analysis/compose-schema.ts b/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
index fe786473d..e374b2c4a 100644
--- a/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
+++ b/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
@@ -1,6 +1,6 @@
import Ajv, { type ValidateFunction } from 'ajv';
import type { Completion } from '@codemirror/autocomplete';
-import { browser } from '$app/environment';
+import { browser } from '$app/env';
import type { SchemaDoc, SchemaStatus } from './types';
const DOCKER_COMPOSE_SCHEMA_URL =
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index c6656a4cc..7115f3753 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -16,8 +16,7 @@
} from '@codemirror/lint';
import { keymap, hoverTooltip, EditorView, ViewPlugin, closeHoverTooltips, hasHoverTooltips } from '@codemirror/view';
import { type Extension } from '@codemirror/state';
- import { parseDocument } from 'yaml';
- import { browser } from '$app/environment';
+ import { browser } from '$app/env';
import { m } from '$lib/paraglide/messages';
import configStore from '$lib/stores/config-store';
import { mode } from 'mode-watcher';
@@ -25,22 +24,27 @@
import { createDefaultSummary, ENV_SNIPPETS, YAML_SNIPPETS } from './editor-constants';
import { createEnterIndentKeymap } from './enter-indentation';
import { createMergeHostAction, type MergeActionParams } from './merge-editor';
- import {
- analyzeComposeContent,
- findYamlPositionContext,
- resolveVariableSourceAtPosition,
- type YamlPositionContext
- } from './analysis/compose-analysis';
import { analyzeEnvContent } from './analysis/env-analysis';
- import {
- getComposeSchemaContext,
- getCompletionOptionsForPath,
- getEnumValueCompletions,
- getSchemaDocForPath,
- type ComposeSchemaContext
- } from './analysis/compose-schema';
+ import type { YamlPositionContext } from './analysis/compose-analysis';
+ import type { ComposeSchemaContext } from './analysis/compose-schema';
import type { CodeLanguage, DiagnosticSummary, EditorContext, OutlineItem } from './analysis/types';
+ type ComposeAnalysisModule = typeof import('./analysis/compose-analysis');
+ type ComposeSchemaModule = typeof import('./analysis/compose-schema');
+
+ let composeAnalysisModulePromise: Promise<ComposeAnalysisModule> | null = null;
+ let composeSchemaModulePromise: Promise<ComposeSchemaModule> | null = null;
+
+ function loadComposeAnalysisModule(): Promise<ComposeAnalysisModule> {
+ composeAnalysisModulePromise ??= import('./analysis/compose-analysis');
+ return composeAnalysisModulePromise;
+ }
+
+ function loadComposeSchemaModule(): Promise<ComposeSchemaModule> {
+ composeSchemaModulePromise ??= import('./analysis/compose-schema');
+ return composeSchemaModulePromise;
+ }
+
let {
value = $bindable(''),
language = 'yaml' as CodeLanguage,
@@ -268,12 +272,13 @@
return formatted.join('\n').replace(/\n{3,}/g, '\n\n');
}
- function formatDocument() {
+ async function formatDocument() {
if (!activeView || readOnly) return;
const current = activeView.state.doc.toString();
let formatted = current;
if (language === 'yaml') {
+ const { parseDocument } = await import('yaml');
const parsed = parseDocument(current, { strict: false, uniqueKeys: false });
if (parsed.errors.length === 0) {
formatted = parsed.toString({ indent: 2, lineWidth: 0 });
@@ -307,7 +312,7 @@
commandPaletteOpen = false;
switch (id) {
case 'format':
- formatDocument();
+ void formatDocument();
break;
case 'next-diagnostic':
if (activeView) nextDiagnostic(activeView);
@@ -354,7 +359,8 @@
});
const schemaCompletions = async (context: CompletionContext, yamlContext: YamlPositionContext): Promise<Completion[]> => {
- const schema = await getComposeSchemaContext();
+ const schemaModule = await loadComposeSchemaModule();
+ const schema = await schemaModule.getComposeSchemaContext();
schemaState = schema;
updateSummary({
schemaStatus: schema.status,
@@ -366,16 +372,17 @@
const prefix = before?.text ?? '';
if (yamlContext.atKey) {
- return [...YAML_SNIPPETS, ...getCompletionOptionsForPath(schema.schema, yamlContext.parentPath, prefix)];
+ return [...YAML_SNIPPETS, ...schemaModule.getCompletionOptionsForPath(schema.schema, yamlContext.parentPath, prefix)];
}
- return getEnumValueCompletions(schema.schema, yamlContext.path);
+ return schemaModule.getEnumValueCompletions(schema.schema, yamlContext.path);
};
const composeCompletionSource = async (context: CompletionContext) => {
if (language !== 'yaml' || readOnly) return null;
const source = context.state.doc.toString();
- const yamlContext = findYamlPositionContext(source, context.pos);
+ const analysisModule = await loadComposeAnalysisModule();
+ const yamlContext = analysisModule.findYamlPositionContext(source, context.pos);
if (!yamlContext) return null;
const before = context.matchBefore(/[\w.-]*/);
@@ -428,7 +435,8 @@
async (view, position) => {
if (language !== 'yaml' || isSchemaHoverSuppressed(view)) return null;
const source = view.state.doc.toString();
- const variableRef = resolveVariableSourceAtPosition(source, position, effectiveEditorContext);
+ const analysisModule = await loadComposeAnalysisModule();
+ const variableRef = analysisModule.resolveVariableSourceAtPosition(source, position, effectiveEditorContext);
if (variableRef) {
return {
pos: position,
@@ -441,15 +449,16 @@
};
}
- const yamlContext = findYamlPositionContext(source, position);
+ const yamlContext = analysisModule.findYamlPositionContext(source, position);
if (!yamlContext || !yamlContext.currentKey) return null;
- const schema = schemaState ?? (await getComposeSchemaContext());
+ const schemaModule = await loadComposeSchemaModule();
+ const schema = schemaState ?? (await schemaModule.getComposeSchemaContext());
if (isSchemaHoverSuppressed(view)) return null;
schemaState = schema;
if (!schema.schema) return null;
- const doc = getSchemaDocForPath(schema.schema, yamlContext.path);
+ const doc = schemaModule.getSchemaDocForPath(schema.schema, yamlContext.path);
if (!doc) return null;
return {
@@ -552,7 +561,7 @@
{
key: 'Shift-Alt-f',
run() {
- formatDocument();
+ void formatDocument();
return true;
}
},
@@ -573,9 +582,10 @@
return [];
}
- const schema = await getComposeSchemaContext();
+ const [schemaModule, analysisModule] = await Promise.all([loadComposeSchemaModule(), loadComposeAnalysisModule()]);
+ const schema = await schemaModule.getComposeSchemaContext();
schemaState = schema;
- const analysis = await analyzeComposeContent(view, schema, effectiveEditorContext);
+ const analysis = await analysisModule.analyzeComposeContent(view, schema, effectiveEditorContext);
activeOutlineItems = analysis.outlineItems;
updateSummaryFromDiagnostics(analysis.diagnostics, {
diff --git a/frontend/src/lib/components/dialogs/version-info-dialog.svelte b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
index ee032173d..f75fd02d8 100644
--- a/frontend/src/lib/components/dialogs/version-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
@@ -23,6 +23,8 @@
currentTag: 'edge',
revision: 'b9c2a1240c83a54b73b5cf2e5d3f23a9b102837f',
goVersion: 'go1.22.1',
+ nodeVersion: 'v26.0.0',
+ svelteKitVersion: '3.0.0-next.1',
buildTime: '2026-04-15T12:00:00Z',
enabledFeatures: ['autologin'],
currentDigest: 'sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
@@ -58,6 +60,10 @@
{@render infoRow(m.version_info_go_version(), displayInfo.goVersion || '-')}
+ {@render infoRow(m.version_info_node_version(), displayInfo.nodeVersion || '-')}
+
+ {@render infoRow(m.version_info_sveltekit_version(), displayInfo.svelteKitVersion || '-')}
+
{#if displayInfo.buildTime && displayInfo.buildTime !== 'unknown'}
{@render infoRow(m.version_info_build_time(), displayInfo.buildTime, false)}
{/if}
diff --git a/frontend/src/lib/components/logs/log-viewer.svelte b/frontend/src/lib/components/logs/log-viewer.svelte
index f1d463ac8..80301b4d7 100644
--- a/frontend/src/lib/components/logs/log-viewer.svelte
+++ b/frontend/src/lib/components/logs/log-viewer.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
// Dozzle reference: the grouped row shell and left-side timestamp treatment here were
// informed by amir20/dozzle's LogItem.vue and GroupedLogItem.vue.
- import { dev } from '$app/environment';
+ import { dev } from '$app/env';
import * as Collapsible from '$lib/components/ui/collapsible';
import { ArrowDownIcon, ArrowRightIcon } from '$lib/icons';
import { environmentStore } from '$lib/stores/environment.store.svelte';
diff --git a/frontend/src/lib/components/network-diagram/network-diagram.svelte b/frontend/src/lib/components/network-diagram/network-diagram.svelte
index e7d765bb1..17be718d1 100644
--- a/frontend/src/lib/components/network-diagram/network-diagram.svelte
+++ b/frontend/src/lib/components/network-diagram/network-diagram.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { browser } from '$app/environment';
+ import { browser } from '$app/env';
import { goto } from '$app/navigation';
import { ArcaneButton } from '$lib/components/arcane-button';
import StatusBadge from '$lib/components/badges/status-badge.svelte';
diff --git a/frontend/src/lib/services/version-service.ts b/frontend/src/lib/services/version-service.ts
index ad19405c9..930a7a630 100644
--- a/frontend/src/lib/services/version-service.ts
+++ b/frontend/src/lib/services/version-service.ts
@@ -1,4 +1,4 @@
-import { version as currentVersion } from '$app/environment';
+import { version as currentVersion } from '$app/env';
import { apiClient } from './api-service';
import type { AppVersionInformation } from '$lib/types/settings';
@@ -21,6 +21,8 @@ async function getVersionInformation(): Promise<AppVersionInformation> {
revision: data.revision || 'unknown',
shortRevision: data.shortRevision || data.revision?.slice(0, 8) || 'unknown',
goVersion: data.goVersion || 'unknown',
+ nodeVersion: data.nodeVersion || 'unknown',
+ svelteKitVersion: data.svelteKitVersion || 'unknown',
enabledFeatures: data.enabledFeatures ?? [],
buildTime: data.buildTime,
isSemverVersion: data.isSemverVersion || false,
@@ -39,6 +41,8 @@ async function getVersionInformation(): Promise<AppVersionInformation> {
revision: 'unknown',
shortRevision: 'unknown',
goVersion: 'unknown',
+ nodeVersion: 'unknown',
+ svelteKitVersion: 'unknown',
enabledFeatures: [],
isSemverVersion: false,
updateAvailable: false
diff --git a/frontend/src/lib/stores/activity.store.svelte.ts b/frontend/src/lib/stores/activity.store.svelte.ts
index 0f7a7f179..4d5c67a24 100644
--- a/frontend/src/lib/stores/activity.store.svelte.ts
+++ b/frontend/src/lib/stores/activity.store.svelte.ts
@@ -1,4 +1,4 @@
-import { browser } from '$app/environment';
+import { browser } from '$app/env';
import { activityService } from '$lib/services/activity-service';
import { environmentStore, LOCAL_DOCKER_ENVIRONMENT_ID } from '$lib/stores/environment.store.svelte';
import type {
diff --git a/frontend/src/lib/types/settings.ts b/frontend/src/lib/types/settings.ts
index e58ab6fb9..1b9126895 100644
--- a/frontend/src/lib/types/settings.ts
+++ b/frontend/src/lib/types/settings.ts
@@ -132,6 +132,8 @@ export interface AppVersionInformation {
revision: string;
shortRevision: string;
goVersion: string;
+ nodeVersion: string;
+ svelteKitVersion: string;
enabledFeatures?: string[];
buildTime?: string;
isSemverVersion: boolean;
diff --git a/frontend/src/lib/utils/formatting.ts b/frontend/src/lib/utils/formatting.ts
index bc1d3d6b1..4dc5cfee0 100644
--- a/frontend/src/lib/utils/formatting.ts
+++ b/frontend/src/lib/utils/formatting.ts
@@ -1,5 +1,5 @@
import Convert from 'ansi-to-html';
-import { format as formatDate, setDefaultOptions } from 'date-fns';
+import { format as formatDate, setDefaultOptions, type Locale as DateFnsLocale } from 'date-fns';
import { z } from 'zod/v4';
import { setLocale as setParaglideLocale, type Locale } from '$lib/paraglide/runtime';
@@ -193,15 +193,48 @@ export function formatTime(date: Date | string | null | undefined): string {
return formatDate(d, 'pp');
}
-export async function setLocale(locale: Locale, reload = true) {
- let dateFnsLocale: string = locale;
- if (dateFnsLocale === 'en') {
- dateFnsLocale = 'en-US';
- }
+type DateFnsLocaleModule = {
+ [key: string]: DateFnsLocale;
+};
+function resolveDateFnsLocale(loader: () => Promise<DateFnsLocaleModule>): Promise<DateFnsLocale> {
+ return loader().then((module) => {
+ const locale = (module as { default?: DateFnsLocale }).default ?? Object.values(module)[0];
+ if (!locale) {
+ throw new Error('date-fns locale module did not export a locale');
+ }
+ return locale;
+ });
+}
+
+const dateFnsLocaleLoaders: Record<Locale, () => Promise<DateFnsLocale>> = {
+ cs: () => resolveDateFnsLocale(() => import('date-fns/locale/cs')),
+ da: () => resolveDateFnsLocale(() => import('date-fns/locale/da')),
+ de: () => resolveDateFnsLocale(() => import('date-fns/locale/de')),
+ el: () => resolveDateFnsLocale(() => import('date-fns/locale/el')),
+ en: () => resolveDateFnsLocale(() => import('date-fns/locale/en-US')),
+ eo: () => resolveDateFnsLocale(() => import('date-fns/locale/eo')),
+ es: () => resolveDateFnsLocale(() => import('date-fns/locale/es')),
+ fr: () => resolveDateFnsLocale(() => import('date-fns/locale/fr')),
+ hu: () => resolveDateFnsLocale(() => import('date-fns/locale/hu')),
+ it: () => resolveDateFnsLocale(() => import('date-fns/locale/it')),
+ ja: () => resolveDateFnsLocale(() => import('date-fns/locale/ja')),
+ ko: () => resolveDateFnsLocale(() => import('date-fns/locale/ko')),
+ nl: () => resolveDateFnsLocale(() => import('date-fns/locale/nl')),
+ pl: () => resolveDateFnsLocale(() => import('date-fns/locale/pl')),
+ 'pt-BR': () => resolveDateFnsLocale(() => import('date-fns/locale/pt-BR')),
+ ru: () => resolveDateFnsLocale(() => import('date-fns/locale/ru')),
+ sv: () => resolveDateFnsLocale(() => import('date-fns/locale/sv')),
+ uk: () => resolveDateFnsLocale(() => import('date-fns/locale/uk')),
+ vi: () => resolveDateFnsLocale(() => import('date-fns/locale/vi')),
+ 'zh-CN': () => resolveDateFnsLocale(() => import('date-fns/locale/zh-CN')),
+ 'zh-TW': () => resolveDateFnsLocale(() => import('date-fns/locale/zh-TW'))
+};
+
+export async function setLocale(locale: Locale, reload = true) {
const [zodResult, dateFnsResult] = await Promise.allSettled([
import(`../../../node_modules/zod/v4/locales/${locale}.js`),
- import(`../../../node_modules/date-fns/locale/${dateFnsLocale}.js`)
+ dateFnsLocaleLoaders[locale]()
]);
if (zodResult.status === 'fulfilled') {
@@ -214,7 +247,7 @@ export async function setLocale(locale: Locale, reload = true) {
if (dateFnsResult.status === 'fulfilled') {
setDefaultOptions({
- locale: dateFnsResult.value.default
+ locale: dateFnsResult.value
});
} else {
console.warn(`Failed to load date-fns locale for ${locale}:`, dateFnsResult.reason);
diff --git a/frontend/src/lib/utils/navigation.ts b/frontend/src/lib/utils/navigation.ts
index fd4e8a356..6eb525586 100644
--- a/frontend/src/lib/utils/navigation.ts
+++ b/frontend/src/lib/utils/navigation.ts
@@ -1,4 +1,4 @@
-import { browser } from '$app/environment';
+import { browser } from '$app/env';
import { PersistedState } from 'runed';
import { get } from 'svelte/store';
import { defaultMobileNavigationSettings, type MobileNavigationSettings } from '$lib/config/navigation-config';
diff --git a/frontend/src/lib/utils/tables.ts b/frontend/src/lib/utils/tables.ts
index a09f64d93..c638ccdfa 100644
--- a/frontend/src/lib/utils/tables.ts
+++ b/frontend/src/lib/utils/tables.ts
@@ -1,4 +1,4 @@
-import { browser } from '$app/environment';
+import { browser } from '$app/env';
import { PersistedState } from 'runed';
import { decodeSort, type CompactTablePrefs } from '$lib/components/arcane-table/arcane-table.types.svelte';
import { TABLE_PAGE_SIZE_ALL, TABLE_PAGE_SIZE_OPTIONS } from '$lib/constants/table-pagination';
diff --git a/frontend/src/routes/(app)/+layout.svelte b/frontend/src/routes/(app)/+layout.svelte
index dd24ca471..8d310951f 100644
--- a/frontend/src/routes/(app)/+layout.svelte
+++ b/frontend/src/routes/(app)/+layout.svelte
@@ -9,7 +9,7 @@
import { IsMobile } from '$lib/hooks/is-mobile.svelte.js';
import { IsTablet } from '$lib/hooks/is-tablet.svelte.js';
import { getEffectiveNavigationSettings, navigationSettingsOverridesStore } from '$lib/utils/navigation';
- import { browser } from '$app/environment';
+ import { browser } from '$app/env';
import { environmentStore } from '$lib/stores/environment.store.svelte';
import { navigationItems, getManagementItems, filterByPermissions, type NavigationItem } from '$lib/config/navigation-config';
import { isEditableTarget, matchesShortcutEvent } from '$lib/utils/navigation';
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 12d5411ef..7916abe89 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { browser, dev } from '$app/environment';
+ import { browser, dev } from '$app/env';
import { invalidateAll } from '$app/navigation';
import { navigating, page } from '$app/state';
import ConfirmDialog from '$lib/components/confirm-dialog/confirm-dialog.svelte';
diff --git a/frontend/src/routes/+layout.ts b/frontend/src/routes/+layout.ts
index e73d8f9ac..512cb9675 100644
--- a/frontend/src/routes/+layout.ts
+++ b/frontend/src/routes/+layout.ts
@@ -1,4 +1,4 @@
-import { browser } from '$app/environment';
+import { browser } from '$app/env';
import { environmentManagementService } from '$lib/services/env-mgmt-service';
import { settingsService } from '$lib/services/settings-service';
import { roleService } from '$lib/services/role-service';
@@ -118,6 +118,8 @@ export const load = async () => {
revision: 'unknown',
shortRevision: 'unknown',
goVersion: 'unknown',
+ nodeVersion: 'unknown',
+ svelteKitVersion: 'unknown',
enabledFeatures: [],
isSemverVersion: false
};
@@ -132,6 +134,8 @@ export const load = async () => {
revision: info.revision,
shortRevision: info.shortRevision || (info.revision?.slice(0, 8) ?? 'unknown'),
goVersion: info.goVersion || 'unknown',
+ nodeVersion: info.nodeVersion || 'unknown',
+ svelteKitVersion: info.svelteKitVersion || 'unknown',
enabledFeatures: info.enabledFeatures ?? [],
buildTime: info.buildTime,
isSemverVersion: info.isSemverVersion,
diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js
deleted file mode 100644
index c7b0fb29e..000000000
--- a/frontend/svelte.config.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import adapter from '@sveltejs/adapter-static';
-import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
-import packageJson from './package.json' with { type: 'json' };
-
-const config = {
- preprocess: vitePreprocess(),
- kit: {
- adapter: adapter({
- pages: process.env.BUILD_PATH ?? '../backend/frontend/dist',
- fallback: 'index.html'
- }),
- version: {
- name: packageJson.version
- }
- }
-};
-
-export default config;
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 469cc42a2..22f0f855d 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -1,8 +1,11 @@
import { paraglideVitePlugin } from '@inlang/paraglide-js';
+import adapter from '@sveltejs/adapter-static';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
-import { defineConfig } from 'vite';
+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
+import { defineConfig, searchForWorkspaceRoot } from 'vite';
import Icons from 'unplugin-icons/vite';
+import packageJson from './package.json' with { type: 'json' };
const devBackendURL = process.env['DEV_BACKEND_URL'] || 'http://localhost:3552';
const parsedDevBackendURL = new URL(devBackendURL);
@@ -35,10 +38,66 @@ const useInsecureLocalTLS =
(parsedDevBackendURL.protocol === 'https:' &&
(parsedDevBackendURL.hostname === 'localhost' || parsedDevBackendURL.hostname === '127.0.0.1'));
+function normalizeModuleID(id: string): string {
+ return id.replaceAll('\\', '/');
+}
+
+function splitVendorChunk(id: string): string | null {
+ const moduleID = normalizeModuleID(id);
+
+ if (moduleID.includes('/src/lib/paraglide/messages/')) {
+ return 'paraglide-messages';
+ }
+
+ if (moduleID.includes('/src/lib/paraglide/')) {
+ return 'paraglide-runtime';
+ }
+
+ if (moduleID.includes('/node_modules/@codemirror/') || moduleID.includes('/node_modules/svelte-codemirror-editor/')) {
+ return 'editor';
+ }
+
+ if (moduleID.includes('/node_modules/@xyflow/')) {
+ return 'network-diagram';
+ }
+
+ if (moduleID.includes('/node_modules/@xterm/')) {
+ return 'terminal';
+ }
+
+ if (moduleID.includes('/node_modules/@tanstack/')) {
+ return 'query-table';
+ }
+
+ if (
+ moduleID.includes('/node_modules/bits-ui/') ||
+ moduleID.includes('/node_modules/formsnap/') ||
+ moduleID.includes('/node_modules/paneforge/') ||
+ moduleID.includes('/node_modules/vaul-svelte/')
+ ) {
+ return 'ui-primitives';
+ }
+
+ if (moduleID.includes('/node_modules/')) {
+ return 'vendor';
+ }
+
+ return null;
+}
+
export default defineConfig({
plugins: [
tailwindcss(),
- sveltekit(),
+ sveltekit({
+ preprocess: vitePreprocess(),
+ adapter: adapter({
+ pages: process.env['BUILD_PATH'] ?? '../backend/frontend/dist',
+ fallback: 'index.html'
+ }),
+ version: {
+ name: packageJson.version
+ }
+ }),
paraglideVitePlugin({
project: './project.inlang',
outdir: './src/lib/paraglide',
@@ -51,10 +110,29 @@ export default defineConfig({
})
],
build: {
- target: 'es2022'
+ target: 'es2022',
+ rolldownOptions: {
+ checks: {
+ pluginTimings: false
+ },
+ output: {
+ codeSplitting: {
+ groups: [
+ {
+ name: splitVendorChunk,
+ minSize: 20 * 1024,
+ maxSize: 450 * 1024
+ }
+ ]
+ }
+ }
+ }
},
server: {
allowedHosts: ['arcane-frontend-dev'],
+ fs: {
+ allow: [searchForWorkspaceRoot(process.cwd())]
+ },
host: process.env['HOST'],
proxy: {
'/api': {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 441d0ae09..00c604fec 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,7 +8,7 @@ overrides:
devalue: '>=5.8.1'
valibot: ^1.2.0
validator: ^13.15.22
- cookie: ^0.7.0
+ cookie: ^1.0.2
next: ^16.1.7
undici: ^6.23.0
ajv: '>=8.18.0'
@@ -23,6 +23,7 @@ overrides:
uuid: '>=11.1.1'
fast-uri: '>=3.1.2'
ws: '>=8.20.1'
+ '@sveltejs/kit': '>=3.0.0-next.1'
packageExtensionsChecksum: sha256-Yj0m2AD9TZO/cWup5bCg2l8l7VHtLu5doy9Oybhgv+w=
@@ -104,8 +105,8 @@ importers:
specifier: ^1.2.3
version: 1.2.3
'@sveltejs/kit':
- specifier: ^2.61.1
+ specifier: '>=3.0.0-next.1'
'@tanstack/svelte-query':
specifier: ^6.1.33
version: 6.1.33([email protected])
@@ -174,8 +175,8 @@ importers:
specifier: ^0.1.4
version: 0.1.4
'@sveltejs/adapter-static':
- specifier: ^3.0.10
+ specifier: ^4.0.0-next.0
'@sveltejs/vite-plugin-svelte':
specifier: ^7.1.2
@@ -193,7 +194,7 @@ importers:
version: 7.0.0-dev.20260602.1
bits-ui:
specifier: ^2.18.1
clsx:
specifier: ^2.1.1
version: 2.1.1
@@ -202,7 +203,7 @@ importers:
version: 2.89.0
formsnap:
specifier: ^2.0.1
isomorphic-dompurify:
specifier: ^3.15.0
version: 3.15.0
@@ -214,7 +215,7 @@ importers:
version: 1.0.2([email protected])
runed:
specifier: ^0.37.1
svelte-check-rs:
specifier: ^0.9.19
version: 0.9.19(@typescript/[email protected])
@@ -223,10 +224,10 @@ importers:
version: 1.1.1([email protected])
svelte-toolbelt:
specifier: ^0.10.6
sveltekit-superforms:
specifier: ^2.30.1
tailwind-merge:
specifier: ^3.6.0
version: 3.6.0
@@ -1162,21 +1163,21 @@ packages:
peerDependencies:
acorn: ^8.9.0
- '@sveltejs/[email protected]':
- resolution: {integrity: sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew==}
+ '@sveltejs/[email protected]':
+ resolution: {integrity: sha512-M2qfNwcHQxHx2yKKvdg7iHeAaOzdKqhh9bs1ajPsETvtfaXCFXFlbkRoLBhtINnz7N4tP9hRtODOfyEaMkgaDQ==}
peerDependencies:
- '@sveltejs/kit': ^2.0.0
+ '@sveltejs/kit': '>=3.0.0-next.1'
- '@sveltejs/[email protected]':
- resolution: {integrity: sha512-Ny8s1SR1TyQS2hD2Rvw0XKzU2Nw1eUF52dTb6T2bdcgz7wSC+Nyb5IwjWYlR4b2dvbbR5NJDiQwHg3rnNseghg==}
- engines: {node: '>=18.13'}
+ '@sveltejs/[email protected]':
+ resolution: {integrity: sha512-dcEulvtFYFqCRUpLLSB9AT+S0tjsLjAkr69qfxkvdK9RU+AmL1PvzP4b/jk+9xQUW7CuCSLC3XDa84lHHW8G9A==}
+ engines: {node: '>=22'}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.0.0
- '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0
- svelte: ^4.0.0 || ^5.0.0-next.0
- typescript: ^5.3.3 || ^6.0.0
- vite: ^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0
+ '@sveltejs/vite-plugin-svelte': ^7.0.0
+ svelte: ^5.48.0
+ typescript: ^6.0.0
+ vite: ^8.0.0
peerDependenciesMeta:
'@opentelemetry/api':
optional: true
@@ -1311,9 +1312,6 @@ packages:
resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
-
resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}
@@ -1589,9 +1587,9 @@ packages:
resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==}
engines: {node: ^14.18.0 || >=16.10.0}
- resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
- engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}
@@ -1948,10 +1946,6 @@ packages:
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
- engines: {node: '>=6'}
-
resolution: {integrity: sha512-/GmXpo9F9W+f8n4Ivr2iH+7h7wL7jLbLKWkMlpflcCRb6kGjBfTlASEXaZ9qUgNTn4VgS0P2pwxxzQ4EM6Ulgg==}
engines: {node: '>=22'}
@@ -2390,7 +2384,7 @@ packages:
resolution: {integrity: sha512-2F4Q/FZzbeJTFdIS/PuOoPRSm92sA2LhzTnv6FXhCoENb3huf5+fDuNOg1LNvGOouy3u/225qxmuJvcV3IZK5Q==}
peerDependencies:
- '@sveltejs/kit': ^2.21.0
+ '@sveltejs/kit': '>=3.0.0-next.1'
svelte: ^5.7.0
peerDependenciesMeta:
'@sveltejs/kit':
@@ -2399,7 +2393,7 @@ packages:
resolution: {integrity: sha512-MeFY73xBW8IueWBm012nNFIGy19WUGPLtknavyUPMpnyt350M47PhGSGrGoSLbidwn+Zlt/O0cp8/OZE3LASWA==}
peerDependencies:
- '@sveltejs/kit': ^2.21.0
+ '@sveltejs/kit': '>=3.0.0-next.1'
svelte: ^5.7.0
zod: ^4.1.0
peerDependenciesMeta:
@@ -2423,9 +2417,6 @@ packages:
engines: {node: '>=10'}
hasBin: true
- resolution: {integrity: sha512-kjnC1DXBHcxaOaOXBHBeRtltsDG2nUiUni+jP92M9gYdW12rsmx92UsfpH7o5tDRs7I1ZZPSQJQGv3UaRfCiuw==}
-
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
engines: {node: '>=14'}
@@ -2549,7 +2540,7 @@ packages:
resolution: {integrity: sha512-wBzyqsE0idvEJWuNJ+HCiAtdxa7Z55GZ8jmtlVHJfonrk9bRYC49MoPaloYyFoYuU3QPy6Omna/Qzn1kaIkgew==}
peerDependencies:
- '@sveltejs/kit': 1.x || 2.x
+ '@sveltejs/kit': '>=3.0.0-next.1'
svelte: 3.x || 4.x || >=5.0.0-next.51
@@ -3547,24 +3538,21 @@ snapshots:
dependencies:
acorn: 8.16.0
dependencies:
dependencies:
'@standard-schema/spec': 1.1.0
'@sveltejs/acorn-typescript': 1.0.10([email protected])
- '@types/cookie': 0.6.0
acorn: 8.16.0
- cookie: 0.7.2
+ cookie: 1.1.1
devalue: 5.8.1
esm-env: 1.2.2
- kleur: 4.1.5
magic-string: 0.30.21
mrmime: 2.0.1
- set-cookie-parser: 3.1.0
sirv: 3.0.2
svelte: 5.56.1
@@ -3675,8 +3663,6 @@ snapshots:
tslib: 2.8.1
optional: true
- '@types/[email protected]': {}
-
dependencies:
'@types/node': 25.9.1
@@ -3877,15 +3863,15 @@ snapshots:
dependencies:
require-from-string: 2.0.2
dependencies:
'@floating-ui/core': 1.7.5
'@floating-ui/dom': 1.7.6
'@internationalized/date': 3.12.2
esm-env: 1.2.2
svelte: 5.56.1
tabbable: 6.4.0
transitivePeerDependencies:
- '@sveltejs/kit'
@@ -3958,7 +3944,7 @@ snapshots:
dependencies:
@@ -4102,7 +4088,7 @@ snapshots:
'@types/ws': 8.18.1
accepts: 1.3.8
base64id: 2.0.0
- cookie: 0.7.2
+ cookie: 1.1.1
cors: 2.8.6
debug: 4.4.3
engine.io-parser: 5.2.3
@@ -4194,11 +4180,11 @@ snapshots:
optionalDependencies:
picomatch: 4.0.4
dependencies:
svelte: 5.56.1
svelte-toolbelt: 0.5.0([email protected])
optional: true
@@ -4326,8 +4312,6 @@ snapshots:
-
@@ -4731,23 +4715,23 @@ snapshots:
esm-env: 1.2.2
svelte: 5.56.1
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
svelte: 5.56.1
optionalDependencies:
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
svelte: 5.56.1
optionalDependencies:
zod: 4.4.3
@@ -4762,8 +4746,6 @@ snapshots:
-
@@ -4876,10 +4858,10 @@ snapshots:
runed: 0.28.0([email protected])
svelte: 5.56.1
dependencies:
clsx: 2.1.1
style-to-object: 1.0.14
svelte: 5.56.1
transitivePeerDependencies:
@@ -4926,9 +4908,9 @@ snapshots:
transitivePeerDependencies:
- '@typescript-eslint/types'
dependencies:
devalue: 5.8.1
memoize-weak: 1.0.2
svelte: 5.56.1
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 1eb0fbfb6..ea00ea23a 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -12,7 +12,7 @@ overrides:
devalue: ">=5.8.1"
valibot: ^1.2.0
validator: ^13.15.22
- cookie: ^0.7.0
+ cookie: ^1.0.2
next: ^16.1.7
undici: ^6.23.0
ajv: ">=8.18.0"
@@ -27,18 +27,21 @@ overrides:
uuid: ">=11.1.1"
fast-uri: ">=3.1.2"
ws: ">=8.20.1"
+ "@sveltejs/kit": ">=3.0.0-next.1"
allowBuilds:
"@tailwindcss/oxide": true
esbuild: true
sharp: true
minimumReleaseAgeExclude:
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
- - '@fallow-cli/[email protected]'
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - "@fallow-cli/[email protected]"
+ - '@sveltejs/[email protected]'
+ - '@sveltejs/[email protected]'
diff --git a/types/version/version.go b/types/version/version.go
index c0a56faaa..588d548af 100644
--- a/types/version/version.go
+++ b/types/version/version.go
@@ -32,6 +32,16 @@ type Info struct {
// Required: true
GoVersion string `json:"goVersion"`
+ // NodeVersion is the Node.js version used to build the frontend.
+ //
+ // Required: true
+ NodeVersion string `json:"nodeVersion"`
+
+ // SvelteKitVersion is the SvelteKit version used to build the frontend.
+ //
+ // Required: true
+ SvelteKitVersion string `json:"svelteKitVersion"`
+
// EnabledFeatures is the list of build-time feature flags compiled into the binary.
//
// Required: false