@shivaedev/react 0.49.1 → 0.49.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +2 -1
  3. package/package.json +22 -22
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.49.2 - 2026-11-20
4
+
5
+ ### Changed
6
+
7
+ - Require Effect 4.1.4 and its matching platform packages.
8
+ - `useCreate` and `useEditor` accept a save failing with `Conflict` or `BadRequest` without `rejectField`. Drop `rejectField: fieldRejectionOf(Fields)` where it only repeated the default.
9
+
3
10
  ## 0.49.1 - 2026-11-19
4
11
 
5
12
  ### Changed
package/README.md CHANGED
@@ -494,7 +494,7 @@ const editor = useEditor({
494
494
  });
495
495
  ```
496
496
 
497
- Here `save` has a tagged `SubtitleRejected` failure referring to the server's `subtitle`, while the form calls the input `title`. If a tagged error's field type includes names outside the form, `rejectField` is required at compile time. This includes a broad `string` field or an optional field whose type is broader than the form's names. The mapper can return `undefined` to leave an error as a non-field failure.
497
+ Here `save` has a tagged `SubtitleRejected` failure referring to the server's `subtitle`, while the form calls the input `title`. If a tagged error's field type includes literal names outside the form, `rejectField` is required at compile time. A plain `string` field, required or optional as on `Conflict` and `BadRequest` from `@shivaedev/errors/taxonomy.ts`, does not require it: the default mapping shows a rejection naming a form field on that field and leaves any other rejection in `failure`. The mapper can return `undefined` to leave an error as a non-field failure.
498
498
 
499
499
  #### Query, command and form feedback
500
500
 
@@ -1257,6 +1257,7 @@ pnpm add @tanstack/react-router
1257
1257
  ```
1258
1258
 
1259
1259
  The package needs Node 24 or newer.
1260
+
1260
1261
  - Query identity, TTL, invalidation and action concurrency remain native atom policies. Put the registry at the lifetime boundary those policies need.
1261
1262
  - The package has no SSR registry/hydration adapter, offline write queue or optimistic reconciliation policy.
1262
1263
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/react",
3
- "version": "0.49.1",
3
+ "version": "0.49.2",
4
4
  "description": "React query, action, editor and session hooks for native Effect atoms",
5
5
  "keywords": [
6
6
  "effect"
@@ -45,31 +45,31 @@
45
45
  "README.md"
46
46
  ],
47
47
  "dependencies": {
48
- "@shivaedev/access": "0.6.4",
49
- "@shivaedev/contract": "0.48.0",
50
- "@shivaedev/errors": "0.13.0",
51
- "@shivaedev/form": "0.19.4",
52
- "@shivaedev/identity": "0.33.0"
48
+ "@shivaedev/access": "0.6.5",
49
+ "@shivaedev/contract": "0.49.0",
50
+ "@shivaedev/errors": "0.13.1",
51
+ "@shivaedev/form": "0.19.5",
52
+ "@shivaedev/identity": "0.34.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@effect/atom-react": "4.1.2",
56
- "@effect/platform-node": "4.1.2",
57
- "@effect/sql-pg": "4.1.2",
58
- "@effect/sql-sqlite-node": "4.1.2",
59
- "@shivaedev/changes": "0.14.0",
60
- "@shivaedev/jobs": "0.42.5",
61
- "@shivaedev/quality": "0.78.4",
62
- "@shivaedev/server": "0.36.0",
63
- "@shivaedev/service": "0.9.1",
64
- "@shivaedev/sql": "0.50.0",
65
- "@shivaedev/test-kits": "0.13.3",
66
- "@shivaedev/test-sql": "0.25.3",
67
- "@shivaedev/test-story": "0.48.1",
55
+ "@effect/atom-react": "4.1.4",
56
+ "@effect/platform-node": "4.1.4",
57
+ "@effect/sql-pg": "4.1.4",
58
+ "@effect/sql-sqlite-node": "4.1.4",
59
+ "@shivaedev/changes": "0.14.1",
60
+ "@shivaedev/jobs": "0.43.0",
61
+ "@shivaedev/quality": "0.78.5",
62
+ "@shivaedev/server": "0.37.0",
63
+ "@shivaedev/service": "0.9.2",
64
+ "@shivaedev/sql": "0.51.0",
65
+ "@shivaedev/test-kits": "0.13.4",
66
+ "@shivaedev/test-sql": "0.25.4",
67
+ "@shivaedev/test-story": "0.49.0",
68
68
  "@tanstack/react-router": "1.170.46",
69
69
  "@types/node": "24.19.2",
70
70
  "@types/react": "19.3.0",
71
71
  "@types/react-dom": "19.3.0",
72
- "effect": "4.1.2",
72
+ "effect": "4.1.4",
73
73
  "happy-dom": "21.0.4",
74
74
  "react": "19.3.1",
75
75
  "react-dom": "19.3.1",
@@ -77,9 +77,9 @@
77
77
  "vitest": "5.1.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@effect/atom-react": "4.1.2",
80
+ "@effect/atom-react": "4.1.4",
81
81
  "@tanstack/react-router": "1.170.46",
82
- "effect": "4.1.2",
82
+ "effect": "4.1.4",
83
83
  "react": "19.3.1"
84
84
  },
85
85
  "peerDependenciesMeta": {