chore: bump typescript to 5.5 (#12126)

* chore: bump typescript to 5.5

* try to revert non-typescript-related changes to lockfile

---------

Co-authored-by: Conduitry <git@chor.date>
pull/12125/head
Rich Harris 5 months ago committed by GitHub
parent 3da2646b10
commit 6c66680919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -42,7 +42,7 @@
"playwright": "^1.41.1", "playwright": "^1.41.1",
"prettier": "^3.2.4", "prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2", "prettier-plugin-svelte": "^3.1.2",
"typescript": "^5.3.3", "typescript": "^5.5.2",
"typescript-eslint": "^8.0.0-alpha.20", "typescript-eslint": "^8.0.0-alpha.20",
"v8-natives": "^1.2.5", "v8-natives": "^1.2.5",
"vitest": "^1.2.1" "vitest": "^1.2.1"

@ -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 * 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<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props, any, any>> | Component<Props, Exports, any>, options: {} extends Props ? { export function mount<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
anchor?: Node | undefined; anchor?: Node;
props?: Props | undefined; props?: Props;
events?: Record<string, (e: any) => any> | undefined; events?: Record<string, (e: any) => any>;
context?: Map<any, any> | undefined; context?: Map<any, any>;
intro?: boolean | undefined; intro?: boolean;
} : { } : {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
props: Props; props: Props;
anchor?: Node | undefined; anchor?: Node;
events?: Record<string, (e: any) => any> | undefined; events?: Record<string, (e: any) => any>;
context?: Map<any, any> | undefined; context?: Map<any, any>;
intro?: boolean | undefined; intro?: boolean;
}): Exports; }): Exports;
/** /**
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component * 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<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props, any, any>> | Component<Props, Exports, any>, options: {} extends Props ? { export function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
props?: Props | undefined; props?: Props;
events?: Record<string, (e: any) => any> | undefined; events?: Record<string, (e: any) => any>;
context?: Map<any, any> | undefined; context?: Map<any, any>;
intro?: boolean | undefined; intro?: boolean;
recover?: boolean | undefined; recover?: boolean;
} : { } : {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
props: Props; props: Props;
events?: Record<string, (e: any) => any> | undefined; events?: Record<string, (e: any) => any>;
context?: Map<any, any> | undefined; context?: Map<any, any>;
intro?: boolean | undefined; intro?: boolean;
recover?: boolean | undefined; recover?: boolean;
}): Exports; }): Exports;
/** /**
* Unmounts a component that was previously mounted using `mount` or `hydrate`. * 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 * https://svelte.dev/docs/svelte-compiler#svelte-parse
* */ * */
export function parse(source: string, options?: { export function parse(source: string, options?: {
filename?: string | undefined; filename?: string;
modern?: false | undefined; modern?: false;
} | undefined): LegacyRoot; } | undefined): LegacyRoot;
/** /**
* @deprecated Replace this with `import { walk } from 'estree-walker'` * @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 * https://svelte.dev/docs/svelte-compiler#svelte-preprocess
* */ * */
export function preprocess(source: string, preprocessor: PreprocessorGroup | PreprocessorGroup[], options?: { export function preprocess(source: string, preprocessor: PreprocessorGroup | PreprocessorGroup[], options?: {
filename?: string | undefined; filename?: string;
} | undefined): Promise<Processed>; } | undefined): Promise<Processed>;
export class CompileError extends Error { export class CompileError extends Error {
constructor(code: string, message: string, position: [number, number] | undefined); constructor(code: string, message: string, position: [number, number] | undefined);
filename: string | 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; code: string;
} }
/** /**
@ -1153,13 +1153,13 @@ declare module 'svelte/compiler' {
/** /**
* A map of declarators to the bindings they declare * A map of declarators to the bindings they declare
* */ * */
declarators: Map<import('estree').VariableDeclarator | LetDirective, Binding[]>; declarators: Map<import("estree").VariableDeclarator | LetDirective, Binding[]>;
/** /**
* A set of all the names referenced with this scope * A set of all the names referenced with this scope
* useful for generating unique names * useful for generating unique names
* */ * */
references: Map<string, { references: Map<string, {
node: import('estree').Identifier; node: import("estree").Identifier;
path: SvelteNode[]; path: SvelteNode[];
}[]>; }[]>;
/** /**
@ -1168,18 +1168,18 @@ declare module 'svelte/compiler' {
*/ */
function_depth: number; 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; child(porous?: boolean): Scope;
generate(preferred_name: string): string; generate(preferred_name: string): string;
get(name: string): Binding | null; 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; owner(name: string): Scope | null;
reference(node: import('estree').Identifier, path: SvelteNode[]): void; reference(node: import("estree").Identifier, path: SvelteNode[]): void;
#private; #private;
} }
class ScopeRoot { class ScopeRoot {
@ -2006,10 +2006,10 @@ declare module 'svelte/legacy' {
* *
* */ * */
export function createClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(options: import("svelte").ComponentConstructorOptions<Props> & { export function createClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(options: import("svelte").ComponentConstructorOptions<Props> & {
component: import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots>> | import("svelte").Component<Props, any, string>; component: import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots>> | import("svelte").Component<Props>;
immutable?: boolean | undefined; immutable?: boolean;
hydrate?: boolean | undefined; hydrate?: boolean;
recover?: boolean | undefined; recover?: boolean;
}): import("svelte").SvelteComponent<Props, Events, Slots> & Exports; }): import("svelte").SvelteComponent<Props, Events, Slots> & Exports;
/** /**
* Takes the component function and returns a Svelte 4 compatible component constructor. * 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. * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
* *
* */ * */
export function asClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(component: import("svelte").SvelteComponent<Props, Events, Slots> | import("svelte").Component<Props, any, string>): import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots> & Exports>; export function asClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(component: import("svelte").SvelteComponent<Props, Events, Slots> | import("svelte").Component<Props>): import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots> & Exports>;
/** /**
* Runs the given function once immediately on the server, and works like `$effect.pre` on the client. * Runs the given function once immediately on the server, and works like `$effect.pre` on the client.
* *

@ -16,7 +16,7 @@ importers:
version: 2.27.1 version: 2.27.1
'@sveltejs/eslint-config': '@sveltejs/eslint-config':
specifier: ^7.0.1 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': '@svitejs/changesets-changelog-github-compact':
specifier: ^1.1.0 specifier: ^1.1.0
version: 1.1.0 version: 1.1.0
@ -49,13 +49,13 @@ importers:
version: 3.2.4 version: 3.2.4
prettier-plugin-svelte: prettier-plugin-svelte:
specifier: ^3.1.2 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: typescript:
specifier: ^5.3.3 specifier: ^5.5.2
version: 5.3.3 version: 5.5.2
typescript-eslint: typescript-eslint:
specifier: ^8.0.0-alpha.20 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: v8-natives:
specifier: ^1.2.5 specifier: ^1.2.5
version: 1.2.5 version: 1.2.5
@ -128,13 +128,13 @@ importers:
version: 5.0.4 version: 5.0.4
dts-buddy: dts-buddy:
specifier: ^0.4.7 specifier: ^0.4.7
version: 0.4.7(typescript@5.4.5) version: 0.4.7(typescript@5.5.2)
esbuild: esbuild:
specifier: ^0.19.11 specifier: ^0.19.11
version: 0.19.11 version: 0.19.11
knip: knip:
specifier: ^4.2.1 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: rollup:
specifier: ^4.9.5 specifier: ^4.9.5
version: 4.9.5 version: 4.9.5
@ -291,7 +291,7 @@ importers:
version: 0.14.7 version: 0.14.7
shiki-twoslash: shiki-twoslash:
specifier: ^3.1.2 specifier: ^3.1.2
version: 3.1.2(typescript@5.3.3) version: 3.1.2(typescript@5.5.2)
svelte: svelte:
specifier: workspace:^ specifier: workspace:^
version: link:../../packages/svelte version: link:../../packages/svelte
@ -302,8 +302,8 @@ importers:
specifier: ^2.6.2 specifier: ^2.6.2
version: 2.6.2 version: 2.6.2
typescript: typescript:
specifier: ^5.3.3 specifier: ^5.5.2
version: 5.3.3 version: 5.5.2
vite: vite:
specifier: ^5.0.13 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) 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 version: 0.14.7
shiki-twoslash: shiki-twoslash:
specifier: ^3.1.2 specifier: ^3.1.2
version: 3.1.2(typescript@5.3.3) version: 3.1.2(typescript@5.5.2)
svelte: svelte:
specifier: ^4.2.0 specifier: ^4.2.0
version: 4.2.9 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) 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: svelte-preprocess:
specifier: ^5.1.3 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: tiny-glob:
specifier: ^0.2.9 specifier: ^0.2.9
version: 0.2.9 version: 0.2.9
typescript: typescript:
specifier: ^5.3.3 specifier: ^5.5.2
version: 5.3.3 version: 5.5.2
vite: vite:
specifier: ^5.0.13 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) 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==} resolution: {integrity: sha512-hsoB/WZGEPFXeRRLPhPrbRz67PhP6sqYgvwcAs+gWdSQSvNDw+/lTeUJSWe5h2xC97Fz/8QxAOqItwBzNJPU8w==}
engines: {node: '>=16'} engines: {node: '>=16'}
svelte@5.0.0-next.158: svelte@5.0.0-next.162:
resolution: {integrity: sha512-QRmXxHByWntyWqLtzjNsBbNT89F2yA7aWPp9M9l9a6/PAE3gmQh6+qoVPgrxMR7iiFgpwh5ZU9Bm25j3IhGicQ==} resolution: {integrity: sha512-CRAbvitTa5EjJf4Ls/1Y5hHll8GsZtIaNeCRC13viig+OnRD25qvwBYYsmxBe3xqaBt9FIFHS76WDwrOBcDnWA==}
engines: {node: '>=18'} engines: {node: '>=18'}
symbol-tree@3.2.4: symbol-tree@3.2.4:
@ -4759,13 +4759,8 @@ packages:
typescript: typescript:
optional: true optional: true
typescript@5.3.3: typescript@5.5.2:
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==}
engines: {node: '>=14.17'}
hasBin: true
typescript@5.4.5:
resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==}
engines: {node: '>=14.17'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
@ -6460,16 +6455,16 @@ snapshots:
- encoding - encoding
- supports-color - 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: dependencies:
'@stylistic/eslint-plugin-js': 1.8.0(eslint@9.0.0) '@stylistic/eslint-plugin-js': 1.8.0(eslint@9.0.0)
eslint: 9.0.0 eslint: 9.0.0
eslint-config-prettier: 9.1.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) eslint-plugin-unicorn: 52.0.0(eslint@9.0.0)
globals: 15.0.0 globals: 15.0.0
typescript: 5.3.3 typescript: 5.5.2
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)
'@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))': '@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: dependencies:
@ -6670,34 +6665,34 @@ snapshots:
dependencies: dependencies:
'@types/node': 20.11.5 '@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: dependencies:
'@eslint-community/regexpp': 4.10.0 '@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/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/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.3.3) '@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 '@typescript-eslint/visitor-keys': 8.0.0-alpha.20
eslint: 9.0.0 eslint: 9.0.0
graphemer: 1.4.0 graphemer: 1.4.0
ignore: 5.3.1 ignore: 5.3.1
natural-compare: 1.4.0 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: optionalDependencies:
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - 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: dependencies:
'@typescript-eslint/scope-manager': 8.0.0-alpha.20 '@typescript-eslint/scope-manager': 8.0.0-alpha.20
'@typescript-eslint/types': 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 '@typescript-eslint/visitor-keys': 8.0.0-alpha.20
debug: 4.3.4(supports-color@5.5.0) debug: 4.3.4(supports-color@5.5.0)
eslint: 9.0.0 eslint: 9.0.0
optionalDependencies: optionalDependencies:
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -6706,21 +6701,21 @@ snapshots:
'@typescript-eslint/types': 8.0.0-alpha.20 '@typescript-eslint/types': 8.0.0-alpha.20
'@typescript-eslint/visitor-keys': 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: dependencies:
'@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/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)
debug: 4.3.4(supports-color@5.5.0) 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: optionalDependencies:
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- eslint - eslint
- supports-color - supports-color
'@typescript-eslint/types@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)':
dependencies: dependencies:
'@typescript-eslint/types': 8.0.0-alpha.20 '@typescript-eslint/types': 8.0.0-alpha.20
'@typescript-eslint/visitor-keys': 8.0.0-alpha.20 '@typescript-eslint/visitor-keys': 8.0.0-alpha.20
@ -6729,18 +6724,18 @@ snapshots:
is-glob: 4.0.3 is-glob: 4.0.3
minimatch: 9.0.4 minimatch: 9.0.4
semver: 7.6.0 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: optionalDependencies:
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - 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: dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0)
'@typescript-eslint/scope-manager': 8.0.0-alpha.20 '@typescript-eslint/scope-manager': 8.0.0-alpha.20
'@typescript-eslint/types': 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 eslint: 9.0.0
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -7418,7 +7413,7 @@ snapshots:
dotenv@16.3.2: {} dotenv@16.3.2: {}
dts-buddy@0.4.7(typescript@5.4.5): dts-buddy@0.4.7(typescript@5.5.2):
dependencies: dependencies:
'@jridgewell/source-map': 0.3.5 '@jridgewell/source-map': 0.3.5
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
@ -7428,8 +7423,8 @@ snapshots:
magic-string: 0.30.5 magic-string: 0.30.5
sade: 1.8.1 sade: 1.8.1
tiny-glob: 0.2.9 tiny-glob: 0.2.9
ts-api-utils: 1.0.3(typescript@5.4.5) ts-api-utils: 1.0.3(typescript@5.5.2)
typescript: 5.4.5 typescript: 5.5.2
eastasianwidth@0.2.0: {} eastasianwidth@0.2.0: {}
@ -7577,7 +7572,7 @@ snapshots:
eslint-plugin-lube@0.4.3: {} 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: dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0)
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
@ -7591,9 +7586,9 @@ snapshots:
postcss-safe-parser: 6.0.0(postcss@8.4.38) postcss-safe-parser: 6.0.0(postcss@8.4.38)
postcss-selector-parser: 6.0.16 postcss-selector-parser: 6.0.16
semver: 7.6.0 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: optionalDependencies:
svelte: 5.0.0-next.158 svelte: 5.0.0-next.162
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
- ts-node - ts-node
@ -8415,7 +8410,7 @@ snapshots:
kleur@4.1.5: {} 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: dependencies:
'@ericcornelissen/bash-parser': 0.5.2 '@ericcornelissen/bash-parser': 0.5.2
'@nodelib/fs.walk': 2.0.0 '@nodelib/fs.walk': 2.0.0
@ -8439,7 +8434,7 @@ snapshots:
smol-toml: 1.1.3 smol-toml: 1.1.3
strip-json-comments: 5.0.1 strip-json-comments: 5.0.1
summary: 2.1.0 summary: 2.1.0
typescript: 5.4.5 typescript: 5.5.2
zod: 3.22.4 zod: 3.22.4
zod-validation-error: 3.0.0(zod@3.22.4) zod-validation-error: 3.0.0(zod@3.22.4)
transitivePeerDependencies: transitivePeerDependencies:
@ -9101,10 +9096,10 @@ snapshots:
prettier: 3.2.4 prettier: 3.2.4
svelte: 4.2.9 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: dependencies:
prettier: 3.2.4 prettier: 3.2.4
svelte: 5.0.0-next.158 svelte: 5.0.0-next.162
prettier@2.8.8: {} prettier@2.8.8: {}
@ -9475,13 +9470,13 @@ snapshots:
interpret: 1.4.0 interpret: 1.4.0
rechoir: 0.6.2 rechoir: 0.6.2
shiki-twoslash@3.1.2(typescript@5.3.3): shiki-twoslash@3.1.2(typescript@5.5.2):
dependencies: dependencies:
'@typescript/twoslash': 3.1.0 '@typescript/twoslash': 3.1.0
'@typescript/vfs': 1.3.4 '@typescript/vfs': 1.3.4
fenceparser: 1.1.1 fenceparser: 1.1.1
shiki: 0.10.1 shiki: 0.10.1
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
@ -9698,8 +9693,8 @@ snapshots:
picocolors: 1.0.0 picocolors: 1.0.0
sade: 1.8.1 sade: 1.8.1
svelte: 4.2.9 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) 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.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- '@babel/core' - '@babel/core'
- coffeescript - coffeescript
@ -9720,8 +9715,8 @@ snapshots:
picocolors: 1.0.0 picocolors: 1.0.0
sade: 1.8.1 sade: 1.8.1
svelte: link:packages/svelte 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) 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.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- '@babel/core' - '@babel/core'
- coffeescript - coffeescript
@ -9733,7 +9728,7 @@ snapshots:
- stylus - stylus
- sugarss - 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: dependencies:
eslint-scope: 7.2.2 eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3 eslint-visitor-keys: 3.4.3
@ -9741,7 +9736,7 @@ snapshots:
postcss: 8.4.38 postcss: 8.4.38
postcss-scss: 4.0.9(postcss@8.4.38) postcss-scss: 4.0.9(postcss@8.4.38)
optionalDependencies: optionalDependencies:
svelte: 5.0.0-next.158 svelte: 5.0.0-next.162
svelte-hmr@0.16.0(svelte@4.2.9): svelte-hmr@0.16.0(svelte@4.2.9):
dependencies: dependencies:
@ -9771,7 +9766,7 @@ snapshots:
dependencies: dependencies:
svelte: link:packages/svelte 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: dependencies:
'@types/pug': 2.0.10 '@types/pug': 2.0.10
detect-indent: 6.1.0 detect-indent: 6.1.0
@ -9783,9 +9778,9 @@ snapshots:
postcss: 8.4.38 postcss: 8.4.38
postcss-load-config: 3.1.4(postcss@8.4.38) postcss-load-config: 3.1.4(postcss@8.4.38)
sass: 1.70.0 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: dependencies:
'@types/pug': 2.0.10 '@types/pug': 2.0.10
detect-indent: 6.1.0 detect-indent: 6.1.0
@ -9797,7 +9792,7 @@ snapshots:
postcss: 8.4.38 postcss: 8.4.38
postcss-load-config: 3.1.4(postcss@8.4.38) postcss-load-config: 3.1.4(postcss@8.4.38)
sass: 1.70.0 sass: 1.70.0
typescript: 5.3.3 typescript: 5.5.2
svelte@4.2.9: svelte@4.2.9:
dependencies: dependencies:
@ -9816,7 +9811,7 @@ snapshots:
magic-string: 0.30.5 magic-string: 0.30.5
periscopic: 3.1.0 periscopic: 3.1.0
svelte@5.0.0-next.158: svelte@5.0.0-next.162:
dependencies: dependencies:
'@ampproject/remapping': 2.2.1 '@ampproject/remapping': 2.2.1
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
@ -9931,13 +9926,13 @@ snapshots:
trim-newlines@3.0.1: {} 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: 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: dependencies:
typescript: 5.3.3 typescript: 5.5.2
tslib@2.6.2: {} tslib@2.6.2: {}
@ -9997,20 +9992,18 @@ snapshots:
for-each: 0.3.3 for-each: 0.3.3
is-typed-array: 1.1.12 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: 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/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.3.3) '@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.3.3) '@typescript-eslint/utils': 8.0.0-alpha.20(eslint@9.0.0)(typescript@5.5.2)
optionalDependencies: optionalDependencies:
typescript: 5.3.3 typescript: 5.5.2
transitivePeerDependencies: transitivePeerDependencies:
- eslint - eslint
- supports-color - supports-color
typescript@5.3.3: {} typescript@5.5.2: {}
typescript@5.4.5: {}
ufo@1.3.2: {} ufo@1.3.2: {}

@ -31,7 +31,7 @@
"svelte": "workspace:^", "svelte": "workspace:^",
"svelte-check": "^3.6.3", "svelte-check": "^3.6.3",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.3.3", "typescript": "^5.5.2",
"vite": "^5.0.13" "vite": "^5.0.13"
}, },
"dependencies": { "dependencies": {

@ -54,7 +54,7 @@
"svelte-check": "^3.6.3", "svelte-check": "^3.6.3",
"svelte-preprocess": "^5.1.3", "svelte-preprocess": "^5.1.3",
"tiny-glob": "^0.2.9", "tiny-glob": "^0.2.9",
"typescript": "^5.3.3", "typescript": "^5.5.2",
"vite": "^5.0.13", "vite": "^5.0.13",
"vite-imagetools": "^6.2.9" "vite-imagetools": "^6.2.9"
} }

@ -3,12 +3,14 @@ import { browserslistToTargets } from 'lightningcss';
import { readFile } from 'node:fs/promises'; import { readFile } from 'node:fs/promises';
import browserslist from 'browserslist'; import browserslist from 'browserslist';
/** @type {import('vite').PluginOption[]} */
const plugins = [raw(['.ttf']), sveltekit()]; const plugins = [raw(['.ttf']), sveltekit()];
// Only enable sharp if we're not in a webcontainer env // Only enable sharp if we're not in a webcontainer env
if (!process.versions.webcontainer) { if (!process.versions.webcontainer) {
plugins.push( const { imagetools } = await import('vite-imagetools');
(await import('vite-imagetools')).imagetools({
const plugin = imagetools({
defaultDirectives: (url) => { defaultDirectives: (url) => {
if (url.searchParams.has('big-image')) { if (url.searchParams.has('big-image')) {
return new URLSearchParams('w=640;1280;2560;3840&format=avif;webp;png&as=picture'); return new URLSearchParams('w=640;1280;2560;3840&format=avif;webp;png&as=picture');
@ -16,8 +18,9 @@ if (!process.versions.webcontainer) {
return new URLSearchParams(); return new URLSearchParams();
} }
}) });
);
plugins.push(/** @type {import('vite').PluginOption} */ (/** @type {unknown} */ (plugin)));
} }
/** /**

Loading…
Cancel
Save