Skip to content

Commit ffa60a7

Browse files
committed
Merge pull request #471 from sij411/feat/relay
Add LitePub relay implementation
2 parents c31cc63 + 020b660 commit ffa60a7

File tree

7 files changed

+1003
-15
lines changed

7 files changed

+1003
-15
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ jobs:
438438
| @fedify/next | ${{ steps.versioning.outputs.version }} | | [npm][npm:@fedify/next] |
439439
| @fedify/postgres | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/postgres] | [npm][npm:@fedify/postgres] |
440440
| @fedify/redis | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/redis] | [npm][npm:@fedify/redis] |
441+
| @fedify/relay | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/relay] | [npm][npm:@fedify/relay] |
441442
| @fedify/sqlite | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/sqlite] | [npm][npm:@fedify/sqlite] |
442443
| @fedify/sveltekit | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/sveltekit] | [npm][npm:@fedify/sveltekit] |
443444
| @fedify/testing | ${{ steps.versioning.outputs.version }} | [JSR][jsr:@fedify/testing] | [npm][npm:@fedify/testing] |
@@ -466,6 +467,8 @@ jobs:
466467
[npm:@fedify/postgres]: https://www.npmjs.com/package/@fedify/postgres/v/${{ steps.versioning.outputs.short_version }}
467468
[jsr:@fedify/redis]: https://jsr.io/@fedify/redis@${{ steps.versioning.outputs.version }}
468469
[npm:@fedify/redis]: https://www.npmjs.com/package/@fedify/redis/v/${{ steps.versioning.outputs.short_version }}
470+
[jsr:@fedify/relay]: https://jsr.io/@fedify/relay@${{ steps.versioning.outputs.version }}
471+
[npm:@fedify/relay]: https://www.npmjs.com/package/@fedify/relay/v/${{ steps.versioning.outputs.short_version }}
469472
[jsr:@fedify/sqlite]: https://jsr.io/@fedify/sqlite@${{ steps.versioning.outputs.version }}
470473
[npm:@fedify/sqlite]: https://www.npmjs.com/package/@fedify/sqlite/v/${{ steps.versioning.outputs.short_version }}
471474
[jsr:@fedify/sveltekit]: https://jsr.io/@fedify/sveltekit@${{ steps.versioning.outputs.version }}

CHANGES.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,21 @@ To be released.
138138
### @fedify/relay
139139

140140
- Created ActivityPub relay integration as the *@fedify/relay* package.
141-
[[#359], [#459] by Jiwon Kwon]
141+
[[#359], [#459], [#471] by Jiwon Kwon]
142142

143143
- Added `Relay` interface defining the common contract for relay
144144
implementations.
145145
- Added `MastodonRelay` class implementing Mastodon-compatible relay
146-
protocol with:
146+
protocol.
147+
- Added `LitePubRelay` class implementing LitePub-compatible relay
148+
protocol.
147149
- Added `SubscriptionRequestHandler` type for custom subscription approval
148150
logic.
149151
- Added `RelayOptions` interface for relay configuration.
150152

151153
[#359]: https://github.com/fedify-dev/fedify/issues/359
152154
[#459]: https://github.com/fedify-dev/fedify/pull/459
155+
[#471]: https://github.com/fedify-dev/fedify/pull/471
153156

154157
### @fedify/vocab-tools
155158

deno.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/fedify/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Here is the list of packages:
106106
| [@fedify/next](/packages/next/) | | [npm][npm:@fedify/next] | Next.js integration |
107107
| [@fedify/postgres](/packages/postgres/) | [JSR][jsr:@fedify/postgres] | [npm][npm:@fedify/postgres] | PostgreSQL driver |
108108
| [@fedify/redis](/packages/redis/) | [JSR][jsr:@fedify/redis] | [npm][npm:@fedify/redis] | Redis driver |
109+
| [@fedify/relay](/packages/relay/) | [JSR][jsr:@fedify/relay] | [npm][npm:@fedify/relay] | ActivityPub relay support |
109110
| [@fedify/sqlite](/packages/sqlite/) | [JSR][jsr:@fedify/sqlite] | [npm][npm:@fedify/sqlite] | SQLite driver |
110111
| [@fedify/sveltekit](/packages/sveltekit/) | [JSR][jsr:@fedify/sveltekit] | [npm][npm:@fedify/sveltekit] | SvelteKit integration |
111112
| [@fedify/testing](/packages/testing/) | [JSR][jsr:@fedify/testing] | [npm][npm:@fedify/testing] | Testing utilities |
@@ -132,6 +133,8 @@ Here is the list of packages:
132133
[npm:@fedify/postgres]: https://www.npmjs.com/package/@fedify/postgres
133134
[jsr:@fedify/redis]: https://jsr.io/@fedify/redis
134135
[npm:@fedify/redis]: https://www.npmjs.com/package/@fedify/redis
136+
[jsr:@fedify/relay]: https://jsr.io/@fedify/relay
137+
[npm:@fedify/relay]: https://www.npmjs.com/package/@fedify/relay
135138
[jsr:@fedify/sqlite]: https://jsr.io/@fedify/sqlite
136139
[npm:@fedify/sqlite]: https://www.npmjs.com/package/@fedify/sqlite
137140
[jsr:@fedify/sveltekit]: https://jsr.io/@fedify/sveltekit

0 commit comments

Comments
 (0)