Skip to content

Commit 36928d9

Browse files
Merge branch 'main' into fedify-next-tests
2 parents c933943 + a681e1f commit 36928d9

16 files changed

Lines changed: 130 additions & 25 deletions

File tree

‎CHANGES.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ To be released.
148148

149149
### @fedify/cli
150150

151+
- Added \[SvelteKit\] option to `fedify init` command. This option allows
152+
users to initialize a new Fedify project with SvelteKit integration.
153+
[[#892], [#971] by Jang Hanarae\]
151154
- Added `fedify.com.es` as a tunneling service. The CLI pins the service's
152155
SSH host key and rejects a mismatched server before exposing a local port.
153156
[[#940]]
@@ -158,7 +161,9 @@ To be released.
158161
`@js-temporal/polyfill` to `temporal-polyfill`.
159162
[[#823], [#925]]
160163

164+
[#892]: https://github.com/fedify-dev/fedify/issues/892
161165
[#940]: https://github.com/fedify-dev/fedify/pull/940
166+
[#971]: https://github.com/fedify-dev/fedify/pull/971
162167

163168
### @fedify/debugger
164169

@@ -175,6 +180,8 @@ To be released.
175180
the package manager is `npm` or `pnpm`:
176181
[[#950]]
177182
[[#952] by Jang Hanarae\]
183+
- Supported \[SvelteKit\] as a web framework option in
184+
`fedify init`. [[#892], [#971] by Jang Hanarae\]
178185

179186
[#950]: https://github.com/fedify-dev/fedify/issues/950
180187
[#952]: https://github.com/fedify-dev/fedify/pull/952

‎changes.d/cli/init-sveltekit.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Added [SvelteKit] option to `fedify init` command. This option allows users
2+
to initialize a new Fedify project with SvelteKit integration.
3+
[[#892], [#971] by Jang Hanarae]

‎changes.d/init/sveltekit.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
links:
3+
'#971': https://github.com/fedify-dev/fedify/pull/971
4+
---
5+
- Supported [SvelteKit] as a web framework option in
6+
`fedify init`. [[#892], [#971] by Jang Hanarae]

‎docs/tutorial/microblog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Select *Hono*, *npm*, *in-process*, and *in-memory* in order:
169169
Express
170170
Nuxt
171171
SolidStart
172+
SvelteKit
172173

173174

174175
? Choose the package manager to use

‎packages/init/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Supported options
2626
The initializer supports the following project configurations:
2727

2828
- **Web frameworks**: Bare-bones, [Astro], [Elysia], [Express], [Hono],
29-
[Next.js], [Nitro], [Nuxt], [SolidStart]
29+
[Next.js], [Nitro], [Nuxt], [SolidStart], [SvelteKit]
3030
- **Package managers**: Deno, pnpm, Bun, Yarn, npm
3131
- **Key-value stores**: In-Memory, Deno KV, Redis, PostgreSQL
3232
- **Message queues**: In-Process, Deno KV, Redis, PostgreSQL, AMQP
@@ -39,6 +39,7 @@ The initializer supports the following project configurations:
3939
[Nitro]: https://nitro.build/
4040
[Nuxt]: https://nuxt.com/
4141
[SolidStart]: https://start.solidjs.com/
42+
[SvelteKit]: https://svelte.dev/
4243

4344

4445
Installation

‎packages/init/src/const.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const WEB_FRAMEWORK = [
1515
"express",
1616
"nuxt",
1717
"solidstart",
18+
"sveltekit",
1819
] as const;
1920
/** All supported message queue backend identifiers. */
2021
export const MESSAGE_QUEUE = Object.keys(mq) as readonly (keyof typeof mq)[];

‎packages/init/src/json/deps.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
22
"@hongminhee/x-forwarded-fetch": "^0.2.0",
3-
"@hono/hono": "^4.12.27",
4-
"@logtape/logtape": "^2.2.1",
3+
"@hono/hono": "^4.12.33",
4+
"@logtape/logtape": "^2.3.0",
55
"@std/dotenv": "^0.225.7",
6-
"npm:@astrojs/node": "^11.0.2",
6+
"npm:@astrojs/node": "^11.0.3",
77
"npm:@deno/astro-adapter": "^0.6.0",
88
"npm:@dotenvx/dotenvx": "^1.75.1",
99
"npm:@elysiajs/node": "^1.4.5",
1010
"npm:@hono/node-server": "^1.19.12",
11-
"npm:@nuxt/kit": "^4.4.8",
12-
"npm:@sinclair/typebox": "^0.34.49",
11+
"npm:@nuxt/kit": "^4.5.1",
12+
"npm:@sinclair/typebox": "^0.34.52",
1313
"npm:@solidjs/router": "^0.16.1",
1414
"npm:@solidjs/start": "^1.3.2",
1515
"npm:@types/bun": "^1.3.14",
1616
"npm:@types/express": "^4.17.21",
1717
"npm:@types/node@20": "^20.11.2",
1818
"npm:@types/node@22": "^22.17.0",
1919
"npm:@types/node@25": "^25.5.0",
20-
"npm:astro": "^7.0.7",
21-
"npm:create-astro": "^5.2.2",
20+
"npm:astro": "^7.1.6",
21+
"npm:create-astro": "^5.2.3",
2222
"npm:elysia": "^1.4.29",
2323
"npm:express": "^5.2.1",
2424
"npm:h3": "^1.15.0",
25-
"npm:hono": "^4.12.27",
26-
"npm:nuxi": "^3.36.0",
27-
"npm:nuxt": "^4.4.8",
25+
"npm:hono": "^4.12.33",
26+
"npm:nuxi": "^3.37.0",
27+
"npm:nuxt": "^4.5.1",
2828
"npm:openapi-types": "^12.1.3",
29-
"npm:oxfmt": "^0.56.0",
30-
"npm:oxlint": "^1.71.0",
31-
"npm:prettier": "^3.8.4",
29+
"npm:oxfmt": "^0.61.0",
30+
"npm:oxlint": "^1.76.0",
31+
"npm:prettier": "^3.9.6",
3232
"npm:prettier-plugin-astro": "^0.14.1",
33-
"npm:solid-js": "^1.9.13",
34-
"npm:tsx": "^4.22.4",
33+
"npm:solid-js": "^1.9.14",
34+
"npm:tsx": "^4.23.1",
3535
"npm:typescript": "^5.9.3",
3636
"npm:vinxi": "^0.5.11",
3737
"npm:x-forwarded-fetch": "^0.2.0"

‎packages/init/src/json/kv.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"pnpm"
7676
],
7777
"dependencies": {
78-
"npm:mysql2": "^3.22.5"
78+
"npm:mysql2": "^3.23.2"
7979
},
8080
"imports": {
8181
"@fedify/mysql": {

‎packages/init/src/json/mq.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"pnpm"
7676
],
7777
"dependencies": {
78-
"npm:mysql2": "^3.22.5"
78+
"npm:mysql2": "^3.23.2"
7979
},
8080
"imports": {
8181
"@fedify/mysql": {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { fedifyHook } from "@fedify/sveltekit";
2+
import { sequence } from "@sveltejs/kit/hooks";
3+
import federation from "$lib/federation";
4+
5+
export const handle = sequence(
6+
fedifyHook(federation),
7+
);

0 commit comments

Comments
 (0)