@atproto/lex-cli 0.5.3 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.5.3
4
10
 
5
11
  ### Patch Changes
@@ -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",
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/lexicon": "^0.4.4",
29
- "@atproto/syntax": "^0.3.1"
28
+ "@atproto/syntax": "^0.3.1",
29
+ "@atproto/lexicon": "^0.4.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "typescript": "^5.6.3"
@@ -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
  })