@shivaedev/react 0.21.0 → 0.22.0
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 +19 -0
- package/README.md +581 -568
- package/dist/client/mountLive.d.ts.map +1 -1
- package/dist/client/mountLive.js +3 -14
- package/dist/client/mountLive.js.map +1 -1
- package/dist/client/sessionBoundary.d.ts.map +1 -1
- package/dist/client/sessionBoundary.js +16 -8
- package/dist/client/sessionBoundary.js.map +1 -1
- package/dist/internal/liveBindings.d.ts +3 -0
- package/dist/internal/liveBindings.d.ts.map +1 -0
- package/dist/internal/liveBindings.js +10 -0
- package/dist/internal/liveBindings.js.map +1 -0
- package/dist/internal/sessionRecheck.d.ts +1 -1
- package/dist/internal/sessionRecheck.d.ts.map +1 -1
- package/dist/internal/sessionRecheck.js +2 -2
- package/dist/internal/sessionRecheck.js.map +1 -1
- package/package.json +6 -6
- package/src/client/mountLive.ts +4 -16
- package/src/client/sessionBoundary.ts +24 -8
- package/src/internal/liveBindings.ts +11 -0
- package/src/internal/sessionRecheck.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.22.0 - 2026-10-29
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Forwarding proxy fixtures relay WebSocket upgrades, including the same origin and trusted proxy headers as HTTP requests. Existing proxy URLs also work for socket clients.
|
|
8
|
+
|
|
9
|
+
### Breaking
|
|
10
|
+
|
|
11
|
+
- Contract clients use Effect RPC over a shared WebSocket by default. Replace `httpClient`, `transformClient` and `serialization` client options with a native `protocol` Layer for custom transports. Node clients can supply upgrade `headers` and a `webSocketConstructor` Layer; browsers use their session cookie automatically.
|
|
12
|
+
- Mounting a bound query subscribes before its first authorized read; unmounting releases its subscription. Use `live: false` when binding an ordinary client without subscriptions. Query preparation alone no longer opens a change stream.
|
|
13
|
+
- Hosts serve live subscriptions on the WebSocket upgrade at the RPC path. Move HTTP `$changes` consumers to Effect RPC's socket protocol; the POST route serves ordinary RPC only. Configure development proxies to forward WebSocket upgrades.
|
|
14
|
+
- React session boundaries bind shared sockets to the identified session, so replacing an account upgrades with its current cookie. They also ask the auth owner to recheck when the live socket closes. Keep `recheck` safe to call after a network interruption; the auth owner still decides whether the session ends.
|
|
15
|
+
|
|
16
|
+
## 0.21.1 - 2026-10-29
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Release with updated workspace dependencies.
|
|
21
|
+
|
|
3
22
|
## 0.21.0 - 2026-10-28
|
|
4
23
|
|
|
5
24
|
### Added
|