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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Version 7
4
4
 
5
+ ### v7.3.0
6
+
7
+ - `express-fileupload` version is 1.4.0.
8
+ - `busboy` upgraded from 0.3.1 to 1.6.0.
9
+ - `zod` version is 3.17.3.
10
+
5
11
  ### v7.2.0
6
12
 
7
13
  - `zod` version is 3.17.2.
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). Along with recommendations for migrating from
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
 
@@ -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 | undefined, mod?: ts.Modifier[] | undefined) => ts.ParameterDeclaration;
9
- export declare const makeParams: (params: Record<string, ts.TypeNode | undefined>, mod?: ts.Modifier[] | undefined) => ts.ParameterDeclaration[];
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;
@@ -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 | undefined) => ZodFile;
18
- base64: (message?: ErrMessage | undefined) => ZodFile;
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
@@ -1,5 +1,6 @@
1
1
  /// <reference types="qs" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import express, { ErrorRequestHandler, RequestHandler } from "express";
4
5
  import https from "https";
5
6
  import { Logger } from "winston";
@@ -1 +1 @@
1
- {"type":"module","version":"7.2.0"}
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.2.0",
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.3.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.2",
52
+ "zod": "3.17.3",
53
53
  "zod-to-ts": "1.0.1"
54
54
  },
55
55
  "peerDependencies": {