diff --git a/package.json b/package.json index ee8dc4f836..79f16227cd 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "playwright": "^1.41.1", "prettier": "^3.2.4", "prettier-plugin-svelte": "^3.1.2", - "typescript": "^5.3.3", + "typescript": "^5.5.2", "typescript-eslint": "^8.0.0-alpha.20", "v8-natives": "^1.2.5", "vitest": "^1.2.1" diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index 6aa73b695a..5d12875dc1 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -350,39 +350,39 @@ declare module 'svelte' { * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component * * */ - export function mount, Exports extends Record>(component: ComponentType> | Component, options: {} extends Props ? { + export function mount, Exports extends Record>(component: ComponentType> | Component, options: {} extends Props ? { target: Document | Element | ShadowRoot; - anchor?: Node | undefined; - props?: Props | undefined; - events?: Record any> | undefined; - context?: Map | undefined; - intro?: boolean | undefined; + anchor?: Node; + props?: Props; + events?: Record any>; + context?: Map; + intro?: boolean; } : { target: Document | Element | ShadowRoot; props: Props; - anchor?: Node | undefined; - events?: Record any> | undefined; - context?: Map | undefined; - intro?: boolean | undefined; + anchor?: Node; + events?: Record any>; + context?: Map; + intro?: boolean; }): Exports; /** * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component * * */ - export function hydrate, Exports extends Record>(component: ComponentType> | Component, options: {} extends Props ? { + export function hydrate, Exports extends Record>(component: ComponentType> | Component, options: {} extends Props ? { target: Document | Element | ShadowRoot; - props?: Props | undefined; - events?: Record any> | undefined; - context?: Map | undefined; - intro?: boolean | undefined; - recover?: boolean | undefined; + props?: Props; + events?: Record any>; + context?: Map; + intro?: boolean; + recover?: boolean; } : { target: Document | Element | ShadowRoot; props: Props; - events?: Record any> | undefined; - context?: Map | undefined; - intro?: boolean | undefined; - recover?: boolean | undefined; + events?: Record any>; + context?: Map; + intro?: boolean; + recover?: boolean; }): Exports; /** * Unmounts a component that was previously mounted using `mount` or `hydrate`. @@ -576,8 +576,8 @@ declare module 'svelte/compiler' { * https://svelte.dev/docs/svelte-compiler#svelte-parse * */ export function parse(source: string, options?: { - filename?: string | undefined; - modern?: false | undefined; + filename?: string; + modern?: false; } | undefined): LegacyRoot; /** * @deprecated Replace this with `import { walk } from 'estree-walker'` @@ -1108,18 +1108,18 @@ declare module 'svelte/compiler' { * https://svelte.dev/docs/svelte-compiler#svelte-preprocess * */ export function preprocess(source: string, preprocessor: PreprocessorGroup | PreprocessorGroup[], options?: { - filename?: string | undefined; + filename?: string; } | undefined): Promise; export class CompileError extends Error { constructor(code: string, message: string, position: [number, number] | undefined); filename: string | undefined; - position: CompileError_1['position']; + position: CompileError_1["position"]; - start: CompileError_1['start']; + start: CompileError_1["start"]; - end: CompileError_1['end']; + end: CompileError_1["end"]; code: string; } /** @@ -1153,13 +1153,13 @@ declare module 'svelte/compiler' { /** * A map of declarators to the bindings they declare * */ - declarators: Map; + declarators: Map; /** * A set of all the names referenced with this scope * — useful for generating unique names * */ references: Map; /** @@ -1168,18 +1168,18 @@ declare module 'svelte/compiler' { */ function_depth: number; - declare(node: import('estree').Identifier, kind: Binding['kind'], declaration_kind: DeclarationKind, initial?: null | import('estree').Expression | import('estree').FunctionDeclaration | import('estree').ClassDeclaration | import('estree').ImportDeclaration | EachBlock): Binding; + declare(node: import("estree").Identifier, kind: Binding["kind"], declaration_kind: DeclarationKind, initial?: null | import("estree").Expression | import("estree").FunctionDeclaration | import("estree").ClassDeclaration | import("estree").ImportDeclaration | EachBlock): Binding; child(porous?: boolean): Scope; generate(preferred_name: string): string; get(name: string): Binding | null; - get_bindings(node: import('estree').VariableDeclarator | LetDirective): Binding[]; + get_bindings(node: import("estree").VariableDeclarator | LetDirective): Binding[]; owner(name: string): Scope | null; - reference(node: import('estree').Identifier, path: SvelteNode[]): void; + reference(node: import("estree").Identifier, path: SvelteNode[]): void; #private; } class ScopeRoot { @@ -2006,10 +2006,10 @@ declare module 'svelte/legacy' { * * */ export function createClassComponent, Exports extends Record, Events extends Record, Slots extends Record>(options: import("svelte").ComponentConstructorOptions & { - component: import("svelte").ComponentType> | import("svelte").Component; - immutable?: boolean | undefined; - hydrate?: boolean | undefined; - recover?: boolean | undefined; + component: import("svelte").ComponentType> | import("svelte").Component; + immutable?: boolean; + hydrate?: boolean; + recover?: boolean; }): import("svelte").SvelteComponent & Exports; /** * Takes the component function and returns a Svelte 4 compatible component constructor. @@ -2017,7 +2017,7 @@ declare module 'svelte/legacy' { * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5. * * */ - export function asClassComponent, Exports extends Record, Events extends Record, Slots extends Record>(component: import("svelte").SvelteComponent | import("svelte").Component): import("svelte").ComponentType & Exports>; + export function asClassComponent, Exports extends Record, Events extends Record, Slots extends Record>(component: import("svelte").SvelteComponent | import("svelte").Component): import("svelte").ComponentType & Exports>; /** * Runs the given function once immediately on the server, and works like `$effect.pre` on the client. * diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c61c77e45..8c0f6b5e03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 2.27.1 '@sveltejs/eslint-config': specifier: ^7.0.1 - version: 7.0.1(@stylistic/eslint-plugin-js@1.8.0(eslint@9.0.0))(eslint-config-prettier@9.1.0(eslint@9.0.0))(eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.158))(eslint-plugin-unicorn@52.0.0(eslint@9.0.0))(eslint@9.0.0)(typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3))(typescript@5.3.3) + version: 7.0.1(@stylistic/eslint-plugin-js@1.8.0(eslint@9.0.0))(eslint-config-prettier@9.1.0(eslint@9.0.0))(eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.162))(eslint-plugin-unicorn@52.0.0(eslint@9.0.0))(eslint@9.0.0)(typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2))(typescript@5.5.2) '@svitejs/changesets-changelog-github-compact': specifier: ^1.1.0 version: 1.1.0 @@ -49,13 +49,13 @@ importers: version: 3.2.4 prettier-plugin-svelte: specifier: ^3.1.2 - version: 3.1.2(prettier@3.2.4)(svelte@5.0.0-next.158) + version: 3.1.2(prettier@3.2.4)(svelte@5.0.0-next.162) typescript: - specifier: ^5.3.3 - version: 5.3.3 + specifier: ^5.5.2 + version: 5.5.2 typescript-eslint: specifier: ^8.0.0-alpha.20 - version: 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + version: 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) v8-natives: specifier: ^1.2.5 version: 1.2.5 @@ -128,13 +128,13 @@ importers: version: 5.0.4 dts-buddy: specifier: ^0.4.7 - version: 0.4.7(typescript@5.4.5) + version: 0.4.7(typescript@5.5.2) esbuild: specifier: ^0.19.11 version: 0.19.11 knip: specifier: ^4.2.1 - version: 4.2.1(@types/node@20.12.7)(typescript@5.4.5) + version: 4.2.1(@types/node@20.12.7)(typescript@5.5.2) rollup: specifier: ^4.9.5 version: 4.9.5 @@ -291,7 +291,7 @@ importers: version: 0.14.7 shiki-twoslash: specifier: ^3.1.2 - version: 3.1.2(typescript@5.3.3) + version: 3.1.2(typescript@5.5.2) svelte: specifier: workspace:^ version: link:../../packages/svelte @@ -302,8 +302,8 @@ importers: specifier: ^2.6.2 version: 2.6.2 typescript: - specifier: ^5.3.3 - version: 5.3.3 + specifier: ^5.5.2 + version: 5.5.2 vite: specifier: ^5.0.13 version: 5.0.13(@types/node@20.12.7)(lightningcss@1.23.0)(sass@1.70.0)(terser@5.27.0) @@ -400,7 +400,7 @@ importers: version: 0.14.7 shiki-twoslash: specifier: ^3.1.2 - version: 3.1.2(typescript@5.3.3) + version: 3.1.2(typescript@5.5.2) svelte: specifier: ^4.2.0 version: 4.2.9 @@ -409,13 +409,13 @@ importers: version: 3.6.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9) svelte-preprocess: specifier: ^5.1.3 - version: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.3.3) + version: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.5.2) tiny-glob: specifier: ^0.2.9 version: 0.2.9 typescript: - specifier: ^5.3.3 - version: 5.3.3 + specifier: ^5.5.2 + version: 5.5.2 vite: specifier: ^5.0.13 version: 5.0.13(@types/node@20.11.5)(lightningcss@1.23.0)(sass@1.70.0)(terser@5.27.0) @@ -4578,8 +4578,8 @@ packages: resolution: {integrity: sha512-hsoB/WZGEPFXeRRLPhPrbRz67PhP6sqYgvwcAs+gWdSQSvNDw+/lTeUJSWe5h2xC97Fz/8QxAOqItwBzNJPU8w==} engines: {node: '>=16'} - svelte@5.0.0-next.158: - resolution: {integrity: sha512-QRmXxHByWntyWqLtzjNsBbNT89F2yA7aWPp9M9l9a6/PAE3gmQh6+qoVPgrxMR7iiFgpwh5ZU9Bm25j3IhGicQ==} + svelte@5.0.0-next.162: + resolution: {integrity: sha512-CRAbvitTa5EjJf4Ls/1Y5hHll8GsZtIaNeCRC13viig+OnRD25qvwBYYsmxBe3xqaBt9FIFHS76WDwrOBcDnWA==} engines: {node: '>=18'} symbol-tree@3.2.4: @@ -4759,13 +4759,8 @@ packages: typescript: optional: true - typescript@5.3.3: - resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} - engines: {node: '>=14.17'} - hasBin: true - - typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + typescript@5.5.2: + resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==} engines: {node: '>=14.17'} hasBin: true @@ -6460,16 +6455,16 @@ snapshots: - encoding - supports-color - '@sveltejs/eslint-config@7.0.1(@stylistic/eslint-plugin-js@1.8.0(eslint@9.0.0))(eslint-config-prettier@9.1.0(eslint@9.0.0))(eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.158))(eslint-plugin-unicorn@52.0.0(eslint@9.0.0))(eslint@9.0.0)(typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3))(typescript@5.3.3)': + '@sveltejs/eslint-config@7.0.1(@stylistic/eslint-plugin-js@1.8.0(eslint@9.0.0))(eslint-config-prettier@9.1.0(eslint@9.0.0))(eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.162))(eslint-plugin-unicorn@52.0.0(eslint@9.0.0))(eslint@9.0.0)(typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2))(typescript@5.5.2)': dependencies: '@stylistic/eslint-plugin-js': 1.8.0(eslint@9.0.0) eslint: 9.0.0 eslint-config-prettier: 9.1.0(eslint@9.0.0) - eslint-plugin-svelte: 2.38.0(eslint@9.0.0)(svelte@5.0.0-next.158) + eslint-plugin-svelte: 2.38.0(eslint@9.0.0)(svelte@5.0.0-next.162) eslint-plugin-unicorn: 52.0.0(eslint@9.0.0) globals: 15.0.0 - typescript: 5.3.3 - typescript-eslint: 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + typescript: 5.5.2 + typescript-eslint: 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) '@sveltejs/kit@2.4.3(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.9)(vite@5.0.13(@types/node@20.11.5)(lightningcss@1.23.0)(sass@1.70.0)(terser@5.27.0)))(svelte@4.2.9)(vite@5.0.13(@types/node@20.11.5)(lightningcss@1.23.0)(sass@1.70.0)(terser@5.27.0))': dependencies: @@ -6670,34 +6665,34 @@ snapshots: dependencies: '@types/node': 20.11.5 - '@typescript-eslint/eslint-plugin@8.0.0-alpha.20(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3))(eslint@9.0.0)(typescript@5.3.3)': + '@typescript-eslint/eslint-plugin@8.0.0-alpha.20(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2))(eslint@9.0.0)(typescript@5.5.2)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + '@typescript-eslint/parser': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) '@typescript-eslint/scope-manager': 8.0.0-alpha.20 - '@typescript-eslint/type-utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) - '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + '@typescript-eslint/type-utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) + '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) '@typescript-eslint/visitor-keys': 8.0.0-alpha.20 eslint: 9.0.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.3.3) + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3)': + '@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2)': dependencies: '@typescript-eslint/scope-manager': 8.0.0-alpha.20 '@typescript-eslint/types': 8.0.0-alpha.20 - '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.3.3) + '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.5.2) '@typescript-eslint/visitor-keys': 8.0.0-alpha.20 debug: 4.3.4(supports-color@5.5.0) eslint: 9.0.0 optionalDependencies: - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - supports-color @@ -6706,21 +6701,21 @@ snapshots: '@typescript-eslint/types': 8.0.0-alpha.20 '@typescript-eslint/visitor-keys': 8.0.0-alpha.20 - '@typescript-eslint/type-utils@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3)': + '@typescript-eslint/type-utils@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.3.3) - '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.5.2) + '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) debug: 4.3.4(supports-color@5.5.0) - ts-api-utils: 1.3.0(typescript@5.3.3) + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - eslint - supports-color '@typescript-eslint/types@8.0.0-alpha.20': {} - '@typescript-eslint/typescript-estree@8.0.0-alpha.20(typescript@5.3.3)': + '@typescript-eslint/typescript-estree@8.0.0-alpha.20(typescript@5.5.2)': dependencies: '@typescript-eslint/types': 8.0.0-alpha.20 '@typescript-eslint/visitor-keys': 8.0.0-alpha.20 @@ -6729,18 +6724,18 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.4 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.3.3) + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3)': + '@typescript-eslint/utils@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) '@typescript-eslint/scope-manager': 8.0.0-alpha.20 '@typescript-eslint/types': 8.0.0-alpha.20 - '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.3.3) + '@typescript-eslint/typescript-estree': 8.0.0-alpha.20(typescript@5.5.2) eslint: 9.0.0 transitivePeerDependencies: - supports-color @@ -7418,7 +7413,7 @@ snapshots: dotenv@16.3.2: {} - dts-buddy@0.4.7(typescript@5.4.5): + dts-buddy@0.4.7(typescript@5.5.2): dependencies: '@jridgewell/source-map': 0.3.5 '@jridgewell/sourcemap-codec': 1.4.15 @@ -7428,8 +7423,8 @@ snapshots: magic-string: 0.30.5 sade: 1.8.1 tiny-glob: 0.2.9 - ts-api-utils: 1.0.3(typescript@5.4.5) - typescript: 5.4.5 + ts-api-utils: 1.0.3(typescript@5.5.2) + typescript: 5.5.2 eastasianwidth@0.2.0: {} @@ -7577,7 +7572,7 @@ snapshots: eslint-plugin-lube@0.4.3: {} - eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.158): + eslint-plugin-svelte@2.38.0(eslint@9.0.0)(svelte@5.0.0-next.162): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) '@jridgewell/sourcemap-codec': 1.4.15 @@ -7591,9 +7586,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.38) postcss-selector-parser: 6.0.16 semver: 7.6.0 - svelte-eslint-parser: 0.35.0(svelte@5.0.0-next.158) + svelte-eslint-parser: 0.35.0(svelte@5.0.0-next.162) optionalDependencies: - svelte: 5.0.0-next.158 + svelte: 5.0.0-next.162 transitivePeerDependencies: - supports-color - ts-node @@ -8415,7 +8410,7 @@ snapshots: kleur@4.1.5: {} - knip@4.2.1(@types/node@20.12.7)(typescript@5.4.5): + knip@4.2.1(@types/node@20.12.7)(typescript@5.5.2): dependencies: '@ericcornelissen/bash-parser': 0.5.2 '@nodelib/fs.walk': 2.0.0 @@ -8439,7 +8434,7 @@ snapshots: smol-toml: 1.1.3 strip-json-comments: 5.0.1 summary: 2.1.0 - typescript: 5.4.5 + typescript: 5.5.2 zod: 3.22.4 zod-validation-error: 3.0.0(zod@3.22.4) transitivePeerDependencies: @@ -9101,10 +9096,10 @@ snapshots: prettier: 3.2.4 svelte: 4.2.9 - prettier-plugin-svelte@3.1.2(prettier@3.2.4)(svelte@5.0.0-next.158): + prettier-plugin-svelte@3.1.2(prettier@3.2.4)(svelte@5.0.0-next.162): dependencies: prettier: 3.2.4 - svelte: 5.0.0-next.158 + svelte: 5.0.0-next.162 prettier@2.8.8: {} @@ -9475,13 +9470,13 @@ snapshots: interpret: 1.4.0 rechoir: 0.6.2 - shiki-twoslash@3.1.2(typescript@5.3.3): + shiki-twoslash@3.1.2(typescript@5.5.2): dependencies: '@typescript/twoslash': 3.1.0 '@typescript/vfs': 1.3.4 fenceparser: 1.1.1 shiki: 0.10.1 - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - supports-color @@ -9698,8 +9693,8 @@ snapshots: picocolors: 1.0.0 sade: 1.8.1 svelte: 4.2.9 - svelte-preprocess: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.3.3) - typescript: 5.3.3 + svelte-preprocess: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.5.2) + typescript: 5.5.2 transitivePeerDependencies: - '@babel/core' - coffeescript @@ -9720,8 +9715,8 @@ snapshots: picocolors: 1.0.0 sade: 1.8.1 svelte: link:packages/svelte - svelte-preprocess: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@packages+svelte)(typescript@5.3.3) - typescript: 5.3.3 + svelte-preprocess: 5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@packages+svelte)(typescript@5.5.2) + typescript: 5.5.2 transitivePeerDependencies: - '@babel/core' - coffeescript @@ -9733,7 +9728,7 @@ snapshots: - stylus - sugarss - svelte-eslint-parser@0.35.0(svelte@5.0.0-next.158): + svelte-eslint-parser@0.35.0(svelte@5.0.0-next.162): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -9741,7 +9736,7 @@ snapshots: postcss: 8.4.38 postcss-scss: 4.0.9(postcss@8.4.38) optionalDependencies: - svelte: 5.0.0-next.158 + svelte: 5.0.0-next.162 svelte-hmr@0.16.0(svelte@4.2.9): dependencies: @@ -9771,7 +9766,7 @@ snapshots: dependencies: svelte: link:packages/svelte - svelte-preprocess@5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.3.3): + svelte-preprocess@5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@4.2.9)(typescript@5.5.2): dependencies: '@types/pug': 2.0.10 detect-indent: 6.1.0 @@ -9783,9 +9778,9 @@ snapshots: postcss: 8.4.38 postcss-load-config: 3.1.4(postcss@8.4.38) sass: 1.70.0 - typescript: 5.3.3 + typescript: 5.5.2 - svelte-preprocess@5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@packages+svelte)(typescript@5.3.3): + svelte-preprocess@5.1.3(postcss-load-config@3.1.4(postcss@8.4.38))(postcss@8.4.38)(sass@1.70.0)(svelte@packages+svelte)(typescript@5.5.2): dependencies: '@types/pug': 2.0.10 detect-indent: 6.1.0 @@ -9797,7 +9792,7 @@ snapshots: postcss: 8.4.38 postcss-load-config: 3.1.4(postcss@8.4.38) sass: 1.70.0 - typescript: 5.3.3 + typescript: 5.5.2 svelte@4.2.9: dependencies: @@ -9816,7 +9811,7 @@ snapshots: magic-string: 0.30.5 periscopic: 3.1.0 - svelte@5.0.0-next.158: + svelte@5.0.0-next.162: dependencies: '@ampproject/remapping': 2.2.1 '@jridgewell/sourcemap-codec': 1.4.15 @@ -9931,13 +9926,13 @@ snapshots: trim-newlines@3.0.1: {} - ts-api-utils@1.0.3(typescript@5.4.5): + ts-api-utils@1.0.3(typescript@5.5.2): dependencies: - typescript: 5.4.5 + typescript: 5.5.2 - ts-api-utils@1.3.0(typescript@5.3.3): + ts-api-utils@1.3.0(typescript@5.5.2): dependencies: - typescript: 5.3.3 + typescript: 5.5.2 tslib@2.6.2: {} @@ -9997,20 +9992,18 @@ snapshots: for-each: 0.3.3 is-typed-array: 1.1.12 - typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3): + typescript-eslint@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.0.0-alpha.20(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3))(eslint@9.0.0)(typescript@5.3.3) - '@typescript-eslint/parser': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) - '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.3.3) + '@typescript-eslint/eslint-plugin': 8.0.0-alpha.20(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2))(eslint@9.0.0)(typescript@5.5.2) + '@typescript-eslint/parser': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) + '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2) optionalDependencies: - typescript: 5.3.3 + typescript: 5.5.2 transitivePeerDependencies: - eslint - supports-color - typescript@5.3.3: {} - - typescript@5.4.5: {} + typescript@5.5.2: {} ufo@1.3.2: {} diff --git a/sites/svelte-5-preview/package.json b/sites/svelte-5-preview/package.json index 9b5121ea65..55d0a2aec8 100644 --- a/sites/svelte-5-preview/package.json +++ b/sites/svelte-5-preview/package.json @@ -31,7 +31,7 @@ "svelte": "workspace:^", "svelte-check": "^3.6.3", "tslib": "^2.6.2", - "typescript": "^5.3.3", + "typescript": "^5.5.2", "vite": "^5.0.13" }, "dependencies": { diff --git a/sites/svelte.dev/package.json b/sites/svelte.dev/package.json index 74e2c15fb0..f1e6c183c1 100644 --- a/sites/svelte.dev/package.json +++ b/sites/svelte.dev/package.json @@ -54,7 +54,7 @@ "svelte-check": "^3.6.3", "svelte-preprocess": "^5.1.3", "tiny-glob": "^0.2.9", - "typescript": "^5.3.3", + "typescript": "^5.5.2", "vite": "^5.0.13", "vite-imagetools": "^6.2.9" } diff --git a/sites/svelte.dev/vite.config.js b/sites/svelte.dev/vite.config.js index c02c0d66a8..8ae5c571e0 100644 --- a/sites/svelte.dev/vite.config.js +++ b/sites/svelte.dev/vite.config.js @@ -3,21 +3,24 @@ import { browserslistToTargets } from 'lightningcss'; import { readFile } from 'node:fs/promises'; import browserslist from 'browserslist'; +/** @type {import('vite').PluginOption[]} */ const plugins = [raw(['.ttf']), sveltekit()]; // Only enable sharp if we're not in a webcontainer env if (!process.versions.webcontainer) { - plugins.push( - (await import('vite-imagetools')).imagetools({ - defaultDirectives: (url) => { - if (url.searchParams.has('big-image')) { - return new URLSearchParams('w=640;1280;2560;3840&format=avif;webp;png&as=picture'); - } - - return new URLSearchParams(); + const { imagetools } = await import('vite-imagetools'); + + const plugin = imagetools({ + defaultDirectives: (url) => { + if (url.searchParams.has('big-image')) { + return new URLSearchParams('w=640;1280;2560;3840&format=avif;webp;png&as=picture'); } - }) - ); + + return new URLSearchParams(); + } + }); + + plugins.push(/** @type {import('vite').PluginOption} */ (/** @type {unknown} */ (plugin))); } /**