diff --git a/CHANGELOG.md b/CHANGELOG.md index e7df0c49..37efc1df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index f6ee3afb..25b37ecf 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10a9e64a..c977109c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,8 +40,8 @@ importers: specifier: ^2.0.0 version: 2.1.0 arktype: - specifier: 2.0.0-rc.8 - version: 2.0.0-rc.8 + specifier: ^2.0.0-rc.23 + version: 2.0.0-rc.23 class-validator: specifier: ^0.14.1 version: 0.14.1 @@ -176,11 +176,11 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@ark/schema@0.10.0': - resolution: {integrity: sha512-zpfXwWLOzj9aUK+dXQ6aleJAOgle4/WrHDop5CMX2M88dFQ85NdH8O0v0pvMAQnfFcaQAZ/nVDYLlBJsFc09XA==} + '@ark/schema@0.23.0': + resolution: {integrity: sha512-406Zx0te3ICd7PkGise4XIxOfmjFzK64tEuiN5rmJDg14AqhySXygMk8QcHqHORDJ7VXhel7J41iduw8eyiFPg==} - '@ark/util@0.10.0': - resolution: {integrity: sha512-uK+9VU5doGMYOoOZVE+XaSs1vYACoaEJdrDkuBx26S4X7y3ChyKsPnIg/9pIw2vUySph1GkAXbvBnfVE2GmXgQ==} + '@ark/util@0.23.0': + resolution: {integrity: sha512-2mb24N2leQENRh+zPqnlRJzFFf8Xr7BT+/4MJN46/G8C45davpqFfcqvOw0ZlXrjQpBi8H+ZqDQsi95lN/9oVg==} '@babel/runtime@7.25.6': resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} @@ -870,8 +870,8 @@ packages: resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} engines: {node: '>= 0.4'} - arktype@2.0.0-rc.8: - resolution: {integrity: sha512-ByrqjptsavUCUL9ptts6BUL2LCNkVZyniOdaBw76dlBQ6gYIhYSeycuuj4gRFwcAafszOnAPD2fAqHK7bbo/Zw==} + arktype@2.0.0-rc.23: + resolution: {integrity: sha512-P0e40t3J4rc3xRHzPjzyOK1CgdgKswQJOFBgFLuehSiGcjAuRx6p/9lDVPzXZ62m7q5yRUqFiX8ovN5FjWQjMQ==} array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} @@ -2025,12 +2025,12 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@ark/schema@0.10.0': + '@ark/schema@0.23.0': dependencies: - '@ark/util': 0.10.0 + '@ark/util': 0.23.0 optional: true - '@ark/util@0.10.0': + '@ark/util@0.23.0': optional: true '@babel/runtime@7.25.6': @@ -2608,10 +2608,10 @@ snapshots: aria-query@5.3.2: {} - arktype@2.0.0-rc.8: + arktype@2.0.0-rc.23: dependencies: - '@ark/schema': 0.10.0 - '@ark/util': 0.10.0 + '@ark/schema': 0.23.0 + '@ark/util': 0.23.0 optional: true array-union@2.1.0: {} diff --git a/src/lib/adapters/arktype.ts b/src/lib/adapters/arktype.ts index 3b9882e2..5a982372 100644 --- a/src/lib/adapters/arktype.ts +++ b/src/lib/adapters/arktype.ts @@ -32,7 +32,7 @@ async function _validate( } 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,