Skip to content

Commit

Permalink
Arktype requires 2.0.0-rc.23
Browse files Browse the repository at this point in the history
Fixes #510
  • Loading branch information
ciscoheat committed Nov 15, 2024
1 parent 9012284 commit f04803a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Valibot updated to require `1.0.0-beta.3` (hoping for a stable release soon).
- Arktype updated to require `2.0.0-rc.23` (hoping for a stable release soon).

### Added

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@sveltejs/kit": "1.x || 2.x",
"@typeschema/class-validator": "^0.3.0",
"@vinejs/vine": "^1.8.0 || ^2.0.0",
"arktype": ">=2.0.0-rc.8",
"arktype": ">=2.0.0-rc.23",
"class-validator": "^0.14.1",
"effect": "^3.8.2",
"joi": "^17.13.1",
Expand Down Expand Up @@ -166,7 +166,7 @@
"@sinclair/typebox": "^0.32.35",
"@typeschema/class-validator": "^0.3.0",
"@vinejs/vine": "^2.0.0",
"arktype": "2.0.0-rc.8",
"arktype": "^2.0.0-rc.23",
"class-validator": "^0.14.1",
"effect": "^3.9.1",
"joi": "^17.13.3",
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/adapters/arktype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function _validate<T extends type.Any>(
}
const issues = [];
for (const error of result) {
issues.push({ message: error.message, path: error.path });
issues.push({ message: error.message, path: Array.from(error.path) });
}
return {
issues,
Expand Down

0 comments on commit f04803a

Please sign in to comment.