@atproto/xrpc-server 0.4.4-next.0 → 0.5.0

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/CHANGELOG.md CHANGED
@@ -1,15 +1,26 @@
1
1
  # @atproto/xrpc-server
2
2
 
3
- ## 0.4.4-next.0
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2169](https://github.com/bluesky-social/atproto/pull/2169) [`f689bd51a`](https://github.com/bluesky-social/atproto/commit/f689bd51a2f4e02d4eca40eb2568a1fcb95494e9) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Build system rework, stop bundling dependencies.
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Overhaul of package builds, no longer bundling deps.
11
+ - Updated dependencies [[`f689bd51a`](https://github.com/bluesky-social/atproto/commit/f689bd51a2f4e02d4eca40eb2568a1fcb95494e9)]:
12
+ - @atproto/lexicon@0.4.0
13
+ - @atproto/common@0.4.0
14
+ - @atproto/crypto@0.4.0
15
+
16
+ ## 0.4.4
17
+
18
+ ### Patch Changes
8
19
 
9
20
  - Updated dependencies []:
10
- - @atproto/lexicon@0.3.3-next.0
11
- - @atproto/common@0.3.4-next.0
12
- - @atproto/crypto@0.3.1-next.0
21
+ - @atproto/common@0.3.4
22
+ - @atproto/lexicon@0.3.3
23
+ - @atproto/crypto@0.3.0
13
24
 
14
25
  ## 0.4.3
15
26
 
package/dist/auth.d.ts CHANGED
@@ -13,6 +13,6 @@ export declare const createServiceAuthHeaders: (params: ServiceJwtParams) => Pro
13
13
  authorization: string;
14
14
  };
15
15
  }>;
16
- export declare const verifyJwt: (jwtStr: string, ownDid: string | null, getSigningKey: (did: string, forceRefresh: boolean) => Promise<string>) => Promise<ServiceJwtPayload>;
16
+ export declare const verifyJwt: (jwtStr: string, ownDid: string | null, getSigningKey: (iss: string, forceRefresh: boolean) => Promise<string>) => Promise<ServiceJwtPayload>;
17
17
  export {};
18
18
  //# sourceMappingURL=auth.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/xrpc-server",
3
- "version": "0.4.4-next.0",
3
+ "version": "0.5.0",
4
4
  "license": "MIT",
5
5
  "description": "atproto HTTP API (XRPC) server library",
6
6
  "keywords": [
@@ -24,9 +24,9 @@
24
24
  "uint8arrays": "3.0.0",
25
25
  "ws": "^8.12.0",
26
26
  "zod": "^3.21.4",
27
- "@atproto/common": "^0.3.4-next.0",
28
- "@atproto/lexicon": "^0.3.3-next.0",
29
- "@atproto/crypto": "^0.3.1-next.0"
27
+ "@atproto/common": "^0.4.0",
28
+ "@atproto/crypto": "^0.4.0",
29
+ "@atproto/lexicon": "^0.4.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/express": "^4.17.13",
@@ -38,8 +38,8 @@
38
38
  "jest": "^28.1.2",
39
39
  "key-encoder": "^2.0.3",
40
40
  "multiformats": "^9.9.0",
41
- "@atproto/crypto": "^0.3.1-next.0",
42
- "@atproto/xrpc": "^0.4.3-next.0"
41
+ "@atproto/crypto": "^0.4.0",
42
+ "@atproto/xrpc": "^0.5.0"
43
43
  },
44
44
  "scripts": {
45
45
  "test": "jest",
package/src/auth.ts CHANGED
@@ -48,7 +48,7 @@ const jsonToB64Url = (json: Record<string, unknown>): string => {
48
48
  export const verifyJwt = async (
49
49
  jwtStr: string,
50
50
  ownDid: string | null, // null indicates to skip the audience check
51
- getSigningKey: (did: string, forceRefresh: boolean) => Promise<string>,
51
+ getSigningKey: (iss: string, forceRefresh: boolean) => Promise<string>,
52
52
  ): Promise<ServiceJwtPayload> => {
53
53
  const parts = jwtStr.split('.')
54
54
  if (parts.length !== 3) {