@fedify/fedify 1.3.5 → 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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  Version 1.3.5
7
18
  -------------
8
19
 
@@ -174,14 +185,14 @@ Released on November 30, 2024.
174
185
 
175
186
 
176
187
  [SvelteKit]: https://kit.svelte.dev/
177
- [#162]: https://github.com/dahlia/fedify/issues/162
178
- [#170]: https://github.com/dahlia/fedify/issues/170
179
- [#171]: https://github.com/dahlia/fedify/issues/171
180
- [#173]: https://github.com/dahlia/fedify/issues/173
181
- [#183]: https://github.com/dahlia/fedify/pull/183
182
- [#186]: https://github.com/dahlia/fedify/pull/186
183
- [#192]: https://github.com/dahlia/fedify/issues/192
184
- [#193]: https://github.com/dahlia/fedify/issues/193
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
185
196
 
186
197
 
187
198
  Version 1.2.11
@@ -237,8 +248,8 @@ Released on November 23, 2024.
237
248
  - Fixed text overflow of the `fedify inbox` command's web log view.
238
249
  [[#180], [#188] by Lim Kyunghee]
239
250
 
240
- [#177]: https://github.com/dahlia/fedify/issues/177
241
- [#181]: https://github.com/dahlia/fedify/pull/181
251
+ [#177]: https://github.com/fedify-dev/fedify/issues/177
252
+ [#181]: https://github.com/fedify-dev/fedify/pull/181
242
253
 
243
254
 
244
255
  Version 1.2.7
@@ -362,7 +373,7 @@ Released on November 1, 2024.
362
373
  - Support the `fedify` command on Windows on ARM64 via x64 emulation.
363
374
  [[#160]]
364
375
 
365
- [#160]: https://github.com/dahlia/fedify/issues/160
376
+ [#160]: https://github.com/fedify-dev/fedify/issues/160
366
377
 
367
378
 
368
379
  Version 1.2.1
@@ -428,7 +439,7 @@ Released on October 31, 2024.
428
439
  - `["fedify", "nodeinfo", "client"]`
429
440
 
430
441
  [implicit contexts]: https://logtape.org/manual/contexts#implicit-contexts
431
- [#118]: https://github.com/dahlia/fedify/issues/118
442
+ [#118]: https://github.com/fedify-dev/fedify/issues/118
432
443
 
433
444
 
434
445
  Version 1.1.11
@@ -482,10 +493,10 @@ Released on November 23, 2024.
482
493
  - Fixed text overflow of the `fedify inbox` command's web log view.
483
494
  [[#180], [#188] by Lim Kyunghee]
484
495
 
485
- [#178]: https://github.com/dahlia/fedify/issues/178
486
- [#180]: https://github.com/dahlia/fedify/issues/180
487
- [#185]: https://github.com/dahlia/fedify/pull/185
488
- [#188]: https://github.com/dahlia/fedify/pull/188
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
489
500
 
490
501
 
491
502
  Version 1.1.7
@@ -715,8 +726,8 @@ Released on October 20, 2024.
715
726
  [FEP-c0e0]: https://w3id.org/fep/c0e0
716
727
  [FEP-9091]: https://w3id.org/fep/9091
717
728
  [ActivityPub and HTTP Signatures]: https://swicg.github.io/activitypub-http-signature/
718
- [#146]: https://github.com/dahlia/fedify/issues/146
719
- [#150]: https://github.com/dahlia/fedify/issues/150
729
+ [#146]: https://github.com/fedify-dev/fedify/issues/146
730
+ [#150]: https://github.com/fedify-dev/fedify/issues/150
720
731
 
721
732
 
722
733
  Version 1.0.14
@@ -741,7 +752,7 @@ Released on January 21, 2025.
741
752
  could lead to a SSRF attack. Now it follows only the public network
742
753
  addresses.
743
754
 
744
- [CVE-2025-23221]: https://github.com/dahlia/fedify/security/advisories/GHSA-c59p-wq67-24wx
755
+ [CVE-2025-23221]: https://github.com/fedify-dev/fedify/security/advisories/GHSA-c59p-wq67-24wx
745
756
 
746
757
 
747
758
  Version 1.0.13
@@ -752,7 +763,7 @@ Released on December 18, 2024.
752
763
  - Fixed the default document loader to handle the `Link` header with
753
764
  incorrect syntax. [[#196]]
754
765
 
755
- [#196]: https://github.com/dahlia/fedify/issues/196
766
+ [#196]: https://github.com/fedify-dev/fedify/issues/196
756
767
 
757
768
 
758
769
  Version 1.0.12
@@ -1109,9 +1120,9 @@ Released on September 26, 2024.
1109
1120
  - `["fedify", "sig", "ld"]`
1110
1121
 
1111
1122
  [Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
1112
- [#106]: https://github.com/dahlia/fedify/issues/106
1113
- [#135]: https://github.com/dahlia/fedify/issues/135
1114
- [#137]: https://github.com/dahlia/fedify/issues/137
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
1115
1126
 
1116
1127
 
1117
1128
  Version 0.15.9
@@ -1122,7 +1133,7 @@ Released on November 22, 2024.
1122
1133
  - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
1123
1134
  when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
1124
1135
 
1125
- [#166]: https://github.com/dahlia/fedify/issues/166
1136
+ [#166]: https://github.com/fedify-dev/fedify/issues/166
1126
1137
 
1127
1138
 
1128
1139
  Version 0.15.8
@@ -1181,7 +1192,7 @@ Released on November 19, 2024.
1181
1192
  methods is now `OrderedCollection | OrderedCollectionPage | null` (was
1182
1193
  `OrderedCollection | null`).
1183
1194
 
1184
- [#165]: https://github.com/dahlia/fedify/issues/165
1195
+ [#165]: https://github.com/fedify-dev/fedify/issues/165
1185
1196
 
1186
1197
 
1187
1198
  Version 0.15.7
@@ -1202,7 +1213,7 @@ Released on November 14, 2024.
1202
1213
  "inbox"]` logger category and responds with a `500 Internal Server
1203
1214
  Error`.
1204
1215
 
1205
- [#159]: https://github.com/dahlia/fedify/issues/159
1216
+ [#159]: https://github.com/fedify-dev/fedify/issues/159
1206
1217
 
1207
1218
 
1208
1219
  Version 0.15.6
@@ -1236,7 +1247,7 @@ Released on October 27, 2024.
1236
1247
  - The `fetchDocumentLoader()` function now preloads the following JSON-LD
1237
1248
  context: <http://schema.org/>.
1238
1249
 
1239
- [#155]: https://github.com/dahlia/fedify/pull/155
1250
+ [#155]: https://github.com/fedify-dev/fedify/pull/155
1240
1251
 
1241
1252
 
1242
1253
  Version 0.15.3
@@ -1265,7 +1276,7 @@ Released on September 15, 2024.
1265
1276
  - Fixed a bug where even if the `ActorCallbackSetters.mapHandle()` method was
1266
1277
  called, a WebFinger username was used as an actor's handle. [[#136]]
1267
1278
 
1268
- [#136]: https://github.com/dahlia/fedify/pull/136
1279
+ [#136]: https://github.com/fedify-dev/fedify/pull/136
1269
1280
 
1270
1281
 
1271
1282
  Version 0.15.0
@@ -1470,8 +1481,8 @@ Released on August 27, 2024.
1470
1481
  Bun, and fills the *deno.json* file with the default `compilerOptions` on
1471
1482
  Deno.
1472
1483
 
1473
- [#114]: https://github.com/dahlia/fedify/issues/114
1474
- [#115]: https://github.com/dahlia/fedify/issues/115
1484
+ [#114]: https://github.com/fedify-dev/fedify/issues/114
1485
+ [#115]: https://github.com/fedify-dev/fedify/issues/115
1475
1486
 
1476
1487
 
1477
1488
  Version 0.13.5
@@ -1492,7 +1503,7 @@ Released on September 1, 2024.
1492
1503
  - Fixed `fedify inbox` command where it had ignored `-a`/`--accept-follow`
1493
1504
  options when no `-f`/`--follow` option was provided. [[#132]]
1494
1505
 
1495
- [#132]: https://github.com/dahlia/fedify/issues/132
1506
+ [#132]: https://github.com/fedify-dev/fedify/issues/132
1496
1507
 
1497
1508
 
1498
1509
  Version 0.13.3
@@ -1504,7 +1515,7 @@ Released on August 30, 2024.
1504
1515
  been verified by their inbox. [[#125]]
1505
1516
 
1506
1517
  [Threads]: https://www.threads.net/
1507
- [#125]: https://github.com/dahlia/fedify/issues/125
1518
+ [#125]: https://github.com/fedify-dev/fedify/issues/125
1508
1519
 
1509
1520
 
1510
1521
  Version 0.13.2
@@ -1515,7 +1526,7 @@ Released on August 29, 2024.
1515
1526
  - Fixed `fedify inbox` command that had not been able to parse activities
1516
1527
  even if they are valid JSON-LD. [[#126]]
1517
1528
 
1518
- [#126]: https://github.com/dahlia/fedify/issues/126
1529
+ [#126]: https://github.com/fedify-dev/fedify/issues/126
1519
1530
 
1520
1531
 
1521
1532
  Version 0.13.1
@@ -1596,8 +1607,8 @@ Released on August 7, 2024.
1596
1607
 
1597
1608
  - `["fedify", "webfinger", "server"]`
1598
1609
 
1599
- [#69]: https://github.com/dahlia/fedify/issues/69
1600
- [#110]: https://github.com/dahlia/fedify/issues/110
1610
+ [#69]: https://github.com/fedify-dev/fedify/issues/69
1611
+ [#110]: https://github.com/fedify-dev/fedify/issues/110
1601
1612
  [Express]: https://expressjs.com/
1602
1613
  [Nitro]: https://nitro.unjs.io/
1603
1614
 
@@ -1768,16 +1779,16 @@ Released on July 24, 2024.
1768
1779
  - `["fedify", "federation", "queue"]`
1769
1780
 
1770
1781
  [@fedify/cli]: https://www.npmjs.com/package/@fedify/cli
1771
- [#6]: https://github.com/dahlia/fedify/issues/6
1772
- [#53]: https://github.com/dahlia/fedify/issues/53
1773
- [#66]: https://github.com/dahlia/fedify/issues/66
1774
- [#70]: https://github.com/dahlia/fedify/issues/70
1775
- [#81]: https://github.com/dahlia/fedify/issues/81
1776
- [#85]: https://github.com/dahlia/fedify/issues/85
1777
- [#92]: https://github.com/dahlia/fedify/pull/92
1778
- [#104]: https://github.com/dahlia/fedify/issues/104
1779
- [#105]: https://github.com/dahlia/fedify/issues/105
1780
- [#107]: https://github.com/dahlia/fedify/issues/107
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
1781
1792
 
1782
1793
 
1783
1794
  Version 0.11.3
@@ -1789,7 +1800,7 @@ Released on July 15, 2024.
1789
1800
  `Federation.setInboxListeners()` had caused a `RouterError` to be
1790
1801
  thrown even if the paths match. [[#101] by Fabien O'Carroll]
1791
1802
 
1792
- [#101]: https://github.com/dahlia/fedify/pull/101
1803
+ [#101]: https://github.com/fedify-dev/fedify/pull/101
1793
1804
 
1794
1805
 
1795
1806
  Version 0.11.2
@@ -1997,12 +2008,12 @@ Released on June 29, 2024.
1997
2008
  for Object Integrity Proofs. [[FEP-8b32], [#54]]
1998
2009
 
1999
2010
  [eddsa-jcs-2022]: https://codeberg.org/fediverse/fep/pulls/338
2000
- [#71]: https://github.com/dahlia/fedify/issues/71
2001
- [#74]: https://github.com/dahlia/fedify/issues/74
2002
- [#76]: https://github.com/dahlia/fedify/pull/76
2003
- [#78]: https://github.com/dahlia/fedify/issues/78
2004
- [#79]: https://github.com/dahlia/fedify/issues/79
2005
- [#80]: https://github.com/dahlia/fedify/pull/80
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
2006
2017
 
2007
2018
 
2008
2019
  Version 0.10.2
@@ -2183,10 +2194,10 @@ is now distributed under the [MIT License] to encourage wider adoption.
2183
2194
  - `["fedify", "vocab", "lookup"]`
2184
2195
  - `["fedify", "webfinger", "lookup"]`
2185
2196
 
2186
- [#54]: https://github.com/dahlia/fedify/issues/54
2187
- [#55]: https://github.com/dahlia/fedify/issues/55
2188
- [#65]: https://github.com/dahlia/fedify/issues/65
2189
- [#68]: https://github.com/dahlia/fedify/pull/68
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
2190
2201
  [AGPL 3.0]: https://www.gnu.org/licenses/agpl-3.0.en.html
2191
2202
  [MIT License]: https://minhee.mit-license.org/
2192
2203
  [FEP-521a]: https://w3id.org/fep/521a
@@ -2223,7 +2234,7 @@ Released on July 5, 2024.
2223
2234
  loader that throws an error when the given URL is not an HTTP or HTTPS
2224
2235
  URL or refers to a private network address.
2225
2236
 
2226
- [CVE-2024-39687]: https://github.com/dahlia/fedify/security/advisories/GHSA-p9cg-vqcc-grcx
2237
+ [CVE-2024-39687]: https://github.com/fedify-dev/fedify/security/advisories/GHSA-p9cg-vqcc-grcx
2227
2238
 
2228
2239
 
2229
2240
  Version 0.9.1
@@ -2300,8 +2311,8 @@ Released on June 2, 2024.
2300
2311
  - `["fedify", "sig", "key"]`
2301
2312
  - `["fedify", "sig", "owner"]`
2302
2313
 
2303
- [#48]: https://github.com/dahlia/fedify/issues/48
2304
- [#52]: https://github.com/dahlia/fedify/issues/52
2314
+ [#48]: https://github.com/fedify-dev/fedify/issues/48
2315
+ [#52]: https://github.com/fedify-dev/fedify/issues/52
2305
2316
 
2306
2317
 
2307
2318
  Version 0.8.0
@@ -2397,9 +2408,9 @@ Released on May 6, 2024.
2397
2408
  "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""`.
2398
2409
 
2399
2410
  [@fedify/cli]: https://jsr.io/@fedify/cli
2400
- [releases]: https://github.com/dahlia/fedify/releases
2411
+ [releases]: https://github.com/fedify-dev/fedify/releases
2401
2412
  [FEP-8fcf]: https://w3id.org/fep/8fcf
2402
- [#47]: https://github.com/dahlia/fedify/issues/47
2413
+ [#47]: https://github.com/fedify-dev/fedify/issues/47
2403
2414
 
2404
2415
 
2405
2416
  Version 0.7.0
@@ -2451,7 +2462,7 @@ Released on April 23, 2024.
2451
2462
  [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
2452
2463
  [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
2453
2464
  [LogTape]: https://github.com/dahlia/logtape
2454
- [#33]: https://github.com/dahlia/fedify/issues/33
2465
+ [#33]: https://github.com/fedify-dev/fedify/issues/33
2455
2466
 
2456
2467
 
2457
2468
  Version 0.6.1
@@ -2503,8 +2514,8 @@ Released on April 9, 2024.
2503
2514
  - Added `OutboxErrorHandler` type.
2504
2515
 
2505
2516
  [Hono]: https://hono.dev/
2506
- [#25]: https://github.com/dahlia/fedify/issues/25
2507
- [#27]: https://github.com/dahlia/fedify/issues/27
2517
+ [#25]: https://github.com/fedify-dev/fedify/issues/25
2518
+ [#27]: https://github.com/fedify-dev/fedify/issues/27
2508
2519
 
2509
2520
 
2510
2521
  Version 0.5.2
@@ -2515,7 +2526,7 @@ Released on April 17, 2024.
2515
2526
  - Fixed a bug of `new Federation()` constructor that if it is once called
2516
2527
  the process will never exit. [[#39]]
2517
2528
 
2518
- [#39]: https://github.com/dahlia/fedify/issues/39
2529
+ [#39]: https://github.com/fedify-dev/fedify/issues/39
2519
2530
 
2520
2531
 
2521
2532
  Version 0.5.1
@@ -2529,7 +2540,7 @@ Released on April 5, 2024.
2529
2540
  had responded with `406 Not Acceptable` instead of `404 Not Found` when
2530
2541
  the resource does not exist in the web browser. [[#34]]
2531
2542
 
2532
- [#34]: https://github.com/dahlia/fedify/issues/34
2543
+ [#34]: https://github.com/fedify-dev/fedify/issues/34
2533
2544
 
2534
2545
 
2535
2546
  Version 0.5.0
@@ -2596,8 +2607,8 @@ Released on April 2, 2024.
2596
2607
  properties were not properly displayed in Mastodon.
2597
2608
 
2598
2609
  [@fedify/fedify]: https://www.npmjs.com/package/@fedify/fedify
2599
- [#24]: https://github.com/dahlia/fedify/discussions/24
2600
- [#29]: https://github.com/dahlia/fedify/issues/29
2610
+ [#24]: https://github.com/fedify-dev/fedify/discussions/24
2611
+ [#29]: https://github.com/fedify-dev/fedify/issues/29
2601
2612
 
2602
2613
 
2603
2614
  Version 0.4.0
@@ -2714,7 +2725,7 @@ Released on March 26, 2024.
2714
2725
  now omit `type` property.
2715
2726
 
2716
2727
  [Fresh]: https://fresh.deno.dev/
2717
- [#12]: https://github.com/dahlia/fedify/issues/12
2728
+ [#12]: https://github.com/fedify-dev/fedify/issues/12
2718
2729
 
2719
2730
 
2720
2731
  Version 0.3.0
@@ -2750,7 +2761,7 @@ Released on March 15, 2024.
2750
2761
  - Now `onNotFound`/`onNotAcceptable` options are optional for
2751
2762
  `Federation.handle()` method. [[#9]]
2752
2763
 
2753
- [#9]: https://github.com/dahlia/fedify/issues/9
2764
+ [#9]: https://github.com/fedify-dev/fedify/issues/9
2754
2765
 
2755
2766
 
2756
2767
  Version 0.2.0
@@ -2787,7 +2798,7 @@ Released on March 10, 2024.
2787
2798
 
2788
2799
  [NodeInfo]: https://nodeinfo.diaspora.software/
2789
2800
  [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
2790
- [#1]: https://github.com/dahlia/fedify/issues/1
2801
+ [#1]: https://github.com/fedify-dev/fedify/issues/1
2791
2802
 
2792
2803
 
2793
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/dahlia/fedify/tree/main/examples)
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/dahlia/fedify/actions/workflows/build.yaml
59
- [GitHub Actions badge]: https://github.com/dahlia/fedify/actions/workflows/build.yaml/badge.svg
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/dahlia/fedify/discussions
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.5",
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.0",
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;
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  /** Options for {@linkcode delay}. */
4
4
  import * as dntShim from "../../../../../_dnt.shims.js";
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/dahlia/fedify)
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/dahlia/fedify/tree/main/examples)
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
@@ -1,5 +1,5 @@
1
1
  // Preloaded context documents
2
- // https://github.com/dahlia/fedify/issues/74
2
+ // https://github.com/fedify-dev/fedify/issues/74
3
3
  // cSpell: disable
4
4
  const preloadedContexts = {
5
5
  "https://www.w3.org/ns/activitystreams": {
@@ -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 = "Deno" in dntShim.dntGlobalThis
330
- ? `Deno/${dntShim.Deno.version.deno}`
331
- : "Bun" in dntShim.dntGlobalThis
332
- // @ts-ignore: `Bun` is a global variable in Bun
333
- ? `Bun/${Bun.version}`
334
- : "process" in dntShim.dntGlobalThis
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);
@@ -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.9/delay.js";
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";