Skip to content

Commit 897536f

Browse files
committed
fix(runtime): mark zod and typebox as peer dependencies
1 parent acaa2cb commit 897536f

File tree

5 files changed

+28
-15
lines changed

5 files changed

+28
-15
lines changed

.changeset/swift-lamps-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ddadaal/next-typed-api-routes-runtime": patch
3+
---
4+
5+
make typebox and zod as peerDependencies

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Migrate from v0.2? See the [migration guide](#migrate-from-v02)!
3232
1. Install the packages in your Next.js TypeScript project
3333

3434
```bash
35-
npm install --save @ddadaal/next-typed-api-routes-runtime
35+
npm install --save @ddadaal/next-typed-api-routes-runtime zod @sinclair/typebox
3636
npm install -D @ddadaal/next-typed-api-routes-cli
3737
```
3838

example/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"@ddadaal/next-typed-api-routes-runtime": "workspace:*",
1414
"next": "13.4.4",
1515
"react": "18.2.0",
16-
"react-dom": "18.2.0"
16+
"react-dom": "18.2.0",
17+
"zod": "3.21.4",
18+
"@sinclair/typebox": "0.28.13"
1719
},
1820
"devDependencies": {
1921
"@babel/core": "^7.22.1",

packages/runtime/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,22 @@
3232
"ajv-formats": "^2.1.1",
3333
"ajv-formats-draft2019": "1.6.1",
3434
"fast-json-stringify": "5.7.0",
35-
"tslib": "2.5.2",
36-
"zod": "3.21.4",
37-
"@sinclair/typebox": "0.28.13"
35+
"tslib": "2.5.2"
3836
},
3937
"devDependencies": {
4038
"@rollup/plugin-commonjs": "25.0.0",
4139
"@rollup/plugin-json": "^6.0.0",
4240
"@rollup/plugin-typescript": "^11.1.1",
4341
"rollup": "^3.23.0",
4442
"rollup-plugin-terser": "^7.0.2",
45-
"typescript": "5.0.4"
43+
"typescript": "5.0.4",
44+
"zod": "3.21.4",
45+
"@sinclair/typebox": "0.28.13"
4646
},
4747
"peerDependencies": {
48-
"next": ">=11.x"
48+
"next": ">=11.x",
49+
"zod": ">=3.21.4",
50+
"@sinclair/typebox": ">=0.28.13"
4951
},
5052
"gitHead": "4f07b2ba2c55d957ae6862e0000d6049e36140f7"
5153
}

pnpm-lock.yaml

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)