@fedify/sveltekit 2.0.0-dev.1908 → 2.0.0-dev.196

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +21 -19
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2024–2025 Hong Minhee
3
+ Copyright 2024–2026 Hong Minhee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -27,23 +27,34 @@ export const handle = fedifyHook(federation, (req) => "context data");
27
27
 
28
28
  Put the above code in your *hooks.server.ts* file.
29
29
 
30
+ [JSR badge]: https://jsr.io/badges/@fedify/sveltekit
31
+ [JSR]: https://jsr.io/@fedify/sveltekit
32
+ [npm badge]: https://img.shields.io/npm/v/@fedify/sveltekit?logo=npm
33
+ [npm]: https://www.npmjs.com/package/@fedify/sveltekit
34
+ [@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
35
+ [@fedify@hollo.social]: https://hollo.social/@fedify
36
+ [Fedify]: https://fedify.dev/
37
+ [SvelteKit]: https://kit.svelte.dev/
38
+
39
+
30
40
  How it works
31
41
  ------------
32
42
 
33
- Fedify behaves as a hook handler that wraps around the SvelteKit request handler.
34
- The hook intercepts the incoming HTTP requests and dispatches them to
43
+ Fedify behaves as a hook handler that wraps around the SvelteKit request
44
+ handler. The hook intercepts the incoming HTTP requests and dispatches them to
35
45
  the appropriate handler based on the request path and the `Accept` header
36
- (i.e., content negotiation). This architecture allows Fedify and your SvelteKit
37
- application to coexist in the same domain and port.
46
+ (i.e., content negotiation). This architecture allows Fedify and your
47
+ SvelteKit application to coexist in the same domain and port.
38
48
 
39
49
  For example, if you make a request to */.well-known/webfinger* Fedify will
40
50
  handle the request by itself, but if you make a request to */users/alice*
41
- (assuming your SvelteKit app has a handler for `/users/[handle]`) with `Accept:
42
- text/html` header, Fedify will dispatch the request to the SvelteKit app's
43
- appropriate handler for `/users/[handle]`. Or if you define an actor dispatcher
44
- for `/users/{handle}` in Fedify, and the request is made with `Accept:
45
- application/activity+json` header, Fedify will dispatch the request to the
46
- appropriate actor dispatcher.
51
+ (assuming your SvelteKit app has a handler for `/users/[handle]`) with
52
+ `Accept: text/html` header, Fedify will dispatch the request to the SvelteKit
53
+ app's appropriate handler for `/users/[handle]`. Or if you define an actor
54
+ dispatcher for `/users/{handle}` in Fedify, and the request is made with
55
+ `Accept: application/activity+json` header, Fedify will dispatch the request to
56
+ the appropriate actor dispatcher.
57
+
47
58
 
48
59
  Installation
49
60
  ------------
@@ -55,12 +66,3 @@ pnpm add @fedify/sveltekit # pnpm
55
66
  yarn add @fedify/sveltekit # Yarn
56
67
  bun add @fedify/sveltekit # Bun
57
68
  ~~~~
58
-
59
- [JSR]: https://jsr.io/@fedify/sveltekit
60
- [JSR badge]: https://jsr.io/badges/@fedify/sveltekit
61
- [npm]: https://www.npmjs.com/package/@fedify/sveltekit
62
- [npm badge]: https://img.shields.io/npm/v/@fedify/sveltekit?logo=npm
63
- [@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
64
- [@fedify@hollo.social]: https://hollo.social/@fedify
65
- [Fedify]: https://fedify.dev/
66
- [SvelteKit]: https://kit.svelte.dev/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sveltekit",
3
- "version": "2.0.0-dev.1908+c31cc639",
3
+ "version": "2.0.0-dev.196+c3cfc0a9",
4
4
  "description": "Integrate Fedify with SvelteKit",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "peerDependencies": {
53
53
  "@sveltejs/kit": "^2.0.0",
54
- "@fedify/fedify": "^2.0.0-dev.1908+c31cc639"
54
+ "@fedify/fedify": "^2.0.0-dev.196+c3cfc0a9"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsdown": "^0.12.9",
@@ -61,6 +61,6 @@
61
61
  "build": "tsdown",
62
62
  "prepublish": "tsdown",
63
63
  "dev": "tsdown --watch",
64
- "test": "deno task codegen && tsdown && cd dist/ && node --test"
64
+ "test": "node --experimental-transform-types --test"
65
65
  }
66
66
  }