express-zod-api 6.1.1 → 6.1.2

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,22 @@
2
2
 
3
3
  ## Version 6
4
4
 
5
+ ### v6.1.2
6
+
7
+ - `express` version is 4.18.0.
8
+ - Various new options and fixes.
9
+ - `zod-to-ts` version is 1.0.0.
10
+ - The type of optional I/O parameters in the generated Client is aligned with `zod` definition.
11
+
12
+ ```typescript
13
+ interface Before {
14
+ foo: number | undefined;
15
+ }
16
+ interface After {
17
+ foo?: number | undefined; // the question mark added
18
+ }
19
+ ```
20
+
5
21
  ### v6.1.1
6
22
 
7
23
  - Hotfix: capitalizing the method in example implementation (Client generator).
@@ -1 +1 @@
1
- {"type":"module","version":"6.1.1"}
1
+ {"type":"module","version":"6.1.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-zod-api",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
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": {
@@ -41,7 +41,7 @@
41
41
  "@types/http-errors": "^1.8.2",
42
42
  "@types/node": "*",
43
43
  "compression": "1.7.4",
44
- "express": "4.17.3",
44
+ "express": "4.18.0",
45
45
  "express-fileupload": "1.3.1",
46
46
  "http-errors": "2.0.0",
47
47
  "mime": "3.0.0",
@@ -50,7 +50,7 @@
50
50
  "triple-beam": "1.3.0",
51
51
  "winston": "3.7.2",
52
52
  "zod": "3.14.4",
53
- "zod-to-ts": "0.2.2"
53
+ "zod-to-ts": "1.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@types/jest": "*",