@fedify/fedify 1.3.4 → 1.3.6
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.
- package/CHANGES.md +96 -71
- package/README.md +4 -4
- package/esm/deno.js +2 -2
- package/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.js +10 -0
- package/esm/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.js +1 -1
- package/esm/federation/middleware.js +4 -0
- package/esm/mod.js +2 -2
- package/esm/runtime/contexts.js +1 -1
- package/esm/runtime/docloader.js +7 -8
- package/esm/vocab/lookup.js +4 -1
- package/esm/vocab/vocab.js +173 -173
- package/esm/webfinger/lookup.js +13 -2
- package/package.json +3 -3
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts +3 -0
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/async/1.0.10/delay.d.ts.map +1 -0
- package/types/federation/middleware.d.ts +1 -0
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/mod.d.ts +2 -2
- package/types/runtime/docloader.d.ts.map +1 -1
- package/types/vocab/lookup.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/async/1.0.9/delay.d.ts.map +0 -1
- /package/types/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.d.ts +0 -0
package/CHANGES.md
CHANGED
@@ -3,6 +3,31 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.3.6
|
7
|
+
-------------
|
8
|
+
|
9
|
+
Released on January 31, 2025.
|
10
|
+
|
11
|
+
- Fixed a bug where `getUserAgent()` function had returned a `User-Agent`
|
12
|
+
string with a wrong JavaScript runtime name on Node.js. [[#203]]
|
13
|
+
|
14
|
+
[#203]: https://github.com/fedify-dev/fedify/issues/203
|
15
|
+
|
16
|
+
|
17
|
+
Version 1.3.5
|
18
|
+
-------------
|
19
|
+
|
20
|
+
Released on January 21, 2025.
|
21
|
+
|
22
|
+
- Fixed a bug where `CreateFederationOptions.allowPrivateAddress` option had
|
23
|
+
been ignored by the `Context.lookupObject()` method when it had taken
|
24
|
+
a fediverse handle.
|
25
|
+
|
26
|
+
- The `lookupWebFinger()` function became to silently return `null` when
|
27
|
+
it fails to fetch the WebFinger document due to accessing a private network
|
28
|
+
address, instead of throwing a `UrlError`.
|
29
|
+
|
30
|
+
|
6
31
|
Version 1.3.4
|
7
32
|
-------------
|
8
33
|
|
@@ -160,14 +185,14 @@ Released on November 30, 2024.
|
|
160
185
|
|
161
186
|
|
162
187
|
[SvelteKit]: https://kit.svelte.dev/
|
163
|
-
[#162]: https://github.com/
|
164
|
-
[#170]: https://github.com/
|
165
|
-
[#171]: https://github.com/
|
166
|
-
[#173]: https://github.com/
|
167
|
-
[#183]: https://github.com/
|
168
|
-
[#186]: https://github.com/
|
169
|
-
[#192]: https://github.com/
|
170
|
-
[#193]: https://github.com/
|
188
|
+
[#162]: https://github.com/fedify-dev/fedify/issues/162
|
189
|
+
[#170]: https://github.com/fedify-dev/fedify/issues/170
|
190
|
+
[#171]: https://github.com/fedify-dev/fedify/issues/171
|
191
|
+
[#173]: https://github.com/fedify-dev/fedify/issues/173
|
192
|
+
[#183]: https://github.com/fedify-dev/fedify/pull/183
|
193
|
+
[#186]: https://github.com/fedify-dev/fedify/pull/186
|
194
|
+
[#192]: https://github.com/fedify-dev/fedify/issues/192
|
195
|
+
[#193]: https://github.com/fedify-dev/fedify/issues/193
|
171
196
|
|
172
197
|
|
173
198
|
Version 1.2.11
|
@@ -223,8 +248,8 @@ Released on November 23, 2024.
|
|
223
248
|
- Fixed text overflow of the `fedify inbox` command's web log view.
|
224
249
|
[[#180], [#188] by Lim Kyunghee]
|
225
250
|
|
226
|
-
[#177]: https://github.com/
|
227
|
-
[#181]: https://github.com/
|
251
|
+
[#177]: https://github.com/fedify-dev/fedify/issues/177
|
252
|
+
[#181]: https://github.com/fedify-dev/fedify/pull/181
|
228
253
|
|
229
254
|
|
230
255
|
Version 1.2.7
|
@@ -348,7 +373,7 @@ Released on November 1, 2024.
|
|
348
373
|
- Support the `fedify` command on Windows on ARM64 via x64 emulation.
|
349
374
|
[[#160]]
|
350
375
|
|
351
|
-
[#160]: https://github.com/
|
376
|
+
[#160]: https://github.com/fedify-dev/fedify/issues/160
|
352
377
|
|
353
378
|
|
354
379
|
Version 1.2.1
|
@@ -414,7 +439,7 @@ Released on October 31, 2024.
|
|
414
439
|
- `["fedify", "nodeinfo", "client"]`
|
415
440
|
|
416
441
|
[implicit contexts]: https://logtape.org/manual/contexts#implicit-contexts
|
417
|
-
[#118]: https://github.com/
|
442
|
+
[#118]: https://github.com/fedify-dev/fedify/issues/118
|
418
443
|
|
419
444
|
|
420
445
|
Version 1.1.11
|
@@ -468,10 +493,10 @@ Released on November 23, 2024.
|
|
468
493
|
- Fixed text overflow of the `fedify inbox` command's web log view.
|
469
494
|
[[#180], [#188] by Lim Kyunghee]
|
470
495
|
|
471
|
-
[#178]: https://github.com/
|
472
|
-
[#180]: https://github.com/
|
473
|
-
[#185]: https://github.com/
|
474
|
-
[#188]: https://github.com/
|
496
|
+
[#178]: https://github.com/fedify-dev/fedify/issues/178
|
497
|
+
[#180]: https://github.com/fedify-dev/fedify/issues/180
|
498
|
+
[#185]: https://github.com/fedify-dev/fedify/pull/185
|
499
|
+
[#188]: https://github.com/fedify-dev/fedify/pull/188
|
475
500
|
|
476
501
|
|
477
502
|
Version 1.1.7
|
@@ -701,8 +726,8 @@ Released on October 20, 2024.
|
|
701
726
|
[FEP-c0e0]: https://w3id.org/fep/c0e0
|
702
727
|
[FEP-9091]: https://w3id.org/fep/9091
|
703
728
|
[ActivityPub and HTTP Signatures]: https://swicg.github.io/activitypub-http-signature/
|
704
|
-
[#146]: https://github.com/
|
705
|
-
[#150]: https://github.com/
|
729
|
+
[#146]: https://github.com/fedify-dev/fedify/issues/146
|
730
|
+
[#150]: https://github.com/fedify-dev/fedify/issues/150
|
706
731
|
|
707
732
|
|
708
733
|
Version 1.0.14
|
@@ -727,7 +752,7 @@ Released on January 21, 2025.
|
|
727
752
|
could lead to a SSRF attack. Now it follows only the public network
|
728
753
|
addresses.
|
729
754
|
|
730
|
-
[CVE-2025-23221]: https://github.com/
|
755
|
+
[CVE-2025-23221]: https://github.com/fedify-dev/fedify/security/advisories/GHSA-c59p-wq67-24wx
|
731
756
|
|
732
757
|
|
733
758
|
Version 1.0.13
|
@@ -738,7 +763,7 @@ Released on December 18, 2024.
|
|
738
763
|
- Fixed the default document loader to handle the `Link` header with
|
739
764
|
incorrect syntax. [[#196]]
|
740
765
|
|
741
|
-
[#196]: https://github.com/
|
766
|
+
[#196]: https://github.com/fedify-dev/fedify/issues/196
|
742
767
|
|
743
768
|
|
744
769
|
Version 1.0.12
|
@@ -1095,9 +1120,9 @@ Released on September 26, 2024.
|
|
1095
1120
|
- `["fedify", "sig", "ld"]`
|
1096
1121
|
|
1097
1122
|
[Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
1098
|
-
[#106]: https://github.com/
|
1099
|
-
[#135]: https://github.com/
|
1100
|
-
[#137]: https://github.com/
|
1123
|
+
[#106]: https://github.com/fedify-dev/fedify/issues/106
|
1124
|
+
[#135]: https://github.com/fedify-dev/fedify/issues/135
|
1125
|
+
[#137]: https://github.com/fedify-dev/fedify/issues/137
|
1101
1126
|
|
1102
1127
|
|
1103
1128
|
Version 0.15.9
|
@@ -1108,7 +1133,7 @@ Released on November 22, 2024.
|
|
1108
1133
|
- Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
|
1109
1134
|
when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
|
1110
1135
|
|
1111
|
-
[#166]: https://github.com/
|
1136
|
+
[#166]: https://github.com/fedify-dev/fedify/issues/166
|
1112
1137
|
|
1113
1138
|
|
1114
1139
|
Version 0.15.8
|
@@ -1167,7 +1192,7 @@ Released on November 19, 2024.
|
|
1167
1192
|
methods is now `OrderedCollection | OrderedCollectionPage | null` (was
|
1168
1193
|
`OrderedCollection | null`).
|
1169
1194
|
|
1170
|
-
[#165]: https://github.com/
|
1195
|
+
[#165]: https://github.com/fedify-dev/fedify/issues/165
|
1171
1196
|
|
1172
1197
|
|
1173
1198
|
Version 0.15.7
|
@@ -1188,7 +1213,7 @@ Released on November 14, 2024.
|
|
1188
1213
|
"inbox"]` logger category and responds with a `500 Internal Server
|
1189
1214
|
Error`.
|
1190
1215
|
|
1191
|
-
[#159]: https://github.com/
|
1216
|
+
[#159]: https://github.com/fedify-dev/fedify/issues/159
|
1192
1217
|
|
1193
1218
|
|
1194
1219
|
Version 0.15.6
|
@@ -1222,7 +1247,7 @@ Released on October 27, 2024.
|
|
1222
1247
|
- The `fetchDocumentLoader()` function now preloads the following JSON-LD
|
1223
1248
|
context: <http://schema.org/>.
|
1224
1249
|
|
1225
|
-
[#155]: https://github.com/
|
1250
|
+
[#155]: https://github.com/fedify-dev/fedify/pull/155
|
1226
1251
|
|
1227
1252
|
|
1228
1253
|
Version 0.15.3
|
@@ -1251,7 +1276,7 @@ Released on September 15, 2024.
|
|
1251
1276
|
- Fixed a bug where even if the `ActorCallbackSetters.mapHandle()` method was
|
1252
1277
|
called, a WebFinger username was used as an actor's handle. [[#136]]
|
1253
1278
|
|
1254
|
-
[#136]: https://github.com/
|
1279
|
+
[#136]: https://github.com/fedify-dev/fedify/pull/136
|
1255
1280
|
|
1256
1281
|
|
1257
1282
|
Version 0.15.0
|
@@ -1456,8 +1481,8 @@ Released on August 27, 2024.
|
|
1456
1481
|
Bun, and fills the *deno.json* file with the default `compilerOptions` on
|
1457
1482
|
Deno.
|
1458
1483
|
|
1459
|
-
[#114]: https://github.com/
|
1460
|
-
[#115]: https://github.com/
|
1484
|
+
[#114]: https://github.com/fedify-dev/fedify/issues/114
|
1485
|
+
[#115]: https://github.com/fedify-dev/fedify/issues/115
|
1461
1486
|
|
1462
1487
|
|
1463
1488
|
Version 0.13.5
|
@@ -1478,7 +1503,7 @@ Released on September 1, 2024.
|
|
1478
1503
|
- Fixed `fedify inbox` command where it had ignored `-a`/`--accept-follow`
|
1479
1504
|
options when no `-f`/`--follow` option was provided. [[#132]]
|
1480
1505
|
|
1481
|
-
[#132]: https://github.com/
|
1506
|
+
[#132]: https://github.com/fedify-dev/fedify/issues/132
|
1482
1507
|
|
1483
1508
|
|
1484
1509
|
Version 0.13.3
|
@@ -1490,7 +1515,7 @@ Released on August 30, 2024.
|
|
1490
1515
|
been verified by their inbox. [[#125]]
|
1491
1516
|
|
1492
1517
|
[Threads]: https://www.threads.net/
|
1493
|
-
[#125]: https://github.com/
|
1518
|
+
[#125]: https://github.com/fedify-dev/fedify/issues/125
|
1494
1519
|
|
1495
1520
|
|
1496
1521
|
Version 0.13.2
|
@@ -1501,7 +1526,7 @@ Released on August 29, 2024.
|
|
1501
1526
|
- Fixed `fedify inbox` command that had not been able to parse activities
|
1502
1527
|
even if they are valid JSON-LD. [[#126]]
|
1503
1528
|
|
1504
|
-
[#126]: https://github.com/
|
1529
|
+
[#126]: https://github.com/fedify-dev/fedify/issues/126
|
1505
1530
|
|
1506
1531
|
|
1507
1532
|
Version 0.13.1
|
@@ -1582,8 +1607,8 @@ Released on August 7, 2024.
|
|
1582
1607
|
|
1583
1608
|
- `["fedify", "webfinger", "server"]`
|
1584
1609
|
|
1585
|
-
[#69]: https://github.com/
|
1586
|
-
[#110]: https://github.com/
|
1610
|
+
[#69]: https://github.com/fedify-dev/fedify/issues/69
|
1611
|
+
[#110]: https://github.com/fedify-dev/fedify/issues/110
|
1587
1612
|
[Express]: https://expressjs.com/
|
1588
1613
|
[Nitro]: https://nitro.unjs.io/
|
1589
1614
|
|
@@ -1754,16 +1779,16 @@ Released on July 24, 2024.
|
|
1754
1779
|
- `["fedify", "federation", "queue"]`
|
1755
1780
|
|
1756
1781
|
[@fedify/cli]: https://www.npmjs.com/package/@fedify/cli
|
1757
|
-
[#6]: https://github.com/
|
1758
|
-
[#53]: https://github.com/
|
1759
|
-
[#66]: https://github.com/
|
1760
|
-
[#70]: https://github.com/
|
1761
|
-
[#81]: https://github.com/
|
1762
|
-
[#85]: https://github.com/
|
1763
|
-
[#92]: https://github.com/
|
1764
|
-
[#104]: https://github.com/
|
1765
|
-
[#105]: https://github.com/
|
1766
|
-
[#107]: https://github.com/
|
1782
|
+
[#6]: https://github.com/fedify-dev/fedify/issues/6
|
1783
|
+
[#53]: https://github.com/fedify-dev/fedify/issues/53
|
1784
|
+
[#66]: https://github.com/fedify-dev/fedify/issues/66
|
1785
|
+
[#70]: https://github.com/fedify-dev/fedify/issues/70
|
1786
|
+
[#81]: https://github.com/fedify-dev/fedify/issues/81
|
1787
|
+
[#85]: https://github.com/fedify-dev/fedify/issues/85
|
1788
|
+
[#92]: https://github.com/fedify-dev/fedify/pull/92
|
1789
|
+
[#104]: https://github.com/fedify-dev/fedify/issues/104
|
1790
|
+
[#105]: https://github.com/fedify-dev/fedify/issues/105
|
1791
|
+
[#107]: https://github.com/fedify-dev/fedify/issues/107
|
1767
1792
|
|
1768
1793
|
|
1769
1794
|
Version 0.11.3
|
@@ -1775,7 +1800,7 @@ Released on July 15, 2024.
|
|
1775
1800
|
`Federation.setInboxListeners()` had caused a `RouterError` to be
|
1776
1801
|
thrown even if the paths match. [[#101] by Fabien O'Carroll]
|
1777
1802
|
|
1778
|
-
[#101]: https://github.com/
|
1803
|
+
[#101]: https://github.com/fedify-dev/fedify/pull/101
|
1779
1804
|
|
1780
1805
|
|
1781
1806
|
Version 0.11.2
|
@@ -1983,12 +2008,12 @@ Released on June 29, 2024.
|
|
1983
2008
|
for Object Integrity Proofs. [[FEP-8b32], [#54]]
|
1984
2009
|
|
1985
2010
|
[eddsa-jcs-2022]: https://codeberg.org/fediverse/fep/pulls/338
|
1986
|
-
[#71]: https://github.com/
|
1987
|
-
[#74]: https://github.com/
|
1988
|
-
[#76]: https://github.com/
|
1989
|
-
[#78]: https://github.com/
|
1990
|
-
[#79]: https://github.com/
|
1991
|
-
[#80]: https://github.com/
|
2011
|
+
[#71]: https://github.com/fedify-dev/fedify/issues/71
|
2012
|
+
[#74]: https://github.com/fedify-dev/fedify/issues/74
|
2013
|
+
[#76]: https://github.com/fedify-dev/fedify/pull/76
|
2014
|
+
[#78]: https://github.com/fedify-dev/fedify/issues/78
|
2015
|
+
[#79]: https://github.com/fedify-dev/fedify/issues/79
|
2016
|
+
[#80]: https://github.com/fedify-dev/fedify/pull/80
|
1992
2017
|
|
1993
2018
|
|
1994
2019
|
Version 0.10.2
|
@@ -2169,10 +2194,10 @@ is now distributed under the [MIT License] to encourage wider adoption.
|
|
2169
2194
|
- `["fedify", "vocab", "lookup"]`
|
2170
2195
|
- `["fedify", "webfinger", "lookup"]`
|
2171
2196
|
|
2172
|
-
[#54]: https://github.com/
|
2173
|
-
[#55]: https://github.com/
|
2174
|
-
[#65]: https://github.com/
|
2175
|
-
[#68]: https://github.com/
|
2197
|
+
[#54]: https://github.com/fedify-dev/fedify/issues/54
|
2198
|
+
[#55]: https://github.com/fedify-dev/fedify/issues/55
|
2199
|
+
[#65]: https://github.com/fedify-dev/fedify/issues/65
|
2200
|
+
[#68]: https://github.com/fedify-dev/fedify/pull/68
|
2176
2201
|
[AGPL 3.0]: https://www.gnu.org/licenses/agpl-3.0.en.html
|
2177
2202
|
[MIT License]: https://minhee.mit-license.org/
|
2178
2203
|
[FEP-521a]: https://w3id.org/fep/521a
|
@@ -2209,7 +2234,7 @@ Released on July 5, 2024.
|
|
2209
2234
|
loader that throws an error when the given URL is not an HTTP or HTTPS
|
2210
2235
|
URL or refers to a private network address.
|
2211
2236
|
|
2212
|
-
[CVE-2024-39687]: https://github.com/
|
2237
|
+
[CVE-2024-39687]: https://github.com/fedify-dev/fedify/security/advisories/GHSA-p9cg-vqcc-grcx
|
2213
2238
|
|
2214
2239
|
|
2215
2240
|
Version 0.9.1
|
@@ -2286,8 +2311,8 @@ Released on June 2, 2024.
|
|
2286
2311
|
- `["fedify", "sig", "key"]`
|
2287
2312
|
- `["fedify", "sig", "owner"]`
|
2288
2313
|
|
2289
|
-
[#48]: https://github.com/
|
2290
|
-
[#52]: https://github.com/
|
2314
|
+
[#48]: https://github.com/fedify-dev/fedify/issues/48
|
2315
|
+
[#52]: https://github.com/fedify-dev/fedify/issues/52
|
2291
2316
|
|
2292
2317
|
|
2293
2318
|
Version 0.8.0
|
@@ -2383,9 +2408,9 @@ Released on May 6, 2024.
|
|
2383
2408
|
"application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""`.
|
2384
2409
|
|
2385
2410
|
[@fedify/cli]: https://jsr.io/@fedify/cli
|
2386
|
-
[releases]: https://github.com/
|
2411
|
+
[releases]: https://github.com/fedify-dev/fedify/releases
|
2387
2412
|
[FEP-8fcf]: https://w3id.org/fep/8fcf
|
2388
|
-
[#47]: https://github.com/
|
2413
|
+
[#47]: https://github.com/fedify-dev/fedify/issues/47
|
2389
2414
|
|
2390
2415
|
|
2391
2416
|
Version 0.7.0
|
@@ -2437,7 +2462,7 @@ Released on April 23, 2024.
|
|
2437
2462
|
[public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
|
2438
2463
|
[authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
|
2439
2464
|
[LogTape]: https://github.com/dahlia/logtape
|
2440
|
-
[#33]: https://github.com/
|
2465
|
+
[#33]: https://github.com/fedify-dev/fedify/issues/33
|
2441
2466
|
|
2442
2467
|
|
2443
2468
|
Version 0.6.1
|
@@ -2489,8 +2514,8 @@ Released on April 9, 2024.
|
|
2489
2514
|
- Added `OutboxErrorHandler` type.
|
2490
2515
|
|
2491
2516
|
[Hono]: https://hono.dev/
|
2492
|
-
[#25]: https://github.com/
|
2493
|
-
[#27]: https://github.com/
|
2517
|
+
[#25]: https://github.com/fedify-dev/fedify/issues/25
|
2518
|
+
[#27]: https://github.com/fedify-dev/fedify/issues/27
|
2494
2519
|
|
2495
2520
|
|
2496
2521
|
Version 0.5.2
|
@@ -2501,7 +2526,7 @@ Released on April 17, 2024.
|
|
2501
2526
|
- Fixed a bug of `new Federation()` constructor that if it is once called
|
2502
2527
|
the process will never exit. [[#39]]
|
2503
2528
|
|
2504
|
-
[#39]: https://github.com/
|
2529
|
+
[#39]: https://github.com/fedify-dev/fedify/issues/39
|
2505
2530
|
|
2506
2531
|
|
2507
2532
|
Version 0.5.1
|
@@ -2515,7 +2540,7 @@ Released on April 5, 2024.
|
|
2515
2540
|
had responded with `406 Not Acceptable` instead of `404 Not Found` when
|
2516
2541
|
the resource does not exist in the web browser. [[#34]]
|
2517
2542
|
|
2518
|
-
[#34]: https://github.com/
|
2543
|
+
[#34]: https://github.com/fedify-dev/fedify/issues/34
|
2519
2544
|
|
2520
2545
|
|
2521
2546
|
Version 0.5.0
|
@@ -2582,8 +2607,8 @@ Released on April 2, 2024.
|
|
2582
2607
|
properties were not properly displayed in Mastodon.
|
2583
2608
|
|
2584
2609
|
[@fedify/fedify]: https://www.npmjs.com/package/@fedify/fedify
|
2585
|
-
[#24]: https://github.com/
|
2586
|
-
[#29]: https://github.com/
|
2610
|
+
[#24]: https://github.com/fedify-dev/fedify/discussions/24
|
2611
|
+
[#29]: https://github.com/fedify-dev/fedify/issues/29
|
2587
2612
|
|
2588
2613
|
|
2589
2614
|
Version 0.4.0
|
@@ -2700,7 +2725,7 @@ Released on March 26, 2024.
|
|
2700
2725
|
now omit `type` property.
|
2701
2726
|
|
2702
2727
|
[Fresh]: https://fresh.deno.dev/
|
2703
|
-
[#12]: https://github.com/
|
2728
|
+
[#12]: https://github.com/fedify-dev/fedify/issues/12
|
2704
2729
|
|
2705
2730
|
|
2706
2731
|
Version 0.3.0
|
@@ -2736,7 +2761,7 @@ Released on March 15, 2024.
|
|
2736
2761
|
- Now `onNotFound`/`onNotAcceptable` options are optional for
|
2737
2762
|
`Federation.handle()` method. [[#9]]
|
2738
2763
|
|
2739
|
-
[#9]: https://github.com/
|
2764
|
+
[#9]: https://github.com/fedify-dev/fedify/issues/9
|
2740
2765
|
|
2741
2766
|
|
2742
2767
|
Version 0.2.0
|
@@ -2773,7 +2798,7 @@ Released on March 10, 2024.
|
|
2773
2798
|
|
2774
2799
|
[NodeInfo]: https://nodeinfo.diaspora.software/
|
2775
2800
|
[WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
|
2776
|
-
[#1]: https://github.com/
|
2801
|
+
[#1]: https://github.com/fedify-dev/fedify/issues/1
|
2777
2802
|
|
2778
2803
|
|
2779
2804
|
Version 0.1.0
|
package/README.md
CHANGED
@@ -42,7 +42,7 @@ resources:
|
|
42
42
|
[Learning the basics](https://fedify.dev/tutorial/basics) &
|
43
43
|
[Creating a microblog](https://fedify.dev/tutorial/microblog)
|
44
44
|
- [API reference][JSR]
|
45
|
-
- [Examples](https://github.com/
|
45
|
+
- [Examples](https://github.com/fedify-dev/fedify/tree/main/examples)
|
46
46
|
|
47
47
|
If you have any questions, suggestions, or feedback, please feel free to
|
48
48
|
join our [Matrix chat space][Matrix] or [Discord server][Discord] or
|
@@ -55,8 +55,8 @@ join our [Matrix chat space][Matrix] or [Discord server][Discord] or
|
|
55
55
|
[JSR badge]: https://jsr.io/badges/@fedify/fedify
|
56
56
|
[npm]: https://www.npmjs.com/package/@fedify/fedify
|
57
57
|
[npm badge]: https://img.shields.io/npm/v/@fedify/fedify?logo=npm
|
58
|
-
[GitHub Actions]: https://github.com/
|
59
|
-
[GitHub Actions badge]: https://github.com/
|
58
|
+
[GitHub Actions]: https://github.com/fedify-dev/fedify/actions/workflows/build.yaml
|
59
|
+
[GitHub Actions badge]: https://github.com/fedify-dev/fedify/actions/workflows/build.yaml/badge.svg
|
60
60
|
[Matrix]: https://matrix.to/#/#fedify:matrix.org
|
61
61
|
[Matrix badge]: https://img.shields.io/matrix/fedify%3Amatrix.org?logo=matrix
|
62
62
|
[Discord]: https://discord.gg/bhtwpzURwd
|
@@ -72,7 +72,7 @@ join our [Matrix chat space][Matrix] or [Discord server][Discord] or
|
|
72
72
|
[FEP-8b32]: https://w3id.org/fep/8b32
|
73
73
|
[Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
74
74
|
[NodeInfo]: https://nodeinfo.diaspora.software/
|
75
|
-
[GitHub Discussions]: https://github.com/
|
75
|
+
[GitHub Discussions]: https://github.com/fedify-dev/fedify/discussions
|
76
76
|
[#Fedify]: https://mastodon.social/tags/fedify
|
77
77
|
[Mastodon]: https://joinmastodon.org/
|
78
78
|
[Lemmy]: https://join-lemmy.org/
|
package/esm/deno.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export default {
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.6",
|
4
4
|
"license": "MIT",
|
5
5
|
"exports": {
|
6
6
|
".": "./mod.ts",
|
@@ -17,7 +17,7 @@ export default {
|
|
17
17
|
},
|
18
18
|
"imports": {
|
19
19
|
"@cfworker/json-schema": "npm:@cfworker/json-schema@^2.0.1",
|
20
|
-
"@david/which-runtime": "jsr:@david/which-runtime@^0.2.
|
20
|
+
"@david/which-runtime": "jsr:@david/which-runtime@^0.2.1",
|
21
21
|
"@deno/dnt": "jsr:@deno/dnt@0.41.2",
|
22
22
|
"@fedify/fedify": "./mod.ts",
|
23
23
|
"@fedify/fedify/federation": "./federation/mod.ts",
|
@@ -0,0 +1,10 @@
|
|
1
|
+
const inner = {
|
2
|
+
// dnt-shim-ignore
|
3
|
+
// deno-lint-ignore no-explicit-any
|
4
|
+
isMaybeNode: globalThis.process?.versions?.node != null,
|
5
|
+
// dnt-shim-ignore
|
6
|
+
// deno-lint-ignore no-explicit-any
|
7
|
+
isDeno: globalThis.Deno?.version?.deno != null,
|
8
|
+
};
|
9
|
+
export const isNode = inner.isMaybeNode && !inner.isDeno;
|
10
|
+
export const isDeno = inner.isDeno;
|
@@ -58,6 +58,7 @@ export class FederationImpl {
|
|
58
58
|
documentLoader;
|
59
59
|
contextLoader;
|
60
60
|
authenticatedDocumentLoaderFactory;
|
61
|
+
allowPrivateAddress;
|
61
62
|
userAgent;
|
62
63
|
onOutboxError;
|
63
64
|
signatureTimeWindow;
|
@@ -112,6 +113,7 @@ export class FederationImpl {
|
|
112
113
|
}
|
113
114
|
}
|
114
115
|
const { allowPrivateAddress, userAgent } = options;
|
116
|
+
this.allowPrivateAddress = allowPrivateAddress ?? false;
|
115
117
|
this.documentLoader = options.documentLoader ?? kvCache({
|
116
118
|
loader: getDocumentLoader({ allowPrivateAddress, userAgent }),
|
117
119
|
kv: options.kv,
|
@@ -1818,6 +1820,8 @@ export class ContextImpl {
|
|
1818
1820
|
contextLoader: options.contextLoader ?? this.contextLoader,
|
1819
1821
|
userAgent: options.userAgent ?? this.federation.userAgent,
|
1820
1822
|
tracerProvider: options.tracerProvider ?? this.tracerProvider,
|
1823
|
+
// @ts-ignore: `allowPrivateAddress` is not in the type definition.
|
1824
|
+
allowPrivateAddress: this.federation.allowPrivateAddress,
|
1821
1825
|
});
|
1822
1826
|
}
|
1823
1827
|
traverseCollection(collection, options = {}) {
|
package/esm/mod.js
CHANGED
@@ -25,10 +25,10 @@
|
|
25
25
|
* If you want to know more about the project, please take a look at the
|
26
26
|
* following resources:
|
27
27
|
*
|
28
|
-
* - [GitHub](https://github.com/
|
28
|
+
* - [GitHub](https://github.com/fedify-dev/fedify)
|
29
29
|
* - Tutorials: [Learning the basics](https://fedify.dev/tutorial/basics)
|
30
30
|
* & [Creating a microblog](https://fedify.dev/tutorial/microblog)
|
31
|
-
* - [Examples](https://github.com/
|
31
|
+
* - [Examples](https://github.com/fedify-dev/fedify/tree/main/examples)
|
32
32
|
*
|
33
33
|
* [ActivityPub]: https://www.w3.org/TR/activitypub/
|
34
34
|
* [fediverse]: https://en.wikipedia.org/wiki/Fediverse
|
package/esm/runtime/contexts.js
CHANGED
package/esm/runtime/docloader.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
|
+
import { isDeno, isNode } from "../deps/jsr.io/@david/which-runtime/0.2.1/mod.js";
|
2
3
|
import { HTTPHeaderLink } from "@hugoalh/http-header-link";
|
3
4
|
import { getLogger } from "@logtape/logtape";
|
4
5
|
import process from "node:process";
|
@@ -326,14 +327,12 @@ export function kvCache({ loader, kv, prefix, rules }) {
|
|
326
327
|
*/
|
327
328
|
export function getUserAgent({ software, url } = {}) {
|
328
329
|
const fedify = `Fedify/${metadata.version}`;
|
329
|
-
const runtime =
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
? `
|
334
|
-
:
|
335
|
-
? `Node.js/${process.version}`
|
336
|
-
: null;
|
330
|
+
const runtime = isDeno ? `Deno/${dntShim.Deno.version.deno}` : "Bun" in dntShim.dntGlobalThis
|
331
|
+
// @ts-ignore: `Bun` is a global variable in Bun
|
332
|
+
? `Bun/${Bun.version}`
|
333
|
+
: isNode
|
334
|
+
? `Node.js/${process.version}`
|
335
|
+
: null;
|
337
336
|
const userAgent = software == null ? [fedify] : [software, fedify];
|
338
337
|
if (runtime != null)
|
339
338
|
userAgent.push(runtime);
|
package/esm/vocab/lookup.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
4
|
-
import { delay } from "../deps/jsr.io/@std/async/1.0.
|
4
|
+
import { delay } from "../deps/jsr.io/@std/async/1.0.10/delay.js";
|
5
5
|
import metadata from "../deno.js";
|
6
6
|
import { getDocumentLoader, } from "../runtime/docloader.js";
|
7
7
|
import { lookupWebFinger } from "../webfinger/lookup.js";
|
@@ -95,6 +95,9 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
95
95
|
const jrd = await lookupWebFinger(identifier, {
|
96
96
|
userAgent: options.userAgent,
|
97
97
|
tracerProvider: options.tracerProvider,
|
98
|
+
// @ts-ignore: `allowPrivateAddress` is not in the type definition.
|
99
|
+
allowPrivateAddress: "allowPrivateAddress" in options &&
|
100
|
+
options.allowPrivateAddress,
|
98
101
|
});
|
99
102
|
if (jrd?.links == null)
|
100
103
|
return null;
|