Skip to content

Commit 8063377

Browse files
committed
Arktype 2.0!
1 parent 615efb0 commit 8063377

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Changed
1919

20+
- [Arktype 2.0](https://arktype.io/) is finally released! Adapter updated, please check it out, it's validation on the next level.
21+
- Arktype is now displaying errors with `problem` instead of `message`, for nicer output.
2022
- Zod peerDependency updated to 3.24.1 to be compatible with its latest fix.
2123
- VineJS adapter updated to 3.0.0.
2224

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"@sinclair/typebox": "^0.34.14",
166166
"@typeschema/class-validator": "^0.3.0",
167167
"@vinejs/vine": "^3.0.0",
168-
"arktype": "2.0.0-rc.26",
168+
"arktype": "^2.0.0",
169169
"class-validator": "^0.14.1",
170170
"effect": "^3.12.5",
171171
"joi": "^17.13.3",

pnpm-lock.yaml

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

src/lib/adapters/arktype.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function _validate<T extends type.Any>(
3030
}
3131
const issues = [];
3232
for (const error of result) {
33-
issues.push({ message: error.message, path: Array.from(error.path) });
33+
issues.push({ message: error.problem, path: Array.from(error.path) });
3434
}
3535
return {
3636
issues,

0 commit comments

Comments
 (0)