express-zod-api 6.2.0 → 6.2.1

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,10 @@
2
2
 
3
3
  ## Version 6
4
4
 
5
+ ### v6.2.1
6
+
7
+ - `zod` version is 3.16.0.
8
+
5
9
  ### v6.2.0
6
10
 
7
11
  - The following methods and utility types have been marked as deprecated:
@@ -28,11 +28,11 @@ export declare const defaultEndpointsFactory: EndpointsFactory<ApiResponse<z.Zod
28
28
  status: z.ZodLiteral<"success">;
29
29
  data: import("./common-helpers").OutputMarker;
30
30
  }, "strip", z.ZodTypeAny, {
31
- status: "success";
32
31
  data?: unknown;
33
- }, {
34
32
  status: "success";
33
+ }, {
35
34
  data?: unknown;
35
+ status: "success";
36
36
  }> & {
37
37
  _def: z.ZodObjectDef<{
38
38
  status: z.ZodLiteral<"success">;
@@ -41,24 +41,24 @@ export declare const defaultEndpointsFactory: EndpointsFactory<ApiResponse<z.Zod
41
41
  status: z.ZodLiteral<"success">;
42
42
  data: import("./common-helpers").OutputMarker;
43
43
  }, "strip", z.ZodTypeAny, {
44
- status: "success";
45
44
  data?: unknown;
46
- }, {
47
45
  status: "success";
46
+ }, {
48
47
  data?: unknown;
48
+ status: "success";
49
49
  }>>;
50
50
  example: (example: {
51
- status: "success";
52
51
  data?: unknown;
52
+ status: "success";
53
53
  }) => z.ZodObject<{
54
54
  status: z.ZodLiteral<"success">;
55
55
  data: import("./common-helpers").OutputMarker;
56
56
  }, "strip", z.ZodTypeAny, {
57
- status: "success";
58
57
  data?: unknown;
59
- }, {
60
58
  status: "success";
59
+ }, {
61
60
  data?: unknown;
61
+ status: "success";
62
62
  }> & any;
63
63
  }>, ApiResponse<z.ZodObject<{
64
64
  status: z.ZodLiteral<"error">;
@@ -28,11 +28,11 @@ export declare const defaultResultHandler: ResultHandlerDefinition<ApiResponse<z
28
28
  status: z.ZodLiteral<"success">;
29
29
  data: import("./common-helpers").OutputMarker;
30
30
  }, "strip", z.ZodTypeAny, {
31
- status: "success";
32
31
  data?: unknown;
33
- }, {
34
32
  status: "success";
33
+ }, {
35
34
  data?: unknown;
35
+ status: "success";
36
36
  }> & {
37
37
  _def: z.ZodObjectDef<{
38
38
  status: z.ZodLiteral<"success">;
@@ -41,24 +41,24 @@ export declare const defaultResultHandler: ResultHandlerDefinition<ApiResponse<z
41
41
  status: z.ZodLiteral<"success">;
42
42
  data: import("./common-helpers").OutputMarker;
43
43
  }, "strip", z.ZodTypeAny, {
44
- status: "success";
45
44
  data?: unknown;
46
- }, {
47
45
  status: "success";
46
+ }, {
48
47
  data?: unknown;
48
+ status: "success";
49
49
  }>>;
50
50
  example: (example: {
51
- status: "success";
52
51
  data?: unknown;
52
+ status: "success";
53
53
  }) => z.ZodObject<{
54
54
  status: z.ZodLiteral<"success">;
55
55
  data: import("./common-helpers").OutputMarker;
56
56
  }, "strip", z.ZodTypeAny, {
57
- status: "success";
58
57
  data?: unknown;
59
- }, {
60
58
  status: "success";
59
+ }, {
61
60
  data?: unknown;
61
+ status: "success";
62
62
  }> & any;
63
63
  }>, ApiResponse<z.ZodObject<{
64
64
  status: z.ZodLiteral<"error">;
@@ -1 +1 @@
1
- {"type":"module","version":"6.2.0"}
1
+ {"type":"module","version":"6.2.1"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-zod-api",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
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": {
@@ -49,7 +49,7 @@
49
49
  "ramda": "0.28.0",
50
50
  "triple-beam": "1.3.0",
51
51
  "winston": "3.7.2",
52
- "zod": "3.15.1",
52
+ "zod": "3.16.0",
53
53
  "zod-to-ts": "1.0.1"
54
54
  },
55
55
  "peerDependencies": {