@fedify/fedify 1.4.0-dev.586 → 1.4.0-dev.592

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
@@ -8,6 +8,26 @@ Version 1.4.0
8
8
 
9
9
  To be released.
10
10
 
11
+ - The `suppressError` option of Activity Vocabulary APIs,
12
+ `traverseCollection()` function, and `Context.traverseCollection()` method
13
+ now suppresses errors occurred JSON-LD processing.
14
+
15
+ - Added `-t`/`--traverse` option to the `fedify lookup` subcommand. [[#195]]
16
+
17
+ - Added `-S`/`--suppress-errors` option to the `fedify lookup` subcommand.
18
+ [[#195]]
19
+
20
+ [#195]: https://github.com/dahlia/fedify/issues/195
21
+
22
+
23
+ Version 1.3.2
24
+ -------------
25
+
26
+ Released on December 18, 2024.
27
+
28
+ - Fixed the default document loader to handle the `Link` header with
29
+ incorrect syntax. [[#196]]
30
+
11
31
 
12
32
  Version 1.3.1
13
33
  -------------
@@ -135,6 +155,15 @@ Released on November 30, 2024.
135
155
  [#193]: https://github.com/dahlia/fedify/issues/193
136
156
 
137
157
 
158
+ Version 1.2.10
159
+ --------------
160
+
161
+ Released on December 18, 2024.
162
+
163
+ - Fixed the default document loader to handle the `Link` header with
164
+ incorrect syntax. [[#196]]
165
+
166
+
138
167
  Version 1.2.9
139
168
  -------------
140
169
 
@@ -350,6 +379,15 @@ Released on October 31, 2024.
350
379
  [#118]: https://github.com/dahlia/fedify/issues/118
351
380
 
352
381
 
382
+ Version 1.1.10
383
+ --------------
384
+
385
+ Released on December 18, 2024.
386
+
387
+ - Fixed the default document loader to handle the `Link` header with
388
+ incorrect syntax. [[#196]]
389
+
390
+
353
391
  Version 1.1.9
354
392
  -------------
355
393
 
@@ -606,6 +644,17 @@ Released on October 20, 2024.
606
644
  [#150]: https://github.com/dahlia/fedify/issues/150
607
645
 
608
646
 
647
+ Version 1.0.13
648
+ --------------
649
+
650
+ Released on December 18, 2024.
651
+
652
+ - Fixed the default document loader to handle the `Link` header with
653
+ incorrect syntax. [[#196]]
654
+
655
+ [#196]: https://github.com/dahlia/fedify/issues/196
656
+
657
+
609
658
  Version 1.0.12
610
659
  --------------
611
660
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.4.0-dev.586+8516e739",
3
+ "version": "1.4.0-dev.592+ac4f1771",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
2
+ import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.6/hex.js";
3
3
  /**
4
4
  * Calculates the [partial follower collection digest][1].
5
5
  *
@@ -66,7 +66,18 @@ async function getRemoteDocument(url, response, fetch) {
66
66
  const linkHeader = response.headers.get("Link");
67
67
  let contextUrl = null;
68
68
  if (linkHeader != null) {
69
- const link = new HTTPHeaderLink(linkHeader);
69
+ let link;
70
+ try {
71
+ link = new HTTPHeaderLink(linkHeader);
72
+ }
73
+ catch (e) {
74
+ if (e instanceof SyntaxError) {
75
+ link = new HTTPHeaderLink();
76
+ }
77
+ else {
78
+ throw e;
79
+ }
80
+ }
70
81
  if (jsonLd) {
71
82
  const entries = link.getByRel("http://www.w3.org/ns/json-ld#context");
72
83
  for (const [uri, params] of entries) {
@@ -1,9 +1,9 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { createPublicKey } from "node:crypto";
3
3
  import { concat } from "../deps/jsr.io/@std/bytes/1.0.4/concat.js";
4
- import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
5
- import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.5/base64url.js";
6
- import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
4
+ import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.6/base64.js";
5
+ import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.6/base64url.js";
6
+ import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.6/hex.js";
7
7
  import { Integer, Sequence } from "asn1js";
8
8
  import { decode, encode } from "multibase";
9
9
  import { addPrefix, getCodeFromData, rmPrefix } from "multicodec";
package/esm/sig/http.js CHANGED
@@ -3,8 +3,8 @@ import { getLogger } from "@logtape/logtape";
3
3
  import { SpanStatusCode, trace, } from "@opentelemetry/api";
4
4
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL, } from "@opentelemetry/semantic-conventions";
5
5
  import { equals } from "../deps/jsr.io/@std/bytes/1.0.4/mod.js";
6
- import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
7
- import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
6
+ import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.6/base64.js";
7
+ import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.6/hex.js";
8
8
  import metadata from "../deno.js";
9
9
  import { CryptographicKey } from "../vocab/vocab.js";
10
10
  import { fetchKey, validateCryptoKey } from "./key.js";
package/esm/sig/ld.js CHANGED
@@ -1,8 +1,8 @@
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 { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
5
- import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
4
+ import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.6/base64.js";
5
+ import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.6/hex.js";
6
6
  // @ts-ignore TS7016
7
7
  import jsonld from "jsonld";
8
8
  import metadata from "../deno.js";
package/esm/sig/proof.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 { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
4
+ import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.6/hex.js";
5
5
  // @ts-ignore: json-canon is not typed
6
6
  import serialize from "json-canon";
7
7
  import metadata from "../deno.js";