diff --git a/package.json b/package.json
index 2c25d1ef..8b489fd1 100644
--- a/package.json
+++ b/package.json
@@ -102,7 +102,6 @@
"!dist/**/*.spec.*"
],
"peerDependencies": {
- "@effect/schema": "^0.75.3",
"@exodus/schemasafe": "^1.3.0",
"@sinclair/typebox": "^0.34.9",
"@sveltejs/kit": "1.x || 2.x",
@@ -168,7 +167,7 @@
"@vinejs/vine": "^2.0.0",
"arktype": "^2.0.0-rc.23",
"class-validator": "^0.14.1",
- "effect": "^3.9.1",
+ "effect": "^3.11.3",
"joi": "^17.13.3",
"json-schema-to-ts": "^3.1.1",
"superstruct": "^2.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 93f77e2b..243ea8ef 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -23,7 +23,7 @@ importers:
optionalDependencies:
'@effect/schema':
specifier: ^0.75.3
- version: 0.75.3(effect@3.9.1)
+ version: 0.75.3(effect@3.11.3)
'@exodus/schemasafe':
specifier: ^1.3.0
version: 1.3.0
@@ -46,8 +46,8 @@ importers:
specifier: ^0.14.1
version: 0.14.1
effect:
- specifier: ^3.9.1
- version: 3.9.1
+ specifier: ^3.11.3
+ version: 3.11.3
joi:
specifier: ^17.13.3
version: 17.13.3
@@ -1016,8 +1016,8 @@ packages:
resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
engines: {node: '>=6.0.0'}
- effect@3.9.1:
- resolution: {integrity: sha512-dxd+eiCqxOriBM12EQ6uIjn3cJpKIP7DfqafWTVEb45aMO157iEeDcO09SEdVSAy/OqpFlRF+4Lx7Hei1ipvOA==}
+ effect@3.11.3:
+ resolution: {integrity: sha512-pbdB97Ejdbu7YvnkOf5J8y9J0ZIveAK+uKUZJpZGqUyTfykpL9VqfzahjWfdkseDqsktEZS7bFuJ9IBowVWNpA==}
es6-promise@3.3.1:
resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==}
@@ -2037,9 +2037,9 @@ snapshots:
dependencies:
regenerator-runtime: 0.14.1
- '@effect/schema@0.75.3(effect@3.9.1)':
+ '@effect/schema@0.75.3(effect@3.11.3)':
dependencies:
- effect: 3.9.1
+ effect: 3.11.3
fast-check: 3.22.0
optional: true
@@ -2745,7 +2745,9 @@ snapshots:
dependencies:
esutils: 2.0.3
- effect@3.9.1:
+ effect@3.11.3:
+ dependencies:
+ fast-check: 3.22.0
optional: true
es6-promise@3.3.1: {}
diff --git a/src/lib/adapters/effect.ts b/src/lib/adapters/effect.ts
index 67b0a797..672dfbf6 100644
--- a/src/lib/adapters/effect.ts
+++ b/src/lib/adapters/effect.ts
@@ -1,5 +1,6 @@
-import { Schema, JSONSchema, ArrayFormatter } from '@effect/schema';
-import { Either } from 'effect';
+import { Effect, Schema, JSONSchema } from 'effect';
+import type { ParseOptions } from 'effect/SchemaAST';
+import { ArrayFormatter } from 'effect/ParseResult';
import type { JSONSchema as TJSONSchema } from '../jsonSchema/index.js';
import {
createAdapter,
@@ -10,7 +11,6 @@ import {
type ValidationAdapter,
type ValidationResult
} from './adapters.js';
-import type { ParseOptions } from '@effect/schema/AST';
import { memoize } from '$lib/memoize.js';
export const effectToJSONSchema = (schema: Schema.Schema) => {
diff --git a/src/lib/adapters/typeSchema.ts b/src/lib/adapters/typeSchema.ts
index 33d6f84f..9aea763d 100644
--- a/src/lib/adapters/typeSchema.ts
+++ b/src/lib/adapters/typeSchema.ts
@@ -18,12 +18,12 @@ import type { ZodSchema, input, output } from 'zod';
import type { SchemaTypes, Infer as VineInfer } from '@vinejs/vine/types';
import type { FromSchema, JSONSchema } from 'json-schema-to-ts';
import type { Struct, Infer as Infer$2 } from 'superstruct';
-import type { Schema as Schema$1 } from '@effect/schema/Schema';
+import type { Schema as Schema$1 } from 'effect';
/*
import type { SchemaObject } from 'ajv';
import type { Type as Type$1 } from '@deepkit/type';
-import type { Schema as Schema$1 } from '@effect/schema/Schema';
+import type { Schema as Schema$1 } from 'effect';
import type { Any, OutputOf, TypeOf } from 'io-ts';
import type { Predicate, Infer as Infer$1 } from 'ow';
import type { Runtype, Static } from 'runtypes';
diff --git a/src/routes/(v2)/v2/effect/schema.ts b/src/routes/(v2)/v2/effect/schema.ts
index a49f18d0..4d0783cb 100644
--- a/src/routes/(v2)/v2/effect/schema.ts
+++ b/src/routes/(v2)/v2/effect/schema.ts
@@ -1,4 +1,4 @@
-import { Schema } from '@effect/schema';
+import { Schema } from 'effect';
const emailRegex = /^[^@]+@[^@]+\.[^@]+$/;
diff --git a/src/tests/superValidate.test.ts b/src/tests/superValidate.test.ts
index 62f08c16..0a802fa5 100644
--- a/src/tests/superValidate.test.ts
+++ b/src/tests/superValidate.test.ts
@@ -79,7 +79,7 @@ import {
import { schemasafe } from '$lib/adapters/schemasafe.js';
import { effect } from '$lib/adapters/effect.js';
-import { Schema } from '@effect/schema';
+import { Schema } from 'effect';
import { traversePath } from '$lib/traversal.js';
import { splitPath } from '$lib/stringPath.js';