@fedify/fedify 0.14.0-dev.327 → 0.14.0-dev.328

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -8,6 +8,15 @@ Version 0.14.0
8
8
 
9
9
  To be released.
10
10
 
11
+ - Improved the performance of `Object.toJsonLd()` method.
12
+
13
+ - Added `format` option to `Object.toJsonLd()` method.
14
+ - Deprecated `expand` option of `Object.toJsonLd()` method.
15
+ Use `format: "expand"` option instead.
16
+ - The `context` option of `Object.toJsonLd()` method is now only
17
+ applicable to `format: "compact"`. Otherwise, it throws
18
+ a `TypeErrror`.
19
+
11
20
 
12
21
  Version 0.13.0
13
22
  --------------
package/esm/sig/proof.js CHANGED
@@ -23,6 +23,7 @@ export async function createProof(object, privateKey, keyId, { contextLoader, co
23
23
  }
24
24
  const objectWithoutProofs = object.clone({ proofs: [] });
25
25
  const compactMsg = await objectWithoutProofs.toJsonLd({
26
+ format: "compact",
26
27
  contextLoader,
27
28
  context,
28
29
  });