@instantdb/react-common 0.22.69 → 0.22.70

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-common",
3
- "version": "0.22.69",
3
+ "version": "0.22.70",
4
4
  "description": "Instant DB shared components for React and React Native",
5
5
  "homepage": "https://github.com/instantdb/instant/tree/main/client/packages/react-common",
6
6
  "repository": {
@@ -53,8 +53,8 @@
53
53
  "react": ">=16"
54
54
  },
55
55
  "dependencies": {
56
- "@instantdb/core": "0.22.69",
57
- "@instantdb/version": "0.22.69"
56
+ "@instantdb/core": "0.22.70",
57
+ "@instantdb/version": "0.22.70"
58
58
  },
59
59
  "scripts": {
60
60
  "test": "vitest",
@@ -42,7 +42,10 @@ const defaultAuthState = {
42
42
  export default abstract class InstantReactAbstractDatabase<
43
43
  // need to pull this schema out to another generic for query params, not sure why
44
44
  Schema extends InstantSchemaDef<any, any, any>,
45
- Config extends InstantConfig<Schema, boolean> = InstantConfig<Schema, false>,
45
+ Config extends InstantConfig<Schema, boolean | undefined> = InstantConfig<
46
+ Schema,
47
+ boolean
48
+ >,
46
49
  Rooms extends RoomSchemaShape = RoomsOf<Schema>,
47
50
  > implements IInstantDatabase<Schema>
48
51
  {
@@ -204,11 +207,7 @@ export default abstract class InstantReactAbstractDatabase<
204
207
  useQuery = <Q extends ValidQuery<Q, Schema>>(
205
208
  query: null | Q,
206
209
  opts?: InstaQLOptions,
207
- ): InstaQLLifecycleState<
208
- Schema,
209
- Q,
210
- NonNullable<Config['useDateObjects']>
211
- > => {
210
+ ): InstaQLLifecycleState<Schema, Q, Config['useDateObjects']> => {
212
211
  return useQueryInternal<Q, Schema, Config['useDateObjects']>(
213
212
  this.core,
214
213
  query,