@instantdb/react 0.22.56 → 0.22.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instantdb/react",
3
- "version": "v0.22.56",
3
+ "version": "v0.22.57",
4
4
  "description": "Instant DB for React",
5
5
  "homepage": "https://github.com/instantdb/instant/tree/main/client/packages/react",
6
6
  "repository": {
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "eventsource": "^4.0.0",
57
- "@instantdb/react-common": "v0.22.56",
58
- "@instantdb/core": "v0.22.56",
59
- "@instantdb/version": "v0.22.56"
57
+ "@instantdb/core": "v0.22.57",
58
+ "@instantdb/version": "v0.22.57",
59
+ "@instantdb/react-common": "v0.22.57"
60
60
  },
61
61
  "scripts": {
62
62
  "test": "vitest",
package/src/index.ts CHANGED
@@ -7,6 +7,9 @@ import {
7
7
  // error
8
8
  InstantAPIError,
9
9
 
10
+ // sync table enums
11
+ SyncTableCallbackEventType,
12
+
10
13
  // types
11
14
  type QueryResponse,
12
15
  type InstantQuery,
@@ -71,6 +74,15 @@ import {
71
74
  type FileOpts,
72
75
  type UploadFileResponse,
73
76
  type DeleteFileResponse,
77
+
78
+ // sync table types
79
+ type SyncTableCallback,
80
+ type SyncTableCallbackEvent,
81
+ type SyncTableInitialSyncBatch,
82
+ type SyncTableInitialSyncComplete,
83
+ type SyncTableSyncTransaction,
84
+ type SyncTableLoadFromStorage,
85
+ type SyncTableSetupError,
74
86
  } from '@instantdb/core';
75
87
 
76
88
  import { InstantReactAbstractDatabase } from '@instantdb/react-common';
@@ -94,6 +106,9 @@ export {
94
106
  // internal
95
107
  InstantReactAbstractDatabase,
96
108
 
109
+ // sync table enums
110
+ SyncTableCallbackEventType,
111
+
97
112
  // types
98
113
  type Config,
99
114
  type InstantConfig,
@@ -158,4 +173,13 @@ export {
158
173
  type FileOpts,
159
174
  type UploadFileResponse,
160
175
  type DeleteFileResponse,
176
+
177
+ // sync table types
178
+ type SyncTableCallback,
179
+ type SyncTableCallbackEvent,
180
+ type SyncTableInitialSyncBatch,
181
+ type SyncTableInitialSyncComplete,
182
+ type SyncTableSyncTransaction,
183
+ type SyncTableLoadFromStorage,
184
+ type SyncTableSetupError,
161
185
  };