express-zod-api 7.2.0 → 7.3.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 +6 -0
- package/README.md +1 -2
- package/dist/client-helpers.d.ts +2 -2
- package/dist/file-schema.d.ts +2 -2
- package/dist/server.d.ts +1 -0
- package/dist-esm/package.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -50,8 +50,7 @@ Start your API server with I/O schema validation and custom middlewares in minut
|
|
|
50
50
|
2. [Excessive properties in endpoint output](#excessive-properties-in-endpoint-output)
|
|
51
51
|
6. [Your input to my output](#your-input-to-my-output)
|
|
52
52
|
|
|
53
|
-
You can find the release notes in [Changelog](CHANGELOG.md).
|
|
54
|
-
[v4](CHANGELOG.md#v500-beta1), [v3](CHANGELOG.md#v400), [v2](CHANGELOG.md#v300-beta1) and [v1](CHANGELOG.md#v200-beta1).
|
|
53
|
+
You can find the release notes and migration guides in [Changelog](CHANGELOG.md).
|
|
55
54
|
|
|
56
55
|
# Why and what is it for
|
|
57
56
|
|
package/dist/client-helpers.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare const publicReadonlyModifier: (ts.ModifierToken<ts.SyntaxKind.Pub
|
|
|
5
5
|
export declare const protectedReadonlyModifier: (ts.ModifierToken<ts.SyntaxKind.ReadonlyKeyword> | ts.ModifierToken<ts.SyntaxKind.ProtectedKeyword>)[];
|
|
6
6
|
export declare const makeTemplate: (names: (ts.Identifier | string)[]) => ts.TemplateLiteralTypeNode;
|
|
7
7
|
export declare const parametricIndexNode: ts.TemplateLiteralTypeNode;
|
|
8
|
-
export declare const makeParam: (name: string, type?: ts.TypeNode
|
|
9
|
-
export declare const makeParams: (params: Record<string, ts.TypeNode | undefined>, mod?: ts.Modifier[]
|
|
8
|
+
export declare const makeParam: (name: string, type?: ts.TypeNode, mod?: ts.Modifier[]) => ts.ParameterDeclaration;
|
|
9
|
+
export declare const makeParams: (params: Record<string, ts.TypeNode | undefined>, mod?: ts.Modifier[]) => ts.ParameterDeclaration[];
|
|
10
10
|
export declare const makeRecord: (key: ts.Identifier | ts.KeywordTypeSyntaxKind, value: ts.KeywordTypeSyntaxKind) => ts.ExpressionWithTypeArguments;
|
|
11
11
|
export declare const makeEmptyInitializingConstructor: (params: ts.ParameterDeclaration[]) => ts.ConstructorDeclaration;
|
|
12
12
|
export declare const makeQuotedProp: (name: string, ref: string) => ts.PropertySignature;
|
package/dist/file-schema.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export interface ZodFileDef extends ZodTypeDef {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class ZodFile extends ZodType<string, ZodFileDef> {
|
|
16
16
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
17
|
-
binary: (message?: ErrMessage
|
|
18
|
-
base64: (message?: ErrMessage
|
|
17
|
+
binary: (message?: ErrMessage) => ZodFile;
|
|
18
|
+
base64: (message?: ErrMessage) => ZodFile;
|
|
19
19
|
get isBinary(): boolean;
|
|
20
20
|
get isBase64(): boolean;
|
|
21
21
|
static create: () => ZodFile;
|
package/dist/server.d.ts
CHANGED
package/dist-esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"7.
|
|
1
|
+
{"type":"module","version":"7.3.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-zod-api",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@types/node": "*",
|
|
43
43
|
"compression": "1.7.4",
|
|
44
44
|
"express": "4.18.1",
|
|
45
|
-
"express-fileupload": "1.
|
|
45
|
+
"express-fileupload": "1.4.0",
|
|
46
46
|
"http-errors": "2.0.0",
|
|
47
47
|
"mime": "3.0.0",
|
|
48
48
|
"openapi3-ts": "2.0.2",
|
|
49
49
|
"ramda": "0.28.0",
|
|
50
50
|
"triple-beam": "1.3.0",
|
|
51
51
|
"winston": "3.7.2",
|
|
52
|
-
"zod": "3.17.
|
|
52
|
+
"zod": "3.17.3",
|
|
53
53
|
"zod-to-ts": "1.0.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|