@atproto/xrpc-server 0.11.0-next.0 → 0.11.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 +21 -16
- package/jest.config.cjs +9 -2
- package/package.json +14 -14
- package/tests/auth.test.ts +4 -4
- package/tsconfig.build.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
# @atproto/xrpc-server
|
|
2
2
|
|
|
3
|
-
## 0.11.0
|
|
3
|
+
## 0.11.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`
|
|
7
|
+
- [#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
8
|
|
|
9
|
-
- [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`
|
|
9
|
+
- [#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
10
|
|
|
11
11
|
Node.js 22's `require()` compatibility layer can still load these packages in CommonJS code.
|
|
12
12
|
|
|
13
|
-
- [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`
|
|
13
|
+
- [#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.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`affb50c`](https://github.com/bluesky-social/atproto/commit/affb50c040b497a12631df99a6310f8e78cab557), [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c), [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9), [`affb50c`](https://github.com/bluesky-social/atproto/commit/affb50c040b497a12631df99a6310f8e78cab557), [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705)]:
|
|
18
|
+
- @atproto/common@0.6.0
|
|
19
|
+
- @atproto/crypto@0.5.0
|
|
20
|
+
- @atproto/lex-cbor@0.1.0
|
|
21
|
+
- @atproto/lex-client@0.1.0
|
|
22
|
+
- @atproto/lex-data@0.1.0
|
|
23
|
+
- @atproto/lex-json@0.1.0
|
|
24
|
+
- @atproto/lex-schema@0.1.0
|
|
25
|
+
- @atproto/lexicon@0.7.0
|
|
26
|
+
- @atproto/ws-client@0.1.0
|
|
27
|
+
- @atproto/xrpc@0.8.0
|
|
28
|
+
|
|
29
|
+
## 0.10.22
|
|
16
30
|
|
|
17
31
|
### Patch Changes
|
|
18
32
|
|
|
19
|
-
- Updated dependencies [[`
|
|
20
|
-
- @atproto/
|
|
21
|
-
- @atproto/crypto@0.5.0-next.0
|
|
22
|
-
- @atproto/lex-cbor@0.1.0-next.0
|
|
23
|
-
- @atproto/lex-client@0.1.0-next.0
|
|
24
|
-
- @atproto/lex-data@0.1.0-next.0
|
|
25
|
-
- @atproto/lex-json@0.1.0-next.0
|
|
26
|
-
- @atproto/lex-schema@0.1.0-next.0
|
|
27
|
-
- @atproto/lexicon@0.7.0-next.0
|
|
28
|
-
- @atproto/ws-client@0.1.0-next.0
|
|
29
|
-
- @atproto/xrpc@0.8.0-next.0
|
|
33
|
+
- Updated dependencies [[`d8b2374`](https://github.com/bluesky-social/atproto/commit/d8b2374e1592d1dec65a33439791bc141f02397a)]:
|
|
34
|
+
- @atproto/lex-client@0.0.22
|
|
30
35
|
|
|
31
36
|
## 0.10.21
|
|
32
37
|
|
package/jest.config.cjs
CHANGED
|
@@ -4,11 +4,18 @@ module.exports = {
|
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.(t|j)s$': [
|
|
6
6
|
'@swc/jest',
|
|
7
|
-
{
|
|
7
|
+
{
|
|
8
|
+
jsc: {
|
|
9
|
+
parser: { syntax: 'typescript', importAttributes: true },
|
|
10
|
+
experimental: { keepImportAttributes: true },
|
|
11
|
+
transform: {},
|
|
12
|
+
},
|
|
13
|
+
module: { type: 'es6' },
|
|
14
|
+
},
|
|
8
15
|
],
|
|
9
16
|
},
|
|
10
17
|
extensionsToTreatAsEsm: ['.ts'],
|
|
11
18
|
transformIgnorePatterns: [],
|
|
12
|
-
setupFiles: ['<rootDir>/../../
|
|
19
|
+
setupFiles: ['<rootDir>/../../test.setup.ts'],
|
|
13
20
|
moduleNameMapper: { '^(\\.\\.?\\/.+)\\.js$': ['$1.ts', '$1.js'] },
|
|
14
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/xrpc-server",
|
|
3
|
-
"version": "0.11.0
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "atproto HTTP API (XRPC) server library",
|
|
6
6
|
"keywords": [
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"mime-types": "^2.1.35",
|
|
23
23
|
"rate-limiter-flexible": "^2.4.1",
|
|
24
24
|
"ws": "^8.12.0",
|
|
25
|
-
"@atproto/
|
|
26
|
-
"@atproto/
|
|
27
|
-
"@atproto/lex-data": "^0.1.0
|
|
28
|
-
"@atproto/lex-cbor": "^0.1.0
|
|
29
|
-
"@atproto/
|
|
30
|
-
"@atproto/lex-json": "^0.1.0
|
|
31
|
-
"@atproto/
|
|
32
|
-
"@atproto/
|
|
33
|
-
"@atproto/
|
|
34
|
-
"@atproto/
|
|
25
|
+
"@atproto/common": "^0.6.0",
|
|
26
|
+
"@atproto/crypto": "^0.5.0",
|
|
27
|
+
"@atproto/lex-data": "^0.1.0",
|
|
28
|
+
"@atproto/lex-cbor": "^0.1.0",
|
|
29
|
+
"@atproto/lex-client": "^0.1.0",
|
|
30
|
+
"@atproto/lex-json": "^0.1.0",
|
|
31
|
+
"@atproto/lex-schema": "^0.1.0",
|
|
32
|
+
"@atproto/lexicon": "^0.7.0",
|
|
33
|
+
"@atproto/ws-client": "^0.1.0",
|
|
34
|
+
"@atproto/xrpc": "^0.8.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@jest/globals": "^30.0.0",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"key-encoder": "^2.0.3",
|
|
47
47
|
"multiformats": "^13.0.0",
|
|
48
48
|
"typescript": "^6.0.3",
|
|
49
|
-
"@atproto/crypto": "^0.5.0
|
|
50
|
-
"@atproto/lex": "^0.1.0
|
|
51
|
-
"@atproto/lex-document": "^0.1.0
|
|
49
|
+
"@atproto/crypto": "^0.5.0",
|
|
50
|
+
"@atproto/lex": "^0.1.0",
|
|
51
|
+
"@atproto/lex-document": "^0.1.0"
|
|
52
52
|
},
|
|
53
53
|
"type": "module",
|
|
54
54
|
"exports": {
|
package/tests/auth.test.ts
CHANGED
|
@@ -2,10 +2,7 @@ import { KeyObject, createPrivateKey } from 'node:crypto'
|
|
|
2
2
|
import * as http from 'node:http'
|
|
3
3
|
import { AddressInfo } from 'node:net'
|
|
4
4
|
import * as jose from 'jose'
|
|
5
|
-
|
|
6
|
-
import _KeyEncoder from 'key-encoder'
|
|
7
|
-
// TODO: key-encoder has no ESM version; workaround for CJS __esModule interop
|
|
8
|
-
const KeyEncoder = (_KeyEncoder as any).default ?? _KeyEncoder
|
|
5
|
+
import KeyEncoderModule from 'key-encoder'
|
|
9
6
|
import { MINUTE } from '@atproto/common'
|
|
10
7
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
|
11
8
|
import { LexiconDoc } from '@atproto/lexicon'
|
|
@@ -18,6 +15,9 @@ import {
|
|
|
18
15
|
createServer,
|
|
19
16
|
} from './_util.js'
|
|
20
17
|
|
|
18
|
+
// key-encoder is CJS with exports.default; Node ESM interop wraps it as { default: Class }
|
|
19
|
+
const KeyEncoder = ((m) => m.default ?? m)(KeyEncoderModule)
|
|
20
|
+
|
|
21
21
|
const LEXICONS: LexiconDoc[] = [
|
|
22
22
|
{
|
|
23
23
|
lexicon: 1,
|
package/tsconfig.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/auth.ts","./src/errors.ts","./src/index.ts","./src/logger.ts","./src/rate-limiter.ts","./src/server.ts","./src/types.ts","./src/util.ts","./src/stream/frames.ts","./src/stream/index.ts","./src/stream/logger.ts","./src/stream/server.ts","./src/stream/stream.ts","./src/stream/subscription.ts","./src/stream/types.ts"
|
|
1
|
+
{"root":["./src/auth.ts","./src/errors.ts","./src/index.ts","./src/logger.ts","./src/rate-limiter.ts","./src/server.ts","./src/types.ts","./src/util.ts","./src/stream/frames.ts","./src/stream/index.ts","./src/stream/logger.ts","./src/stream/server.ts","./src/stream/stream.ts","./src/stream/subscription.ts","./src/stream/types.ts"],"version":"6.0.3"}
|
package/tsconfig.tests.json
CHANGED