zod 3.23.6 → 3.23.8
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/README.md +34 -12
- package/lib/helpers/util.d.ts +3 -1
- package/lib/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
- [Gold](#gold)
|
|
54
54
|
- [Silver](#silver)
|
|
55
55
|
- [Bronze](#bronze)
|
|
56
|
+
- [Copper](#copper)
|
|
56
57
|
- [Ecosystem](#ecosystem)
|
|
57
58
|
- [Resources](#resources)
|
|
58
59
|
- [API libraries](#api-libraries)
|
|
@@ -184,9 +185,9 @@ Some other great aspects:
|
|
|
184
185
|
|
|
185
186
|
Sponsorship at any level is appreciated and encouraged. For individual developers, consider the [Cup of Coffee tier](https://github.com/sponsors/colinhacks). If you built a paid product using Zod, consider one of the [podium tiers](https://github.com/sponsors/colinhacks).
|
|
186
187
|
|
|
187
|
-
####
|
|
188
|
+
#### Platinum
|
|
188
189
|
|
|
189
|
-
>
|
|
190
|
+
> [Email me](mailto:colin@colinhacks.com) to discuss sponsoring Zod at this level.
|
|
190
191
|
|
|
191
192
|
<!-- <table>
|
|
192
193
|
<tr>
|
|
@@ -202,7 +203,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
|
|
|
202
203
|
</tr>
|
|
203
204
|
</table> -->
|
|
204
205
|
|
|
205
|
-
####
|
|
206
|
+
#### Gold
|
|
206
207
|
|
|
207
208
|
<table>
|
|
208
209
|
<tr>
|
|
@@ -282,21 +283,39 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
|
|
|
282
283
|
</tr>
|
|
283
284
|
</table>
|
|
284
285
|
|
|
285
|
-
####
|
|
286
|
+
#### Silver
|
|
286
287
|
|
|
287
288
|
<table>
|
|
288
289
|
<tr>
|
|
289
|
-
<td
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
<td align="center">
|
|
291
|
+
<a href="https://www.numeric.io">
|
|
292
|
+
<img src="https://i.imgur.com/kTiLtZt.png" height="40px;" alt="Numeric logo" />
|
|
293
|
+
</a>
|
|
294
|
+
</td>
|
|
295
|
+
<td>
|
|
296
|
+
<a href="https://marcatopartners.com">
|
|
297
|
+
<img src="https://avatars.githubusercontent.com/u/84106192?s=200&v=4" height="40px;" alt="Marcato Partners" />
|
|
298
|
+
</a>
|
|
299
|
+
</td>
|
|
300
|
+
<td>
|
|
301
|
+
<a href="https://interval.com">
|
|
302
|
+
<img src="https://avatars.githubusercontent.com/u/67802063?s=200&v=4" height="40px;" alt="" />
|
|
303
|
+
</a>
|
|
304
|
+
</td>
|
|
305
|
+
<td>
|
|
306
|
+
<a href="https://seasoned.cc">
|
|
307
|
+
<img src="https://avatars.githubusercontent.com/u/33913103?s=200&v=4" height="40px;" alt="" />
|
|
308
|
+
</a>
|
|
309
|
+
</td>
|
|
310
|
+
<td>
|
|
311
|
+
<a href="https://www.bamboocreative.nz/">
|
|
312
|
+
<img src="https://avatars.githubusercontent.com/u/41406870?v=4" height="40px;" alt="Bamboo Creative logo" />
|
|
313
|
+
</a>
|
|
314
|
+
</td>
|
|
296
315
|
</tr>
|
|
297
316
|
</table>
|
|
298
317
|
|
|
299
|
-
####
|
|
318
|
+
#### Bronze
|
|
300
319
|
|
|
301
320
|
<table>
|
|
302
321
|
<tr>
|
|
@@ -323,6 +342,9 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
|
|
|
323
342
|
<td>Mohammad-Ali A'râbi</td>
|
|
324
343
|
<td>Supatool</td>
|
|
325
344
|
</tr>
|
|
345
|
+
<tr>
|
|
346
|
+
<td>Social Crow</td>
|
|
347
|
+
</tr>
|
|
326
348
|
</table>
|
|
327
349
|
|
|
328
350
|
### Ecosystem
|
package/lib/helpers/util.d.ts
CHANGED
|
@@ -50,7 +50,9 @@ export declare namespace objectUtil {
|
|
|
50
50
|
}>;
|
|
51
51
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
52
52
|
export type extendShape<A extends object, B extends object> = {
|
|
53
|
-
[K in keyof A
|
|
53
|
+
[K in keyof A as K extends keyof B ? never : K]: A[K];
|
|
54
|
+
} & {
|
|
55
|
+
[K in keyof B]: B[K];
|
|
54
56
|
};
|
|
55
57
|
export {};
|
|
56
58
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { partialUtil } from "./helpers/partialUtil";
|
|
|
5
5
|
import { Primitive } from "./helpers/typeAliases";
|
|
6
6
|
import { objectUtil, util } from "./helpers/util";
|
|
7
7
|
import { IssueData, StringValidation, ZodCustomIssue, ZodError, ZodErrorMap } from "./ZodError";
|
|
8
|
-
export
|
|
8
|
+
export interface RefinementCtx {
|
|
9
9
|
addIssue: (arg: IssueData) => void;
|
|
10
10
|
path: (string | number)[];
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
export declare type ZodRawShape = {
|
|
13
13
|
[k: string]: ZodTypeAny;
|
|
14
14
|
};
|