@atproto/lex-cli 0.5.2 → 0.5.4
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 +13 -0
- package/dist/codegen/server.js +2 -2
- package/package.json +3 -3
- package/src/codegen/server.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atproto/lex-cli
|
|
2
2
|
|
|
3
|
+
## 0.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3274](https://github.com/bluesky-social/atproto/pull/3274) [`672243a9e`](https://github.com/bluesky-social/atproto/commit/672243a9ea0a2cbd0cfaa4e255c58de658ed22e2) Thanks [@dholms](https://github.com/dholms)! - Allow ratelimit calcKey to return null
|
|
8
|
+
|
|
9
|
+
## 0.5.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`9fd65ba0f`](https://github.com/bluesky-social/atproto/commit/9fd65ba0fa4caca59fd0e6156145e4c2618e3a95)]:
|
|
14
|
+
- @atproto/lexicon@0.4.4
|
|
15
|
+
|
|
3
16
|
## 0.5.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/codegen/server.js
CHANGED
|
@@ -135,7 +135,7 @@ const indexTs = (project, lexiconDocs, nsidTree, nsidTokens) => (0, common_1.gen
|
|
|
135
135
|
typeParameters: [{ name: 'T' }],
|
|
136
136
|
type: `{
|
|
137
137
|
name: string
|
|
138
|
-
calcKey?: (ctx: T) => string
|
|
138
|
+
calcKey?: (ctx: T) => string | null
|
|
139
139
|
calcPoints?: (ctx: T) => number
|
|
140
140
|
}`,
|
|
141
141
|
});
|
|
@@ -145,7 +145,7 @@ const indexTs = (project, lexiconDocs, nsidTree, nsidTokens) => (0, common_1.gen
|
|
|
145
145
|
type: `{
|
|
146
146
|
durationMs: number
|
|
147
147
|
points: number
|
|
148
|
-
calcKey?: (ctx: T) => string
|
|
148
|
+
calcKey?: (ctx: T) => string | null
|
|
149
149
|
calcPoints?: (ctx: T) => number
|
|
150
150
|
}`,
|
|
151
151
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lex-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript codegen tool for atproto Lexicon schemas",
|
|
6
6
|
"keywords": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"ts-morph": "^16.0.0",
|
|
26
26
|
"yesno": "^0.4.0",
|
|
27
27
|
"zod": "^3.23.8",
|
|
28
|
-
"@atproto/
|
|
29
|
-
"@atproto/
|
|
28
|
+
"@atproto/syntax": "^0.3.1",
|
|
29
|
+
"@atproto/lexicon": "^0.4.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^5.6.3"
|
package/src/codegen/server.ts
CHANGED
|
@@ -180,7 +180,7 @@ const indexTs = (
|
|
|
180
180
|
typeParameters: [{ name: 'T' }],
|
|
181
181
|
type: `{
|
|
182
182
|
name: string
|
|
183
|
-
calcKey?: (ctx: T) => string
|
|
183
|
+
calcKey?: (ctx: T) => string | null
|
|
184
184
|
calcPoints?: (ctx: T) => number
|
|
185
185
|
}`,
|
|
186
186
|
})
|
|
@@ -191,7 +191,7 @@ const indexTs = (
|
|
|
191
191
|
type: `{
|
|
192
192
|
durationMs: number
|
|
193
193
|
points: number
|
|
194
|
-
calcKey?: (ctx: T) => string
|
|
194
|
+
calcKey?: (ctx: T) => string | null
|
|
195
195
|
calcPoints?: (ctx: T) => number
|
|
196
196
|
}`,
|
|
197
197
|
})
|