@shivaedev/react 0.44.0 → 0.44.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.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.44.2 - 2026-11-06
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Live screens and route loaders consume the subscription's first result without a separate query request.
|
|
8
|
+
|
|
9
|
+
## 0.44.1 - 2026-11-05
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Update `@shivaedev/contract` from 0.39.0 to 0.40.0.
|
|
14
|
+
- Update `@shivaedev/identity` from 0.27.0 to 0.28.0.
|
|
15
|
+
|
|
3
16
|
## 0.44.0 - 2026-11-05
|
|
4
17
|
|
|
5
18
|
### Breaking
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
React screens should not rebuild loading, refresh, save and session rules around every native Effect atom. This package gives queries and actions readable state, joins a record to its editable form, and keeps each session's client state together.
|
|
4
4
|
|
|
5
|
+
Live query screens and route loaders receive their first authorized result on the subscription in one RPC request. Later changes use the contract query’s hint or rerun-and-compare behavior.
|
|
6
|
+
|
|
5
7
|
## Why you want this
|
|
6
8
|
|
|
7
9
|
A refresh should not blank a useful screen. A save response should not erase what someone typed while waiting. Signing in as someone else should not inherit the previous person's draft. These hooks and the session boundary handle those transitions around native atoms and forms:
|
|
@@ -1188,7 +1190,7 @@ notesScreen.it("a command refetches the rendered notes through native RPC", [],
|
|
|
1188
1190
|
|
|
1189
1191
|
`render(node, options?)` returns the attached `container`, its fresh native `registry`, `render(nextNode)` to update the same root and registry, and `unmount()` to release the root, registry and container. The options are React's own `RootOptions`, passed to `createRoot`, including `onCaughtError`, `onUncaughtError` and `onRecoverableError`. Acquire the view with `Effect.acquireRelease` so its scope releases it on success, failure or interruption. The screen driver's `act` adapter keeps component interactions and settling inside React's `act`. `expectNoReactWarnings()` registers a Vitest hook that fails a test if it logged to `console.error`.
|
|
1190
1192
|
|
|
1191
|
-
The RPC layer stays application-owned: replace these in-memory handlers with the service Layer your component needs.
|
|
1193
|
+
The RPC layer stays application-owned: replace these in-memory handlers with the service Layer your component needs. Services declare their dependencies once in `requires` and yield them in their operations, including `Identity` for the caller. Register caller-dependent Layers in the host’s `requestServices` slot and shared repository Layers in `services`; handlers yield the service during each call and pass only the operation’s payload. Test-support services follow the same model, with `Effect.void` initialization when they own no lifetime state and captured-context bridges in `adapters/`.
|
|
1192
1194
|
|
|
1193
1195
|
For a boundary fallback test, keep the warnings guard and declare the caught error inside the test. `expectCaughtError(predicate)` returns an `onCaughtError` handler that accepts matching errors without logging them. The guard fails if the handler receives any other error or the expected error never arrives. Other console errors and React warnings still fail the guard.
|
|
1194
1196
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/react",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.2",
|
|
4
4
|
"description": "React query, action, editor and session hooks for native Effect atoms",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@shivaedev/access": "0.6.0",
|
|
49
|
-
"@shivaedev/contract": "0.
|
|
49
|
+
"@shivaedev/contract": "0.41.0",
|
|
50
50
|
"@shivaedev/errors": "0.10.0",
|
|
51
51
|
"@shivaedev/form": "0.19.0",
|
|
52
|
-
"@shivaedev/identity": "0.
|
|
52
|
+
"@shivaedev/identity": "0.29.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@effect/atom-react": "4.1.0",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"@effect/sql-pg": "4.1.0",
|
|
58
58
|
"@effect/sql-sqlite-node": "4.1.0",
|
|
59
59
|
"@shivaedev/changes": "0.11.0",
|
|
60
|
-
"@shivaedev/jobs": "0.
|
|
61
|
-
"@shivaedev/quality": "0.
|
|
62
|
-
"@shivaedev/server": "0.
|
|
60
|
+
"@shivaedev/jobs": "0.40.1",
|
|
61
|
+
"@shivaedev/quality": "0.67.0",
|
|
62
|
+
"@shivaedev/server": "0.29.0",
|
|
63
63
|
"@shivaedev/service": "0.8.0",
|
|
64
|
-
"@shivaedev/sql": "0.
|
|
65
|
-
"@shivaedev/test-kits": "0.
|
|
66
|
-
"@shivaedev/test-sql": "0.24.
|
|
67
|
-
"@shivaedev/test-story": "0.
|
|
64
|
+
"@shivaedev/sql": "0.44.0",
|
|
65
|
+
"@shivaedev/test-kits": "0.9.0",
|
|
66
|
+
"@shivaedev/test-sql": "0.24.2",
|
|
67
|
+
"@shivaedev/test-story": "0.43.0",
|
|
68
68
|
"@tanstack/react-router": "1.170.46",
|
|
69
69
|
"@types/node": "24.19.2",
|
|
70
70
|
"@types/react": "19.3.0",
|