@atproto/oauth-client 0.7.0-next.0 → 0.7.1
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,32 +1,38 @@
|
|
|
1
1
|
# @atproto/oauth-client
|
|
2
2
|
|
|
3
|
-
## 0.7.
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4954](https://github.com/bluesky-social/atproto/pull/4954) [`e6c6343`](https://github.com/bluesky-social/atproto/commit/e6c6343bd3727455bd0da12300bb4929a944e4f1) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Allow custom `RuntimeImplementation` to return a `SharedArrayBuffer`-backed `Uint8Array` from the `digest()` method. Input to this function will always be `Uint8Array<ArrayBuffer>`.
|
|
8
|
+
|
|
9
|
+
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
|
7
|
-
- [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`
|
|
13
|
+
- [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Drop support for Node.js 18 and 20. Node.js 22 is now the minimum supported version. Docker images now use Node.js 24.
|
|
8
14
|
|
|
9
|
-
- [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`
|
|
15
|
+
- [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Convert to pure ESM. All packages now ship `"type": "module"` with ES module output and Node16 module resolution.
|
|
10
16
|
|
|
11
17
|
Node.js 22's `require()` compatibility layer can still load these packages in CommonJS code.
|
|
12
18
|
|
|
13
|
-
- [
|
|
19
|
+
- [`affb50c`](https://github.com/bluesky-social/atproto/commit/affb50c040b497a12631df99a6310f8e78cab557) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** `RuntimeImplementation.digest(data, alg)` now takes `data: Uint8Array<ArrayBuffer>` rather than `Uint8Array`. This only affects consumers who implement `RuntimeImplementation` themselves rather than using one of the prebuilt impls (`@atproto/oauth-client-browser`, `@atproto/oauth-client-node`, `@atproto/oauth-client-expo`). Most callers can pass values through unchanged; in the rare case of a `SharedArrayBuffer`-backed `Uint8Array`, copy into a regular `Uint8Array` first.
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
- [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705) Thanks [@devinivy](https://github.com/devinivy)! - Build with TypeScript 6.0.
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
- Updated dependencies [[`
|
|
20
|
-
- @atproto/did@0.4.0
|
|
21
|
-
- @atproto/jwk@0.7.0
|
|
22
|
-
- @atproto/oauth-types@0.7.0
|
|
23
|
-
- @atproto/xrpc@0.8.0
|
|
24
|
-
- @atproto-labs/did-resolver@0.3.0
|
|
25
|
-
- @atproto-labs/fetch@0.3.0
|
|
26
|
-
- @atproto-labs/handle-resolver@0.4.0
|
|
27
|
-
- @atproto-labs/identity-resolver@0.4.0
|
|
28
|
-
- @atproto-labs/simple-store@0.4.0
|
|
29
|
-
- @atproto-labs/simple-store-memory@0.2.0
|
|
25
|
+
- Updated dependencies [[`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c), [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9), [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705)]:
|
|
26
|
+
- @atproto/did@0.4.0
|
|
27
|
+
- @atproto/jwk@0.7.0
|
|
28
|
+
- @atproto/oauth-types@0.7.0
|
|
29
|
+
- @atproto/xrpc@0.8.0
|
|
30
|
+
- @atproto-labs/did-resolver@0.3.0
|
|
31
|
+
- @atproto-labs/fetch@0.3.0
|
|
32
|
+
- @atproto-labs/handle-resolver@0.4.0
|
|
33
|
+
- @atproto-labs/identity-resolver@0.4.0
|
|
34
|
+
- @atproto-labs/simple-store@0.4.0
|
|
35
|
+
- @atproto-labs/simple-store-memory@0.2.0
|
|
30
36
|
|
|
31
37
|
## 0.6.1
|
|
32
38
|
|
|
@@ -6,7 +6,7 @@ export type RuntimeRandomValues = (length: number) => Awaitable<Uint8Array>;
|
|
|
6
6
|
export type DigestAlgorithm = {
|
|
7
7
|
name: 'sha256' | 'sha384' | 'sha512';
|
|
8
8
|
};
|
|
9
|
-
export type RuntimeDigest = (data: Uint8Array<ArrayBuffer>, alg: DigestAlgorithm) => Awaitable<Uint8Array
|
|
9
|
+
export type RuntimeDigest = (data: Uint8Array<ArrayBuffer>, alg: DigestAlgorithm) => Awaitable<Uint8Array>;
|
|
10
10
|
export type RuntimeLock = <T>(name: string, fn: () => Awaitable<T>) => Awaitable<T>;
|
|
11
11
|
export interface RuntimeImplementation {
|
|
12
12
|
createKey: RuntimeKeyFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-implementation.d.ts","sourceRoot":"","sources":["../src/runtime-implementation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,YAAY,EAAE,GAAG,EAAE,CAAA;AACnB,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;AAE1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,UAAU,CAAC,CAAA;AAE3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|
1
|
-
{"version":3,"file":"runtime-implementation.js","sourceRoot":"","sources":["../src/runtime-implementation.ts"],"names":[],"mappings":"","sourcesContent":["import { Key } from '@atproto/jwk'\nimport { Awaitable } from './util.js'\n\nexport type { Key }\nexport type RuntimeKeyFactory = (algs: string[]) => Key | PromiseLike<Key>\n\nexport type RuntimeRandomValues = (length: number) => Awaitable<Uint8Array>\n\nexport type DigestAlgorithm = { name: 'sha256' | 'sha384' | 'sha512' }\nexport type RuntimeDigest = (\n data: Uint8Array<ArrayBuffer>,\n alg: DigestAlgorithm,\n) => Awaitable<Uint8Array
|
|
1
|
+
{"version":3,"file":"runtime-implementation.js","sourceRoot":"","sources":["../src/runtime-implementation.ts"],"names":[],"mappings":"","sourcesContent":["import { Key } from '@atproto/jwk'\nimport { Awaitable } from './util.js'\n\nexport type { Key }\nexport type RuntimeKeyFactory = (algs: string[]) => Key | PromiseLike<Key>\n\nexport type RuntimeRandomValues = (length: number) => Awaitable<Uint8Array>\n\nexport type DigestAlgorithm = { name: 'sha256' | 'sha384' | 'sha512' }\nexport type RuntimeDigest = (\n data: Uint8Array<ArrayBuffer>,\n alg: DigestAlgorithm,\n) => Awaitable<Uint8Array>\n\nexport type RuntimeLock = <T>(\n name: string,\n fn: () => Awaitable<T>,\n) => Awaitable<T>\n\nexport interface RuntimeImplementation {\n createKey: RuntimeKeyFactory\n getRandomValues: RuntimeRandomValues\n digest: RuntimeDigest\n requestLock?: RuntimeLock\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/oauth-client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"core-js": "^3",
|
|
30
30
|
"multiformats": "^13.0.0",
|
|
31
31
|
"zod": "^3.23.8",
|
|
32
|
-
"@atproto-labs/did-resolver": "^0.3.0
|
|
33
|
-
"@atproto-labs/
|
|
34
|
-
"@atproto-labs/
|
|
35
|
-
"@atproto-labs/
|
|
36
|
-
"@atproto-labs/
|
|
37
|
-
"@atproto-labs/simple-store-memory": "^0.2.0
|
|
38
|
-
"@atproto/did": "^0.4.0
|
|
39
|
-
"@atproto/
|
|
40
|
-
"@atproto/
|
|
41
|
-
"@atproto/xrpc": "^0.8.0
|
|
32
|
+
"@atproto-labs/did-resolver": "^0.3.0",
|
|
33
|
+
"@atproto-labs/fetch": "^0.3.0",
|
|
34
|
+
"@atproto-labs/handle-resolver": "^0.4.0",
|
|
35
|
+
"@atproto-labs/identity-resolver": "^0.4.0",
|
|
36
|
+
"@atproto-labs/simple-store": "^0.4.0",
|
|
37
|
+
"@atproto-labs/simple-store-memory": "^0.2.0",
|
|
38
|
+
"@atproto/did": "^0.4.0",
|
|
39
|
+
"@atproto/jwk": "^0.7.0",
|
|
40
|
+
"@atproto/oauth-types": "^0.7.0",
|
|
41
|
+
"@atproto/xrpc": "^0.8.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "^6.0.3"
|
|
@@ -10,7 +10,7 @@ export type DigestAlgorithm = { name: 'sha256' | 'sha384' | 'sha512' }
|
|
|
10
10
|
export type RuntimeDigest = (
|
|
11
11
|
data: Uint8Array<ArrayBuffer>,
|
|
12
12
|
alg: DigestAlgorithm,
|
|
13
|
-
) => Awaitable<Uint8Array
|
|
13
|
+
) => Awaitable<Uint8Array>
|
|
14
14
|
|
|
15
15
|
export type RuntimeLock = <T>(
|
|
16
16
|
name: string,
|