@krak-stack/auth 0.2.19 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,37 +8,13 @@ Typed Effect contracts, server authentication middleware, project authorization
8
8
  bun add @krak-stack/auth effect
9
9
  ```
10
10
 
11
- ### Temporary Effect form patches
11
+ ### Effect forms
12
12
 
13
- React consumers of this interim release must patch both published form betas for
14
- stable Effect 4. The patches are bundled with Auth but are **not applied
15
- automatically** to a consuming application.
16
-
17
- ```sh
18
- mkdir -p patches
19
- cp node_modules/@krak-stack/auth/patches/*.patch patches/
20
- ```
21
-
22
- Merge these fields into the application's workspace-root `package.json`,
23
- preserving existing overrides and patches, then run `bun install`:
24
-
25
- ```json
26
- {
27
- "overrides": {
28
- "@lucas-barake/effect-form": "0.25.0-beta.6",
29
- "@lucas-barake/effect-form-react": "0.26.0-beta.5"
30
- },
31
- "patchedDependencies": {
32
- "@lucas-barake/effect-form@0.25.0-beta.6": "patches/@lucas-barake%2Feffect-form@0.25.0-beta.6.patch",
33
- "@lucas-barake/effect-form-react@0.26.0-beta.5": "patches/@lucas-barake%2Feffect-form-react@0.26.0-beta.5.patch"
34
- }
35
- }
36
- ```
37
-
38
- Commit the patches, manifest, and lockfile together. Other package managers need
39
- equivalent patch configuration. Server-only imports do not load the form
40
- libraries. See the bundled `patches/README.md` for provenance and cleanup after
41
- [upstream release PR #111](https://github.com/lucas-barake/effect-form/pull/111).
13
+ React components use `@lucas-barake/effect-form-react@1.1.0`, which supports
14
+ stable Effect 4 without compatibility patches. When upgrading from the patched
15
+ betas, remove their `patchedDependencies` entries and patch files, update any
16
+ direct form dependencies or version overrides to `1.1.0`, and run `bun install`.
17
+ Server-only imports do not load the form libraries.
42
18
 
43
19
  ### Entry points
44
20
 
@@ -218,8 +218,8 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
218
218
  readonly createdAt: Schema.Date;
219
219
  readonly updatedAt: Schema.Date;
220
220
  }>>>, Schema.toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizations", "GET", "/admin/organizations", never, Schema.toCodecStringTree<Schema.Struct<{
221
- readonly page: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
222
- readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
221
+ readonly page: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
222
+ readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
223
223
  readonly globalFilter: Schema.optional<Schema.String>;
224
224
  readonly sort: Schema.optional<Schema.declare<readonly {
225
225
  readonly id: string;
@@ -259,8 +259,8 @@ export declare const AdminApiGroup: HttpApiGroup.HttpApiGroup<"admin", HttpApiEn
259
259
  readonly pageCount: Schema.Int;
260
260
  }>;
261
261
  }>>, Schema.toCodecJson<typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listUsers", "GET", "/admin/users", never, Schema.toCodecStringTree<Schema.Struct<{
262
- readonly page: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
263
- readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
262
+ readonly page: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
263
+ readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
264
264
  readonly globalFilter: Schema.optional<Schema.String>;
265
265
  readonly sort: Schema.optional<Schema.declare<readonly {
266
266
  readonly id: string;
@@ -1,8 +1,8 @@
1
1
  import { Schema } from "effect";
2
2
  import { ServerCreateDomainPayload, ServerDomain, ServerDomainIdParams, ServerDomainRecordsResponse, ServerUpdateDomainPayload } from "../server/schema.js";
3
3
  export declare const AdminListQuery: Schema.Struct<{
4
- readonly page: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
5
- readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
4
+ readonly page: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
5
+ readonly pageSize: Schema.decodeTo<Schema.Int, Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>, never, never>;
6
6
  readonly globalFilter: Schema.optional<Schema.String>;
7
7
  readonly sort: Schema.optional<Schema.declare<readonly {
8
8
  readonly id: string;
package/dist/api.d.ts CHANGED
@@ -2158,8 +2158,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2158
2158
  readonly createdAt: import("effect/Schema").Date;
2159
2159
  readonly updatedAt: import("effect/Schema").Date;
2160
2160
  }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2161
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2162
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2161
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2162
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2163
2163
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
2164
2164
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
2165
2165
  readonly id: string;
@@ -2199,8 +2199,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2199
2199
  readonly pageCount: import("effect/Schema").Int;
2200
2200
  }>;
2201
2201
  }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2202
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2203
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2202
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2203
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2204
2204
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
2205
2205
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
2206
2206
  readonly id: string;
@@ -232,8 +232,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
232
232
  readonly updatedAt: import("effect/Schema").Date;
233
233
  }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
234
234
  readonly listOrganizations: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
235
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
236
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
235
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
236
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
237
237
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
238
238
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
239
239
  readonly id: string;
@@ -274,8 +274,8 @@ export declare const authHttpClient: (baseUrl?: string | undefined, getLocale?:
274
274
  }>;
275
275
  }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, never, never>;
276
276
  readonly listUsers: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
277
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
278
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
277
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
278
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
279
279
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
280
280
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
281
281
  readonly id: string;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@krak-stack/auth",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Effect HttpApi clients and schemas for KrakStack Auth.",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist",
8
- "patches",
9
8
  "tailwind.css"
10
9
  ],
11
10
  "type": "module",
@@ -72,14 +71,14 @@
72
71
  },
73
72
  "dependencies": {
74
73
  "@effect/atom-react": "^4.0.0",
75
- "@lucas-barake/effect-form-react": "0.26.0-beta.5",
74
+ "@lucas-barake/effect-form-react": "1.1.0",
76
75
  "react-qr-code": "^2.2.0"
77
76
  },
78
77
  "devDependencies": {
79
- "@krak-stack/registry": "0.1.39"
78
+ "@krak-stack/registry": "0.1.42"
80
79
  },
81
80
  "peerDependencies": {
82
- "@krak-stack/registry": "^0.1.39",
81
+ "@krak-stack/registry": "^0.1.42",
83
82
  "@tanstack/react-router": "^1.170.15",
84
83
  "effect": "^4.0.0",
85
84
  "input-otp": "^1.5.0",
@@ -1,66 +0,0 @@
1
- diff --git a/dist/FormReact.d.ts b/dist/FormReact.d.ts
2
- index 61b65ad3ef858a3d9994d4cfde7e47216d44b549..0431a57a4a27eefa43180fc19f04f887a25ebf24 100644
3
- --- a/dist/FormReact.d.ts
4
- +++ b/dist/FormReact.d.ts
5
- @@ -4,8 +4,8 @@ import type * as FormBuilder from "@lucas-barake/effect-form/FormBuilder";
6
- import type * as Effect from "effect/Effect";
7
- import * as Option from "effect/Option";
8
- import type * as Schema from "effect/Schema";
9
- -import * as Atom from "effect/unstable/reactivity/Atom";
10
- -import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
11
- +import * as Atom from "effect/reactivity/Atom";
12
- +import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
13
- import * as React from "react";
14
- export type FieldValue<T> = FieldStateModule.FieldValue<T>;
15
- export type FieldState<E> = FieldStateModule.FieldState<E>;
16
- diff --git a/dist/FormReact.js b/dist/FormReact.js
17
- index 03e34ec60b833b4dd220ac6faffe70b9138703cd..f313c18c5e6cdb7138e19180aeb0acd4281857fa 100644
18
- --- a/dist/FormReact.js
19
- +++ b/dist/FormReact.js
20
- @@ -4,7 +4,7 @@ import { Field, FormAtoms } from "@lucas-barake/effect-form";
21
- import { getNestedValue } from "@lucas-barake/effect-form/Path";
22
- import * as Layer from "effect/Layer";
23
- import * as Option from "effect/Option";
24
- -import * as Atom from "effect/unstable/reactivity/Atom";
25
- +import * as Atom from "effect/reactivity/Atom";
26
- import * as React from "react";
27
- import { createContext, useContext } from "react";
28
- const ArrayItemContext = /*#__PURE__*/createContext(null);
29
- diff --git a/package.json b/package.json
30
- index 416aed4983dfb7dfc1528b3cca636b860ab0986e..048e49b01201623854c1c8f042044d3f5bd64703 100644
31
- --- a/package.json
32
- +++ b/package.json
33
- @@ -41,14 +41,14 @@
34
- "@lucas-barake/effect-form": "^0.25.0-beta.6"
35
- },
36
- "devDependencies": {
37
- - "@effect/atom-react": "4.0.0-beta.52",
38
- + "@effect/atom-react": "4.0.0",
39
- "@vitejs/plugin-react": "^5.1.1",
40
- - "effect": "4.0.0-beta.52",
41
- + "effect": "4.0.0",
42
- "react": "^19.0.0"
43
- },
44
- "peerDependencies": {
45
- - "@effect/atom-react": ">=4.0.0-beta.52 <4.0.1",
46
- - "effect": ">=4.0.0-beta.52 <4.0.1",
47
- + "@effect/atom-react": "^4.0.0",
48
- + "effect": "^4.0.0",
49
- "react": "^19.0.0"
50
- },
51
- "scripts": {
52
- diff --git a/src/FormReact.tsx b/src/FormReact.tsx
53
- index 49c358e92fe04a62a9ef97dbae6665ce53e905a5..dfb2792d4b824d448bf3e8f4b469c0861422bd6f 100644
54
- --- a/src/FormReact.tsx
55
- +++ b/src/FormReact.tsx
56
- @@ -7,8 +7,8 @@ import type * as Effect from "effect/Effect"
57
- import * as Layer from "effect/Layer"
58
- import * as Option from "effect/Option"
59
- import type * as Schema from "effect/Schema"
60
- -import * as Atom from "effect/unstable/reactivity/Atom"
61
- -import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
62
- +import * as Atom from "effect/reactivity/Atom"
63
- +import type * as AtomRegistry from "effect/reactivity/AtomRegistry"
64
- import * as React from "react"
65
- import { createContext, useContext } from "react"
66
-
@@ -1,86 +0,0 @@
1
- diff --git a/dist/FormAtoms.d.ts b/dist/FormAtoms.d.ts
2
- index 08d1e4e2e8edf08cecb5b550099c3293cbd10cd7..f7b1fa4a5a7d65e8b8b3785dc9eb5397d24718b4 100644
3
- --- a/dist/FormAtoms.d.ts
4
- +++ b/dist/FormAtoms.d.ts
5
- @@ -1,7 +1,7 @@
6
- import * as Effect from "effect/Effect";
7
- import * as Option from "effect/Option";
8
- import * as Schema from "effect/Schema";
9
- -import * as Atom from "effect/unstable/reactivity/Atom";
10
- +import * as Atom from "effect/reactivity/Atom";
11
- import * as Field from "./Field.ts";
12
- import * as FormBuilder from "./FormBuilder.ts";
13
- import * as Mode from "./Mode.ts";
14
- diff --git a/dist/FormAtoms.js b/dist/FormAtoms.js
15
- index 663c4478a08eb17bfb7a11df952ced8f7812cbf8..ebaa1be93c33af0390857e945a9d414094f215ab 100644
16
- --- a/dist/FormAtoms.js
17
- +++ b/dist/FormAtoms.js
18
- @@ -3,8 +3,8 @@ import * as Effect from "effect/Effect";
19
- import { pipe } from "effect/Function";
20
- import * as Option from "effect/Option";
21
- import * as Schema from "effect/Schema";
22
- -import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
23
- -import * as Atom from "effect/unstable/reactivity/Atom";
24
- +import * as AsyncResult from "effect/reactivity/AsyncResult";
25
- +import * as Atom from "effect/reactivity/Atom";
26
- import * as Field from "./Field.js";
27
- import * as FormBuilder from "./FormBuilder.js";
28
- import { recalculateDirtyFieldsForArray, recalculateDirtySubtree } from "./internal/dirty.js";
29
- diff --git a/dist/FormBuilder.d.ts b/dist/FormBuilder.d.ts
30
- index d42cf00d24b9efea5168831549b85468a64dfcef..16dfc1af6443555454ec7e6219c94eeabce3d724 100644
31
- --- a/dist/FormBuilder.d.ts
32
- +++ b/dist/FormBuilder.d.ts
33
- @@ -1,7 +1,7 @@
34
- import type * as Effect from "effect/Effect";
35
- import type * as Option from "effect/Option";
36
- import * as Schema from "effect/Schema";
37
- -import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
38
- +import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
39
- import type { ArrayFieldDef, DecodedFromFields, EncodedFromFields, FieldDef, FieldsRecord } from "./Field.ts";
40
- /**
41
- * Flattens an intersection of field records into a single object type so that
42
- diff --git a/package.json b/package.json
43
- index 96ad0aa1729c64e8378a8cb2ad29f13b5347e568..06ae5ac6312779be749ff867b846c8f3c4ccf5b1 100644
44
- --- a/package.json
45
- +++ b/package.json
46
- @@ -36,10 +36,10 @@
47
- "license": "MIT",
48
- "sideEffects": [],
49
- "peerDependencies": {
50
- - "effect": ">=4.0.0-beta.52 <4.0.1"
51
- + "effect": "^4.0.0"
52
- },
53
- "devDependencies": {
54
- - "effect": "4.0.0-beta.52"
55
- + "effect": "4.0.0"
56
- },
57
- "scripts": {
58
- "build": "tsc -b tsconfig.json && pnpm babel",
59
- diff --git a/src/FormAtoms.ts b/src/FormAtoms.ts
60
- index bc60a7f7b676edf4d1e99f6eb4162335b3247022..60d3dadfe2ef14c0a1b66b5e16886e8870c82681 100644
61
- --- a/src/FormAtoms.ts
62
- +++ b/src/FormAtoms.ts
63
- @@ -3,8 +3,8 @@ import * as Effect from "effect/Effect"
64
- import { pipe } from "effect/Function"
65
- import * as Option from "effect/Option"
66
- import * as Schema from "effect/Schema"
67
- -import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
68
- -import * as Atom from "effect/unstable/reactivity/Atom"
69
- +import * as AsyncResult from "effect/reactivity/AsyncResult"
70
- +import * as Atom from "effect/reactivity/Atom"
71
- import * as Field from "./Field.ts"
72
- import * as FormBuilder from "./FormBuilder.ts"
73
- import { recalculateDirtyFieldsForArray, recalculateDirtySubtree } from "./internal/dirty.ts"
74
- diff --git a/src/FormBuilder.ts b/src/FormBuilder.ts
75
- index 764de854be6b072967d1140c707ba9565eda9516..6a2d0fe285ae3b2d1afc4bf928897e5b7bfb0a4b 100644
76
- --- a/src/FormBuilder.ts
77
- +++ b/src/FormBuilder.ts
78
- @@ -3,7 +3,7 @@ import type * as Option from "effect/Option"
79
- import * as Predicate from "effect/Predicate"
80
- import * as Schema from "effect/Schema"
81
- import * as SchemaGetter from "effect/SchemaGetter"
82
- -import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
83
- +import type * as AtomRegistry from "effect/reactivity/AtomRegistry"
84
-
85
- import type {
86
- AnyFieldDef,
package/patches/README.md DELETED
@@ -1,31 +0,0 @@
1
- # Temporary Effect form compatibility patches
2
-
3
- These patches backport the stable Effect 4 changes from upstream commit
4
- [`c10a53e041c9b0b338b26b2af66be5eb24f07d47`](https://github.com/lucas-barake/effect-form/commit/c10a53e041c9b0b338b26b2af66be5eb24f07d47).
5
- The fixed npm packages are awaiting [release PR #111](https://github.com/lucas-barake/effect-form/pull/111).
6
-
7
- The patches update reactivity imports in shipped JavaScript, TypeScript
8
- declarations, and source, and change Effect peer ranges to `^4.0.0`.
9
- They do not change form behavior or package versions.
10
-
11
- ## Installation
12
-
13
- The workspace-root `package.json` configures `patchedDependencies` and exact
14
- version overrides for both packages. Run `bun install` to apply them; commit
15
- these patch files, `package.json`, and `bun.lock` together. In a monorepo, configure
16
- the patches at the workspace root, not inside individual packages.
17
-
18
- Patches do **not** propagate from a published KrakStack package to a consuming
19
- application. Every application using the affected form packages must configure
20
- both patches itself. The interim Auth and Registry packages also ship copies
21
- under `patches/` for consumers to copy into their application roots.
22
-
23
- ## Removing the workaround
24
-
25
- After upstream publishes `@lucas-barake/effect-form@0.25.0-beta.7` and
26
- `@lucas-barake/effect-form-react@0.26.0-beta.6` (or newer compatible releases):
27
-
28
- 1. Update direct dependencies and KrakStack peer requirements to the fixed versions.
29
- 2. Remove the two form overrides and `patchedDependencies` entries.
30
- 3. Remove these two patch files and any copies shipped with KrakStack packages.
31
- 4. Run `bun install`, then the project's type, test, and release checks.