diff --git a/CHANGES.md b/CHANGES.md index 3f160a9da..0d2e5501b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,14 @@ Version 2.4.2 To be released. +### @fedify/init + + - Migrated the initialization template script to SvelteKit version 3, by + replacing the `$lib` syntax to `#lib`. [[#1222], [#1224] by Jungmin Yoon\] + +[#1222]: https://github.com/fedify-dev/fedify/issues/1222 +[#1224]: https://github.com/fedify-dev/fedify/issues/1224 + Version 2.4.1 ------------- diff --git a/changes.d/init/init-sv-3-migration.md b/changes.d/init/init-sv-3-migration.md new file mode 100644 index 000000000..c62366fe4 --- /dev/null +++ b/changes.d/init/init-sv-3-migration.md @@ -0,0 +1,5 @@ + - Migrated the initialization template script to SvelteKit version 3, by + replacing the `$lib` syntax to `#lib`. [[#1222], [#1224] by Jungmin Yoon] + +[#1222]: https://github.com/fedify-dev/fedify/issues/1222 +[#1224]: https://github.com/fedify-dev/fedify/pull/1224 diff --git a/packages/init/src/json/deps.json b/packages/init/src/json/deps.json index 64ec5aefa..ad9d6693d 100644 --- a/packages/init/src/json/deps.json +++ b/packages/init/src/json/deps.json @@ -33,6 +33,7 @@ "npm:solid-js": "^1.9.14", "npm:tsx": "^4.23.1", "npm:typescript": "^5.9.3", + "npm:typescript@6": "^6.0.0", "npm:vinxi": "^0.5.11", "npm:x-forwarded-fetch": "^0.2.0" } diff --git a/packages/init/src/templates/sveltekit/hooks.server.ts.tpl b/packages/init/src/templates/sveltekit/hooks.server.ts.tpl index 47a60734e..af91e975e 100644 --- a/packages/init/src/templates/sveltekit/hooks.server.ts.tpl +++ b/packages/init/src/templates/sveltekit/hooks.server.ts.tpl @@ -1,6 +1,6 @@ import { fedifyHook } from "@fedify/sveltekit"; import { sequence } from "@sveltejs/kit/hooks"; -import federation from "$lib/federation"; +import federation from "#lib/federation.ts"; export const handle = sequence( fedifyHook(federation), diff --git a/packages/init/src/webframeworks/sveltekit.ts b/packages/init/src/webframeworks/sveltekit.ts index d69ae64ee..401cd925d 100644 --- a/packages/init/src/webframeworks/sveltekit.ts +++ b/packages/init/src/webframeworks/sveltekit.ts @@ -23,7 +23,7 @@ const sveltekitDescription: WebFrameworkDescription = { }, devDependencies: { ...defaultDevDependencies, - "typescript": deps["npm:typescript"], + "typescript": deps["npm:typescript@6"], "@types/node": deps["npm:@types/node@25"], ...(pmToRt(pm) === "deno" ? {} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 92f03442a..56ce9381e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,7 +103,7 @@ catalogs: specifier: jsr:^1.0.6 version: 1.1.0 '@sveltejs/kit': - specifier: ^2.0.0 + specifier: ^2.0.0 || ^3.0.0 version: 2.36.2 '@types/amqplib': specifier: ^0.10.8 @@ -39912,7 +39912,7 @@ snapshots: '@poppinss/colors': 4.1.6 '@poppinss/dumper': 0.6.5 '@speed-highlight/core': 1.2.15 - cookie: 1.0.2 + cookie: 1.1.1 youch-core: 0.3.3 youch@4.1.1: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 2ed6b43cd..a687b346b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -109,7 +109,7 @@ catalog: "@std/assert": "jsr:^1.0.13" "@std/async": "jsr:^1.0.13" "@std/path": "jsr:^1.0.6" - "@sveltejs/kit": ^2.0.0 + "@sveltejs/kit": ^2.0.0 || ^3.0.0 "@types/amqplib": ^0.10.8 "@types/better-sqlite3": ^7.6.13 "@types/bun": ^1.2.23