@couch-kit/client 0.8.7 → 0.8.9
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 +14 -0
- package/README.md +15 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @couch-kit/client
|
|
2
2
|
|
|
3
|
+
## 0.8.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ec8a0ae`](https://github.com/faluciano/react-native-couch-kit/commit/ec8a0ae2626fce135d553e88eca1f0ad59d54e2d)]:
|
|
8
|
+
- @couch-kit/core@0.9.3
|
|
9
|
+
|
|
10
|
+
## 0.8.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`0064a42`](https://github.com/faluciano/react-native-couch-kit/commit/0064a42e0593d2ed2734c27926c5df686dcf3b5f)]:
|
|
15
|
+
- @couch-kit/core@0.9.2
|
|
16
|
+
|
|
3
17
|
## 0.8.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @couch-kit/client
|
|
2
2
|
|
|
3
|
-
The client-side
|
|
3
|
+
The client-side React hooks for the web controller.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -159,6 +159,20 @@ function App() {
|
|
|
159
159
|
}
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
+
### 4. Debug Panel
|
|
163
|
+
|
|
164
|
+
Captures connection status, state history, and action log for use with the `@couch-kit/devtools` overlay (or your own debug UI).
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
import { useGameClient, useDebugPanel } from "@couch-kit/client";
|
|
168
|
+
|
|
169
|
+
const client = useGameClient({ reducer, initialState });
|
|
170
|
+
const debugData = useDebugPanel(client);
|
|
171
|
+
// Pass `debugData` to <DebugOverlay data={debugData} /> from @couch-kit/devtools
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Returns a `DebugPanelData` object with connection status, state snapshots, and action entries.
|
|
175
|
+
|
|
162
176
|
## Notes / Limitations
|
|
163
177
|
|
|
164
178
|
- `usePreload()` preloads images via `Image()` and uses `fetch()` for other URLs; it does not currently send the protocol `ASSETS_LOADED` message. Failed assets are available via `failedAssets`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@couch-kit/client",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"clean": "rm -rf dist lib"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@couch-kit/core": "0.9.
|
|
53
|
+
"@couch-kit/core": "0.9.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"react": "^
|
|
57
|
-
"typescript": "^
|
|
56
|
+
"react": "^19.0.0",
|
|
57
|
+
"typescript": "^6.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=18.0.0"
|