@fedify/fedify 0.9.0-dev.183 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @fedify/fedify might be problematic. Click here for more details.

package/CHANGES.md CHANGED
@@ -6,7 +6,7 @@ Fedify changelog
6
6
  Version 0.9.0
7
7
  -------------
8
8
 
9
- To be released.
9
+ Released on June 2, 2024.
10
10
 
11
11
  - Added `Tombstone` class to Activity Vocabulary API.
12
12
 
@@ -55,6 +55,10 @@ To be released.
55
55
  - Deprecated `VerifyOptions` interface. Use `VerifyRequestOptions`
56
56
  instead.
57
57
 
58
+ - When signing an HTTP request, the `algorithm` parameter is now added to
59
+ the `Signature` header. This change improves the compatibility with
60
+ Misskey and other implementations that require the `algorithm` parameter.
61
+
58
62
  - Added more log messages using the [LogTape] library. Currently the below
59
63
  logger categories are used:
60
64
 
package/README.md CHANGED
@@ -127,7 +127,7 @@ Fedify is an ESM-only package, so you need to add `"type": "module"` to the
127
127
  {
128
128
  "type": "module",
129
129
  "dependencies": {
130
- "@fedify/fedify": "^0.8.0"
130
+ "@fedify/fedify": "^0.9.0"
131
131
  }
132
132
  }
133
133
  ~~~~
package/esm/sig/http.js CHANGED
@@ -41,7 +41,7 @@ export async function signRequest(request, privateKey, keyId) {
41
41
  .map(([name, value]) => `${name}: ${value.trim()}`).join("\n");
42
42
  // TODO: support other than RSASSA-PKCS1-v1_5:
43
43
  const signature = await dntShim.crypto.subtle.sign("RSASSA-PKCS1-v1_5", privateKey, new TextEncoder().encode(message));
44
- const sigHeader = `keyId="${keyId.href}",headers="${headerNames.join(" ")}",signature="${encodeBase64(signature)}"`;
44
+ const sigHeader = `keyId="${keyId.href}",algorithm="rsa-sha256",headers="${headerNames.join(" ")}",signature="${encodeBase64(signature)}"`;
45
45
  headers.set("Signature", sigHeader);
46
46
  return new Request(request, {
47
47
  headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.9.0-dev.183+c5893c1a",
3
+ "version": "0.9.0",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",