Skip to content

Commit 4464bcb

Browse files
committed
refactor: support just Zod as validation library
1 parent 0c1ddc5 commit 4464bcb

23 files changed

+44
-2487
lines changed

packages/next-safe-action/package.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
],
1212
"exports": {
1313
".": "./dist/index.mjs",
14-
"./typeschema": "./dist/typeschema.mjs",
1514
"./hooks": "./dist/hooks.mjs",
1615
"./stateful-hooks": "./dist/stateful-hooks.mjs"
1716
},
@@ -20,9 +19,6 @@
2019
".": [
2120
"./dist/index.d.mts"
2221
],
23-
"typeschema": [
24-
"./dist/typeschema.d.mts"
25-
],
2622
"hooks": [
2723
"./dist/hooks.d.mts"
2824
],
@@ -43,7 +39,7 @@
4339
],
4440
"scripts": {
4541
"lint": "tsc && prettier --write . && eslint .",
46-
"test": "node --import tsx --test ./src/__tests__/*.test.ts ./src/__tests__/typeschema/*.test.ts",
42+
"test": "node --import tsx --test ./src/__tests__/*.test.ts",
4743
"build": "tsup",
4844
"deploy": "semantic-release"
4945
},
@@ -70,7 +66,6 @@
7066
"@types/node": "^20.12.10",
7167
"@types/react": "^18.3.1",
7268
"@types/react-dom": "18.3.0",
73-
"@typeschema/core": "^0.13.2",
7469
"eslint": "^8.57.0",
7570
"eslint-config-prettier": "^9.1.0",
7671
"eslint-define-config": "^2.1.0",
@@ -83,25 +78,17 @@
8378
"tsup": "^8.0.2",
8479
"tsx": "^4.11.2",
8580
"typescript": "^5.4.5",
86-
"typescript-eslint": "^7.8.0"
81+
"typescript-eslint": "^7.8.0",
82+
"zod": "^3.23.6"
8783
},
8884
"peerDependencies": {
8985
"next": ">= 14.0.0",
9086
"react": ">= 18.2.0",
9187
"react-dom": ">= 18.2.0",
9288
"zod": ">= 3.0.0"
9389
},
94-
"peerDependenciesMeta": {
95-
"zod": {
96-
"optional": true
97-
}
98-
},
9990
"repository": {
10091
"type": "git",
10192
"url": "https://github.com/TheEdoRan/next-safe-action.git"
102-
},
103-
"dependencies": {
104-
"@typeschema/main": "^0.13.10",
105-
"@typeschema/zod": "^0.13.3"
10693
}
10794
}

packages/next-safe-action/src/__tests__/typeschema/action-callbacks.test.ts

Lines changed: 0 additions & 301 deletions
This file was deleted.

0 commit comments

Comments
 (0)