@voltro/react-native 0.83.1 → 0.85.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 +1191 -0
- package/THIRD-PARTY-NOTICES.md +1 -57
- package/dist/index.d.ts +9 -3
- package/dist/index.js +7 -4
- package/package.json +4 -4
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -5,66 +5,10 @@ property of its respective copyright holders and is used under the terms of
|
|
|
5
5
|
its license. This file is provided for attribution; it grants no rights in
|
|
6
6
|
@voltro/react-native itself, which is proprietary (see LICENSE).
|
|
7
7
|
|
|
8
|
-
Generated from the resolved runtime dependency closure (
|
|
8
|
+
Generated from the resolved runtime dependency closure (15 packages).
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## @effect/experimental@0.61.1
|
|
13
|
-
|
|
14
|
-
License: MIT
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
MIT License
|
|
18
|
-
|
|
19
|
-
Copyright (c) 2023-present The Contributors
|
|
20
|
-
|
|
21
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
23
|
-
in the Software without restriction, including without limitation the rights
|
|
24
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
26
|
-
furnished to do so, subject to the following conditions:
|
|
27
|
-
|
|
28
|
-
The above copyright notice and this permission notice shall be included in all
|
|
29
|
-
copies or substantial portions of the Software.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
|
-
SOFTWARE.
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## @effect/sql@0.52.1
|
|
41
|
-
|
|
42
|
-
License: MIT
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
MIT License
|
|
46
|
-
|
|
47
|
-
Copyright (c) 2023-present The Contributors
|
|
48
|
-
|
|
49
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
50
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
51
|
-
in the Software without restriction, including without limitation the rights
|
|
52
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
53
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
54
|
-
furnished to do so, subject to the following conditions:
|
|
55
|
-
|
|
56
|
-
The above copyright notice and this permission notice shall be included in all
|
|
57
|
-
copies or substantial portions of the Software.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
60
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
61
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
62
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
63
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
64
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
65
|
-
SOFTWARE.
|
|
66
|
-
```
|
|
67
|
-
|
|
68
12
|
## @tanstack/devtools-event-client@0.4.4
|
|
69
13
|
|
|
70
14
|
License: MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { StoreStorageProvider } from '@voltro/client';
|
|
|
27
27
|
import { SupervisorHandle } from '@voltro/client';
|
|
28
28
|
import { TokenStore } from '@voltro/client';
|
|
29
29
|
import { UpdateChannel } from '@voltro/client';
|
|
30
|
+
import { WebSocketConstructorOptions } from '@voltro/client';
|
|
30
31
|
|
|
31
32
|
export declare const appStateLifecycle: (appState: AppStateLike) => LifecycleSource;
|
|
32
33
|
|
|
@@ -227,7 +228,7 @@ export declare const DEFAULT_BACKGROUND_SYNC_TASK = "voltro-background-sync";
|
|
|
227
228
|
/** The default constructor: React Native's global `WebSocket`. Exported so the
|
|
228
229
|
* refusal below is testable — an untestable error message is one nobody has
|
|
229
230
|
* ever read. */
|
|
230
|
-
export declare const defaultWebSocketConstructor: (url: string,
|
|
231
|
+
export declare const defaultWebSocketConstructor: (url: string, options?: WebSocketConstructorOptions) => WebSocket;
|
|
231
232
|
|
|
232
233
|
/** `expo-task-manager` requires `defineTask` at module scope, once; this
|
|
233
234
|
* keeps the task body reachable from there while `register` stays lazy. */
|
|
@@ -416,6 +417,11 @@ export declare interface MobileApiBinding {
|
|
|
416
417
|
readonly wsUrl: string;
|
|
417
418
|
readonly headers?: ResolvableHeaders | undefined;
|
|
418
419
|
readonly recovery?: MountedApi['recovery'];
|
|
420
|
+
/** Durable local mirror of this api's subscriptions, resolved per
|
|
421
|
+
* connection generation (see `MountedApi.mirror`). Pass
|
|
422
|
+
* `createMirrorSource({ kv, … })` from `@voltro/local-first` with a
|
|
423
|
+
* `KvStore` over the device's storage. */
|
|
424
|
+
readonly mirror?: MountedApi['mirror'];
|
|
419
425
|
}
|
|
420
426
|
|
|
421
427
|
export declare interface MobileConnectionControls {
|
|
@@ -626,7 +632,7 @@ export declare interface StartMobileApisOptions {
|
|
|
626
632
|
* provides. Injected so this module can be tested without a socket — and so
|
|
627
633
|
* an app on a runtime with a different WebSocket can say so.
|
|
628
634
|
*/
|
|
629
|
-
readonly webSocketConstructor?: (url: string,
|
|
635
|
+
readonly webSocketConstructor?: (url: string, options?: WebSocketConstructorOptions) => WebSocket;
|
|
630
636
|
/** Override the retry schedule (default: 500ms doubling, capped at 5s). */
|
|
631
637
|
readonly retryDelayMs?: (attempt: number) => number;
|
|
632
638
|
}
|
|
@@ -728,6 +734,6 @@ export declare interface UseMobileConnectionStatusOptions {
|
|
|
728
734
|
* RN needs no connect-timeout shim (web has one): a failed connect on a device
|
|
729
735
|
* fires `error` and then `close`.
|
|
730
736
|
*/
|
|
731
|
-
export declare const wireSocket: (construct: (url: string,
|
|
737
|
+
export declare const wireSocket: (construct: (url: string, options?: WebSocketConstructorOptions) => WebSocket, onOpen: () => void, onIssue: (kind: "close" | "error" | "connect-timeout") => void) => (url: string, options?: WebSocketConstructorOptions) => WebSocket;
|
|
732
738
|
|
|
733
739
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -209,9 +209,9 @@ var S = {
|
|
|
209
209
|
keys: () => [...i.keys()]
|
|
210
210
|
};
|
|
211
211
|
}, N = (e, t) => {
|
|
212
|
-
let n = globalThis.WebSocket;
|
|
213
|
-
if (
|
|
214
|
-
return
|
|
212
|
+
let n = typeof t == "object" && !Array.isArray(t) ? void 0 : t, r = globalThis.WebSocket;
|
|
213
|
+
if (r === void 0) throw Error("startMobileApis: no global WebSocket. React Native provides one; if you are running these bindings somewhere else, pass `webSocketConstructor`.");
|
|
214
|
+
return n === void 0 ? new r(e) : new r(e, n);
|
|
215
215
|
}, P = (e, t, n) => (r, i) => {
|
|
216
216
|
let a = e(r, i);
|
|
217
217
|
return a.addEventListener("open", () => t()), a.addEventListener("close", () => n("close")), a.addEventListener("error", () => n("error")), a;
|
|
@@ -224,7 +224,8 @@ var S = {
|
|
|
224
224
|
descriptors: e.descriptors,
|
|
225
225
|
wsUrl: e.wsUrl,
|
|
226
226
|
...e.headers === void 0 ? {} : { headers: e.headers },
|
|
227
|
-
...e.recovery === void 0 ? {} : { recovery: e.recovery }
|
|
227
|
+
...e.recovery === void 0 ? {} : { recovery: e.recovery },
|
|
228
|
+
...e.mirror === void 0 ? {} : { mirror: e.mirror }
|
|
228
229
|
})),
|
|
229
230
|
...e.retryDelayMs === void 0 ? {} : { retryDelayMs: e.retryDelayMs },
|
|
230
231
|
onChange: e.onChange,
|
|
@@ -234,6 +235,8 @@ var S = {
|
|
|
234
235
|
wsUrl: e.wsUrl,
|
|
235
236
|
group: e.group,
|
|
236
237
|
...e.headers === void 0 ? {} : { headers: e.headers },
|
|
238
|
+
...e.mirror === void 0 ? {} : { mirror: e.mirror },
|
|
239
|
+
descriptors: e.descriptors,
|
|
237
240
|
...a === void 0 ? {} : { errorBus: a },
|
|
238
241
|
...o === void 0 ? {} : { recovery: o },
|
|
239
242
|
webSocketConstructor: P(t, r, i)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "React Native bindings for the framework: device-registration primitive, background-sync state machine, offline-first client defaults + connection-status surface, and the deep-link declaration shape — the credential-free mobile plumbing on top of the RN-safe React client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"node": ">=24.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@voltro/client": "0.
|
|
42
|
-
"@voltro/database": "0.
|
|
43
|
-
"@voltro/local-first": "0.
|
|
41
|
+
"@voltro/client": "0.85.0",
|
|
42
|
+
"@voltro/database": "0.85.0",
|
|
43
|
+
"@voltro/local-first": "0.85.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.0.0"
|