express-zod-api 12.5.0 → 14.0.0-beta1

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/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "express-zod-api",
3
- "version": "12.5.0",
3
+ "version": "14.0.0-beta1",
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": {
7
- "start": "ts-node example/index.ts",
7
+ "start": "yarn tsnode example/index.ts",
8
8
  "build": "yarn build:compile && yarn build:tests && yarn build:assets",
9
9
  "build:compile": "tsup && attw --pack",
10
10
  "build:tests": "yarn build:int && yarn build:esm",
11
- "build:int": "ts-node tools/integration-test.ts && yarn install --cwd ./tests/integration",
12
- "build:esm": "ts-node tools/esm-test.ts && yarn install --cwd ./tests/esm",
11
+ "build:int": "yarn tsnode tools/integration-test.ts && yarn install --cwd ./tests/integration",
12
+ "build:esm": "yarn tsnode tools/esm-test.ts && yarn install --cwd ./tests/esm",
13
13
  "build:assets": "yarn build:swagger && yarn build:client && yarn build:license",
14
- "build:swagger": "ts-node example/generate-open-api-schema.ts > example/example.swagger.yaml",
15
- "build:client": "ts-node example/generate-client.ts > example/example.client.ts && yarn prettier example/example.client.ts --write",
16
- "build:license": "ts-node tools/license.ts > ./LICENSE",
14
+ "build:swagger": "yarn tsnode example/generate-open-api-schema.ts",
15
+ "build:client": "yarn tsnode example/generate-client.ts && yarn prettier example/example.client.ts --write",
16
+ "build:license": "yarn tsnode tools/license.ts",
17
+ "build:logo": "yarn tsnode tools/startup-logo.ts",
17
18
  "test": "yarn test:types && yarn test:jest && yarn test:badge",
18
19
  "test:int": "jest ./tests/integration",
19
20
  "test:esm": "jest ./tests/esm",
@@ -23,6 +24,7 @@
23
24
  "test:badge": "make-coverage-badge --output-path ./coverage.svg",
24
25
  "lint": "eslint src example tests tools && yarn prettier *.md --check",
25
26
  "mdfix": "prettier *.md --write",
27
+ "tsnode": "node -r @swc-node/register",
26
28
  "precommit": "yarn build && yarn lint && yarn test && git add example/example.swagger.yaml example/example.client.ts ./LICENSE ./coverage.svg",
27
29
  "prepublishOnly": "yarn build && yarn lint && yarn test",
28
30
  "postversion": "git push && git push --tags",
@@ -44,52 +46,63 @@
44
46
  }
45
47
  },
46
48
  "dependencies": {
47
- "@types/compression": "^1.7.3",
48
- "@types/express-fileupload": "^1.4.1",
49
- "@types/http-errors": "^2.0.1",
50
- "@types/node": "*",
51
49
  "compression": "1.7.4",
52
50
  "express-fileupload": "1.4.1",
53
- "http-errors": "2.0.0",
54
- "mime": "3.0.0",
55
51
  "openapi3-ts": "^4.1.2",
56
- "ramda": "0.29.0",
57
- "triple-beam": "^1.4.1"
52
+ "ramda": "0.29.1"
58
53
  },
59
54
  "peerDependencies": {
55
+ "@types/compression": "^1.7.3",
60
56
  "@types/express": "^4.17.13",
57
+ "@types/express-fileupload": "^1.4.2",
58
+ "@types/http-errors": "^2.0.2",
61
59
  "@types/jest": "*",
60
+ "@types/node": "*",
62
61
  "express": "^4.18.2",
62
+ "http-errors": "^2.0.0",
63
63
  "jest": ">=28 <30",
64
64
  "typescript": "^5.1.3",
65
65
  "winston": "^3.10.0",
66
- "zod": "^3.21.4"
66
+ "zod": "^3.22.3"
67
67
  },
68
68
  "peerDependenciesMeta": {
69
+ "@types/compression": {
70
+ "optional": true
71
+ },
69
72
  "@types/express": {
70
73
  "optional": true
71
74
  },
75
+ "@types/express-fileupload": {
76
+ "optional": true
77
+ },
78
+ "@types/http-errors": {
79
+ "optional": true
80
+ },
72
81
  "@types/jest": {
73
82
  "optional": true
74
83
  },
75
- "jest": {
84
+ "@types/node": {
76
85
  "optional": true
77
86
  },
78
- "typescript": {
87
+ "jest": {
79
88
  "optional": true
80
89
  }
81
90
  },
82
91
  "devDependencies": {
83
- "@arethetypeswrong/cli": "^0.11.0",
84
- "@swc/core": "^1.3.82",
92
+ "@arethetypeswrong/cli": "^0.12.1",
93
+ "@swc-node/register": "^1.6.8",
94
+ "@swc/core": "^1.3.92",
85
95
  "@swc/jest": "^0.2.29",
86
96
  "@tsconfig/node18": "^18.2.1",
97
+ "@types/compression": "^1.7.3",
87
98
  "@types/cors": "^2.8.14",
88
99
  "@types/express": "^4.17.17",
100
+ "@types/express-fileupload": "^1.4.2",
89
101
  "@types/has-ansi": "^5.0.0",
102
+ "@types/http-errors": "^2.0.2",
90
103
  "@types/jest": "^29.5.4",
91
104
  "@types/mime": "^3.0.1",
92
- "@types/node-fetch": "^2.6.4",
105
+ "@types/node": "^20.8.4",
93
106
  "@types/ramda": "^0.29.3",
94
107
  "@types/triple-beam": "^1.3.2",
95
108
  "@typescript-eslint/eslint-plugin": "^6.6.0",
@@ -106,18 +119,18 @@
106
119
  "express": "^4.18.2",
107
120
  "form-data": "^4.0.0",
108
121
  "has-ansi": "^4.0.1",
122
+ "http-errors": "^2.0.0",
109
123
  "husky": "^8.0.3",
110
124
  "jest": "^29.6.4",
111
125
  "make-coverage-badge": "^1.2.0",
112
126
  "mockdate": "^3.0.5",
113
127
  "prettier": "3.0.3",
114
128
  "strip-ansi": "^6.0.1",
115
- "ts-node": "^10.9.1",
116
129
  "tsd": "^0.29.0",
117
130
  "tsup": "^7.2.0",
118
131
  "typescript": "^5.2.2",
119
132
  "winston": "^3.10.0",
120
- "zod": "^3.22.2"
133
+ "zod": "^3.22.3"
121
134
  },
122
135
  "engines": {
123
136
  "node": "^18.0.0 || ^20.1.0"