Loading CHANGES.md +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ Released on November 23, 2024. [#177]: https://github.com/dahlia/fedify/issues/177 [#181]: https://github.com/dahlia/fedify/pull/181 - Support SvelteKit integrations. [[#183]] Version 1.2.7 ------------- Loading src/x/sveltekit.ts +0 −3 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ export const fedifyHook = <TContextData>( ) => TContextData | Promise<TContextData>, ) => { return async ({ event, resolve }: HookParams) => { console.log("fetch", event.request.url); return await federation.fetch(event.request, { contextData: await createContextData(event), ...integrateFetchOptions({ event, resolve }), Loading @@ -63,7 +62,6 @@ const integrateFetchOptions = ( // provided by the SvelteKit framework to continue the request handling // by the SvelteKit: async onNotFound(): Promise<Response> { console.log("onNotFound", event.request.url); return await resolve(event); }, Loading @@ -75,7 +73,6 @@ const integrateFetchOptions = ( // This kind of trick enables the Fedify and SvelteKit to share the same routes // and they do content negotiation depending on `Accept` header: async onNotAcceptable(): Promise<Response> { console.log("onNotAcceptable", event.request.url); const res = await resolve(event); if (res.status !== 404) return res; return new Response("Not acceptable", { Loading Loading
CHANGES.md +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ Released on November 23, 2024. [#177]: https://github.com/dahlia/fedify/issues/177 [#181]: https://github.com/dahlia/fedify/pull/181 - Support SvelteKit integrations. [[#183]] Version 1.2.7 ------------- Loading
src/x/sveltekit.ts +0 −3 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ export const fedifyHook = <TContextData>( ) => TContextData | Promise<TContextData>, ) => { return async ({ event, resolve }: HookParams) => { console.log("fetch", event.request.url); return await federation.fetch(event.request, { contextData: await createContextData(event), ...integrateFetchOptions({ event, resolve }), Loading @@ -63,7 +62,6 @@ const integrateFetchOptions = ( // provided by the SvelteKit framework to continue the request handling // by the SvelteKit: async onNotFound(): Promise<Response> { console.log("onNotFound", event.request.url); return await resolve(event); }, Loading @@ -75,7 +73,6 @@ const integrateFetchOptions = ( // This kind of trick enables the Fedify and SvelteKit to share the same routes // and they do content negotiation depending on `Accept` header: async onNotAcceptable(): Promise<Response> { console.log("onNotAcceptable", event.request.url); const res = await resolve(event); if (res.status !== 404) return res; return new Response("Not acceptable", { Loading