Skip to content

Commit f3f6b23

Browse files
committed
fix: replace @finom/zod-to-json-schema with zod-v3-to-json-schema (#660)
1 parent c2a51f6 commit f3f6b23

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- Replaced deprecated `@finom/zod-to-json-schema` with `zod-v3-to-json-schema`. [#660](https://github.com/ciscoheat/sveltekit-superforms/pull/660)
1213
- Migrated Valibot adapter to use the official `@valibot/to-json-schema` package. [#668](https://github.com/ciscoheat/sveltekit-superforms/pull/668)
1314

1415
## [2.28.1] - 2025-10-19

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@
169169
},
170170
"optionalDependencies": {
171171
"@exodus/schemasafe": "^1.3.0",
172-
"@finom/zod-to-json-schema": "^3.24.11",
173-
"@valibot/to-json-schema": "^1.0.0",
174172
"@typeschema/class-validator": "^0.3.0",
173+
"@valibot/to-json-schema": "^1.0.0",
175174
"@vinejs/vine": "^3.0.1",
176175
"arktype": "^2.1.22",
177176
"class-validator": "^0.14.2",
@@ -225,7 +224,8 @@
225224
"typescript-eslint": "^8.45.0",
226225
"uuid": "^11.1.0",
227226
"vite": "^7.1.9",
228-
"vitest": "^3.2.4"
227+
"vitest": "^3.2.4",
228+
"zod-v3-to-json-schema": "^4.0.0"
229229
},
230230
"svelte": "./dist/index.js",
231231
"types": "./dist/index.d.ts",

pnpm-lock.yaml

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

src/lib/adapters/zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type ValidationResult,
1010
type ClientValidationAdapter
1111
} from './adapters.js';
12-
import { zodToJsonSchema as zodToJson, type Options } from '@finom/zod-to-json-schema';
12+
import { zodToJsonSchema as zodToJson, type Options } from 'zod-v3-to-json-schema';
1313
import { memoize } from '$lib/memoize.js';
1414

1515
const defaultOptions: Partial<Options> = {

0 commit comments

Comments
 (0)