tinybase 6.0.0 → 6.1.0-beta.1

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.
Files changed (103) hide show
  1. package/@types/_internal/ui-react/with-schemas/index.d.cts +1 -1
  2. package/@types/_internal/ui-react/with-schemas/index.d.ts +1 -1
  3. package/@types/index.d.cts +1 -1
  4. package/@types/index.d.ts +1 -1
  5. package/@types/persisters/persister-automerge/index.d.cts +1 -1
  6. package/@types/persisters/persister-automerge/index.d.ts +1 -1
  7. package/@types/persisters/persister-automerge/with-schemas/index.d.cts +1 -1
  8. package/@types/persisters/persister-automerge/with-schemas/index.d.ts +1 -1
  9. package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +1 -1
  10. package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +1 -1
  11. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +1 -1
  12. package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +1 -1
  13. package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
  14. package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
  15. package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
  16. package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
  17. package/@types/persisters/persister-expo-sqlite/index.d.cts +1 -1
  18. package/@types/persisters/persister-expo-sqlite/index.d.ts +1 -1
  19. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +1 -1
  20. package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +1 -1
  21. package/@types/persisters/persister-libsql/index.d.cts +1 -1
  22. package/@types/persisters/persister-libsql/index.d.ts +1 -1
  23. package/@types/persisters/persister-libsql/with-schemas/index.d.cts +1 -1
  24. package/@types/persisters/persister-libsql/with-schemas/index.d.ts +1 -1
  25. package/@types/persisters/persister-partykit-client/index.d.cts +1 -1
  26. package/@types/persisters/persister-partykit-client/index.d.ts +1 -1
  27. package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +1 -1
  28. package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +1 -1
  29. package/@types/persisters/persister-partykit-server/index.d.cts +7 -7
  30. package/@types/persisters/persister-partykit-server/index.d.ts +7 -7
  31. package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +1 -1
  32. package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +1 -1
  33. package/@types/persisters/persister-pglite/index.d.cts +1 -1
  34. package/@types/persisters/persister-pglite/index.d.ts +1 -1
  35. package/@types/persisters/persister-pglite/with-schemas/index.d.cts +1 -1
  36. package/@types/persisters/persister-pglite/with-schemas/index.d.ts +1 -1
  37. package/@types/persisters/persister-postgres/index.d.cts +1 -1
  38. package/@types/persisters/persister-postgres/index.d.ts +1 -1
  39. package/@types/persisters/persister-postgres/with-schemas/index.d.cts +1 -1
  40. package/@types/persisters/persister-postgres/with-schemas/index.d.ts +1 -1
  41. package/@types/persisters/persister-powersync/index.d.cts +1 -1
  42. package/@types/persisters/persister-powersync/index.d.ts +1 -1
  43. package/@types/persisters/persister-powersync/with-schemas/index.d.cts +1 -1
  44. package/@types/persisters/persister-powersync/with-schemas/index.d.ts +1 -1
  45. package/@types/persisters/persister-sqlite3/index.d.cts +1 -1
  46. package/@types/persisters/persister-sqlite3/index.d.ts +1 -1
  47. package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +1 -1
  48. package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +1 -1
  49. package/@types/persisters/persister-yjs/index.d.cts +1 -1
  50. package/@types/persisters/persister-yjs/index.d.ts +1 -1
  51. package/@types/persisters/persister-yjs/with-schemas/index.d.cts +1 -1
  52. package/@types/persisters/persister-yjs/with-schemas/index.d.ts +1 -1
  53. package/@types/synchronizers/synchronizer-ws-client/index.d.cts +1 -1
  54. package/@types/synchronizers/synchronizer-ws-client/index.d.ts +1 -1
  55. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +1 -1
  56. package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +1 -1
  57. package/@types/synchronizers/synchronizer-ws-server/index.d.cts +1 -1
  58. package/@types/synchronizers/synchronizer-ws-server/index.d.ts +1 -1
  59. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +1 -1
  60. package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +1 -1
  61. package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.cts +1 -1
  62. package/@types/synchronizers/synchronizer-ws-server-durable-object/index.d.ts +1 -1
  63. package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.cts +1 -1
  64. package/@types/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.d.ts +1 -1
  65. package/@types/ui-react/index.d.cts +3 -3
  66. package/@types/ui-react/index.d.ts +3 -3
  67. package/@types/ui-react/with-schemas/index.d.cts +1 -1
  68. package/@types/ui-react/with-schemas/index.d.ts +1 -1
  69. package/@types/ui-react-dom/index.d.cts +1 -1
  70. package/@types/ui-react-dom/index.d.ts +1 -1
  71. package/@types/ui-react-dom/with-schemas/index.d.cts +1 -1
  72. package/@types/ui-react-dom/with-schemas/index.d.ts +1 -1
  73. package/@types/ui-react-inspector/with-schemas/index.d.cts +1 -1
  74. package/@types/ui-react-inspector/with-schemas/index.d.ts +1 -1
  75. package/@types/with-schemas/index.d.cts +1 -1
  76. package/@types/with-schemas/index.d.ts +1 -1
  77. package/index.js +1564 -1564
  78. package/min/index.js +1 -1
  79. package/min/index.js.gz +0 -0
  80. package/min/persisters/index.js +1 -1
  81. package/min/persisters/index.js.gz +0 -0
  82. package/min/persisters/with-schemas/index.js +1 -1
  83. package/min/persisters/with-schemas/index.js.gz +0 -0
  84. package/min/ui-react/index.js +1 -1
  85. package/min/ui-react/index.js.gz +0 -0
  86. package/min/ui-react/with-schemas/index.js +1 -1
  87. package/min/ui-react/with-schemas/index.js.gz +0 -0
  88. package/min/with-schemas/index.js +1 -1
  89. package/min/with-schemas/index.js.gz +0 -0
  90. package/package.json +1 -4
  91. package/persisters/index.js +95 -95
  92. package/persisters/with-schemas/index.js +95 -95
  93. package/readme.md +13 -13
  94. package/releases.md +25 -25
  95. package/synchronizers/synchronizer-ws-server-durable-object/index.js +1 -1
  96. package/synchronizers/synchronizer-ws-server-durable-object/with-schemas/index.js +1 -1
  97. package/ui-react/index.js +64 -53
  98. package/ui-react/with-schemas/index.js +64 -53
  99. package/ui-react-dom/index.js +3 -3
  100. package/ui-react-dom/with-schemas/index.js +3 -3
  101. package/ui-react-inspector/index.js +4 -4
  102. package/ui-react-inspector/with-schemas/index.js +4 -4
  103. package/with-schemas/index.js +1564 -1564
@@ -6,6 +6,7 @@
6
6
  * @module persister-pglite
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {PGlite} from '@electric-sql/pglite';
9
10
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.cts';
10
11
  import type {
11
12
  OptionalSchemas,
@@ -16,7 +17,6 @@ import type {
16
17
  Persister,
17
18
  Persists,
18
19
  } from '../../with-schemas/index.d.cts';
19
- import type {PGlite} from '@electric-sql/pglite';
20
20
 
21
21
  /**
22
22
  * The PglitePersister interface represents a Persister that lets you save and
@@ -6,6 +6,7 @@
6
6
  * @module persister-pglite
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {PGlite} from '@electric-sql/pglite';
9
10
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.ts';
10
11
  import type {
11
12
  OptionalSchemas,
@@ -16,7 +17,6 @@ import type {
16
17
  Persister,
17
18
  Persists,
18
19
  } from '../../with-schemas/index.d.ts';
19
- import type {PGlite} from '@electric-sql/pglite';
20
20
 
21
21
  /**
22
22
  * The PglitePersister interface represents a Persister that lets you save and
@@ -6,10 +6,10 @@
6
6
  * @module persister-postgres
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {Sql} from 'postgres';
9
10
  import type {MergeableStore} from '../../mergeable-store/index.d.cts';
10
11
  import type {Store} from '../../store/index.d.cts';
11
12
  import type {DatabasePersisterConfig, Persister, Persists} from '../index.d.cts';
12
- import type {Sql} from 'postgres';
13
13
 
14
14
  /**
15
15
  * The PostgresPersister interface represents a Persister that lets you save and
@@ -6,10 +6,10 @@
6
6
  * @module persister-postgres
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {Sql} from 'postgres';
9
10
  import type {MergeableStore} from '../../mergeable-store/index.d.ts';
10
11
  import type {Store} from '../../store/index.d.ts';
11
12
  import type {DatabasePersisterConfig, Persister, Persists} from '../index.d.ts';
12
- import type {Sql} from 'postgres';
13
13
 
14
14
  /**
15
15
  * The PostgresPersister interface represents a Persister that lets you save and
@@ -6,6 +6,7 @@
6
6
  * @module persister-postgres
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {Sql} from 'postgres';
9
10
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.cts';
10
11
  import type {
11
12
  OptionalSchemas,
@@ -16,7 +17,6 @@ import type {
16
17
  Persister,
17
18
  Persists,
18
19
  } from '../../with-schemas/index.d.cts';
19
- import type {Sql} from 'postgres';
20
20
 
21
21
  /**
22
22
  * The PostgresPersister interface represents a Persister that lets you save and
@@ -6,6 +6,7 @@
6
6
  * @module persister-postgres
7
7
  * @since 5.2.0
8
8
  */
9
+ import type {Sql} from 'postgres';
9
10
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.ts';
10
11
  import type {
11
12
  OptionalSchemas,
@@ -16,7 +17,6 @@ import type {
16
17
  Persister,
17
18
  Persists,
18
19
  } from '../../with-schemas/index.d.ts';
19
- import type {Sql} from 'postgres';
20
20
 
21
21
  /**
22
22
  * The PostgresPersister interface represents a Persister that lets you save and
@@ -7,9 +7,9 @@
7
7
  * @module persister-powersync
8
8
  * @since v4.8.0
9
9
  */
10
+ import type {AbstractPowerSyncDatabase} from '@powersync/common';
10
11
  import type {Store} from '../../store/index.d.cts';
11
12
  import type {DatabasePersisterConfig, Persister} from '../index.d.cts';
12
- import type {AbstractPowerSyncDatabase} from '@powersync/common';
13
13
 
14
14
  /**
15
15
  * The PowerSyncPersister interface represents a Persister that lets you save
@@ -7,9 +7,9 @@
7
7
  * @module persister-powersync
8
8
  * @since v4.8.0
9
9
  */
10
+ import type {AbstractPowerSyncDatabase} from '@powersync/common';
10
11
  import type {Store} from '../../store/index.d.ts';
11
12
  import type {DatabasePersisterConfig, Persister} from '../index.d.ts';
12
- import type {AbstractPowerSyncDatabase} from '@powersync/common';
13
13
 
14
14
  /**
15
15
  * The PowerSyncPersister interface represents a Persister that lets you save
@@ -7,6 +7,7 @@
7
7
  * @module persister-powersync
8
8
  * @since v4.8.0
9
9
  */
10
+ import type {AbstractPowerSyncDatabase} from '@powersync/common';
10
11
  import type {
11
12
  OptionalSchemas,
12
13
  Store,
@@ -15,7 +16,6 @@ import type {
15
16
  DatabasePersisterConfig,
16
17
  Persister,
17
18
  } from '../../with-schemas/index.d.cts';
18
- import type {AbstractPowerSyncDatabase} from '@powersync/common';
19
19
 
20
20
  /**
21
21
  * The PowerSyncPersister interface represents a Persister that lets you save
@@ -7,6 +7,7 @@
7
7
  * @module persister-powersync
8
8
  * @since v4.8.0
9
9
  */
10
+ import type {AbstractPowerSyncDatabase} from '@powersync/common';
10
11
  import type {
11
12
  OptionalSchemas,
12
13
  Store,
@@ -15,7 +16,6 @@ import type {
15
16
  DatabasePersisterConfig,
16
17
  Persister,
17
18
  } from '../../with-schemas/index.d.ts';
18
- import type {AbstractPowerSyncDatabase} from '@powersync/common';
19
19
 
20
20
  /**
21
21
  * The PowerSyncPersister interface represents a Persister that lets you save
@@ -7,10 +7,10 @@
7
7
  * @module persister-sqlite3
8
8
  * @since v4.0.0
9
9
  */
10
+ import type {Database} from 'sqlite3';
10
11
  import type {MergeableStore} from '../../mergeable-store/index.d.cts';
11
12
  import type {Store} from '../../store/index.d.cts';
12
13
  import type {DatabasePersisterConfig, Persister, Persists} from '../index.d.cts';
13
- import type {Database} from 'sqlite3';
14
14
 
15
15
  /**
16
16
  * The Sqlite3Persister interface represents a Persister that lets you save and
@@ -7,10 +7,10 @@
7
7
  * @module persister-sqlite3
8
8
  * @since v4.0.0
9
9
  */
10
+ import type {Database} from 'sqlite3';
10
11
  import type {MergeableStore} from '../../mergeable-store/index.d.ts';
11
12
  import type {Store} from '../../store/index.d.ts';
12
13
  import type {DatabasePersisterConfig, Persister, Persists} from '../index.d.ts';
13
- import type {Database} from 'sqlite3';
14
14
 
15
15
  /**
16
16
  * The Sqlite3Persister interface represents a Persister that lets you save and
@@ -7,6 +7,7 @@
7
7
  * @module persister-sqlite3
8
8
  * @since v4.0.0
9
9
  */
10
+ import type {Database} from 'sqlite3';
10
11
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.cts';
11
12
  import type {
12
13
  OptionalSchemas,
@@ -17,7 +18,6 @@ import type {
17
18
  Persister,
18
19
  Persists,
19
20
  } from '../../with-schemas/index.d.cts';
20
- import type {Database} from 'sqlite3';
21
21
 
22
22
  /**
23
23
  * The Sqlite3Persister interface represents a Persister that lets you save and
@@ -7,6 +7,7 @@
7
7
  * @module persister-sqlite3
8
8
  * @since v4.0.0
9
9
  */
10
+ import type {Database} from 'sqlite3';
10
11
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.ts';
11
12
  import type {
12
13
  OptionalSchemas,
@@ -17,7 +18,6 @@ import type {
17
18
  Persister,
18
19
  Persists,
19
20
  } from '../../with-schemas/index.d.ts';
20
- import type {Database} from 'sqlite3';
21
21
 
22
22
  /**
23
23
  * The Sqlite3Persister interface represents a Persister that lets you save and
@@ -10,9 +10,9 @@
10
10
  * @module persister-yjs
11
11
  * @since v4.0.0
12
12
  */
13
+ import type {Doc as YDoc} from 'yjs';
13
14
  import type {Store} from '../../store/index.d.cts';
14
15
  import type {Persister} from '../index.d.cts';
15
- import type {Doc as YDoc} from 'yjs';
16
16
 
17
17
  /**
18
18
  * The YjsPersister interface represents a Persister that lets you save and load
@@ -10,9 +10,9 @@
10
10
  * @module persister-yjs
11
11
  * @since v4.0.0
12
12
  */
13
+ import type {Doc as YDoc} from 'yjs';
13
14
  import type {Store} from '../../store/index.d.ts';
14
15
  import type {Persister} from '../index.d.ts';
15
- import type {Doc as YDoc} from 'yjs';
16
16
 
17
17
  /**
18
18
  * The YjsPersister interface represents a Persister that lets you save and load
@@ -10,12 +10,12 @@
10
10
  * @module persister-yjs
11
11
  * @since v4.0.0
12
12
  */
13
+ import type {Doc as YDoc} from 'yjs';
13
14
  import type {
14
15
  OptionalSchemas,
15
16
  Store,
16
17
  } from '../../../store/with-schemas/index.d.cts';
17
18
  import type {Persister} from '../../with-schemas/index.d.cts';
18
- import type {Doc as YDoc} from 'yjs';
19
19
 
20
20
  /**
21
21
  * The YjsPersister interface represents a Persister that lets you save and load
@@ -10,12 +10,12 @@
10
10
  * @module persister-yjs
11
11
  * @since v4.0.0
12
12
  */
13
+ import type {Doc as YDoc} from 'yjs';
13
14
  import type {
14
15
  OptionalSchemas,
15
16
  Store,
16
17
  } from '../../../store/with-schemas/index.d.ts';
17
18
  import type {Persister} from '../../with-schemas/index.d.ts';
18
- import type {Doc as YDoc} from 'yjs';
19
19
 
20
20
  /**
21
21
  * The YjsPersister interface represents a Persister that lets you save and load
@@ -8,9 +8,9 @@
8
8
  * @module synchronizer-ws-client
9
9
  * @since v5.0.0
10
10
  */
11
+ import type {WebSocket as WsWebSocket} from 'ws';
11
12
  import type {MergeableStore} from '../../mergeable-store/index.d.cts';
12
13
  import type {Receive, Send, Synchronizer} from '../index.d.cts';
13
- import type {WebSocket as WsWebSocket} from 'ws';
14
14
 
15
15
  /**
16
16
  * The WebSocketTypes type represents the valid types of WebSocket that can be
@@ -8,9 +8,9 @@
8
8
  * @module synchronizer-ws-client
9
9
  * @since v5.0.0
10
10
  */
11
+ import type {WebSocket as WsWebSocket} from 'ws';
11
12
  import type {MergeableStore} from '../../mergeable-store/index.d.ts';
12
13
  import type {Receive, Send, Synchronizer} from '../index.d.ts';
13
- import type {WebSocket as WsWebSocket} from 'ws';
14
14
 
15
15
  /**
16
16
  * The WebSocketTypes type represents the valid types of WebSocket that can be
@@ -8,10 +8,10 @@
8
8
  * @module synchronizer-ws-client
9
9
  * @since v5.0.0
10
10
  */
11
+ import type {WebSocket as WsWebSocket} from 'ws';
11
12
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.cts';
12
13
  import type {OptionalSchemas} from '../../../store/with-schemas/index.d.cts';
13
14
  import type {Receive, Send, Synchronizer} from '../../with-schemas/index.d.cts';
14
- import type {WebSocket as WsWebSocket} from 'ws';
15
15
 
16
16
  /**
17
17
  * The WebSocketTypes type represents the valid types of WebSocket that can be
@@ -8,10 +8,10 @@
8
8
  * @module synchronizer-ws-client
9
9
  * @since v5.0.0
10
10
  */
11
+ import type {WebSocket as WsWebSocket} from 'ws';
11
12
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.ts';
12
13
  import type {OptionalSchemas} from '../../../store/with-schemas/index.d.ts';
13
14
  import type {Receive, Send, Synchronizer} from '../../with-schemas/index.d.ts';
14
- import type {WebSocket as WsWebSocket} from 'ws';
15
15
 
16
16
  /**
17
17
  * The WebSocketTypes type represents the valid types of WebSocket that can be
@@ -7,11 +7,11 @@
7
7
  * @module synchronizer-ws-server
8
8
  * @since v5.0.0
9
9
  */
10
+ import type {WebSocketServer} from 'ws';
10
11
  import type {Id, IdOrNull, Ids} from '../../common/index.d.cts';
11
12
  import type {MergeableStore} from '../../mergeable-store/index.d.cts';
12
13
  import type {Persister, Persists} from '../../persisters/index.d.cts';
13
14
  import type {IdAddedOrRemoved} from '../../store/index.d.cts';
14
- import type {WebSocketServer} from 'ws';
15
15
 
16
16
  /**
17
17
  * The PathIdsListener type describes a function that is used to listen to
@@ -7,11 +7,11 @@
7
7
  * @module synchronizer-ws-server
8
8
  * @since v5.0.0
9
9
  */
10
+ import type {WebSocketServer} from 'ws';
10
11
  import type {Id, IdOrNull, Ids} from '../../common/index.d.ts';
11
12
  import type {MergeableStore} from '../../mergeable-store/index.d.ts';
12
13
  import type {Persister, Persists} from '../../persisters/index.d.ts';
13
14
  import type {IdAddedOrRemoved} from '../../store/index.d.ts';
14
- import type {WebSocketServer} from 'ws';
15
15
 
16
16
  /**
17
17
  * The PathIdsListener type describes a function that is used to listen to
@@ -7,6 +7,7 @@
7
7
  * @module synchronizer-ws-server
8
8
  * @since v5.0.0
9
9
  */
10
+ import type {WebSocketServer} from 'ws';
10
11
  import type {Id, IdOrNull, Ids} from '../../../common/with-schemas/index.d.cts';
11
12
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.cts';
12
13
  import type {
@@ -17,7 +18,6 @@ import type {
17
18
  IdAddedOrRemoved,
18
19
  OptionalSchemas,
19
20
  } from '../../../store/with-schemas/index.d.cts';
20
- import type {WebSocketServer} from 'ws';
21
21
 
22
22
  /**
23
23
  * The PathIdsListener type describes a function that is used to listen to
@@ -7,6 +7,7 @@
7
7
  * @module synchronizer-ws-server
8
8
  * @since v5.0.0
9
9
  */
10
+ import type {WebSocketServer} from 'ws';
10
11
  import type {Id, IdOrNull, Ids} from '../../../common/with-schemas/index.d.ts';
11
12
  import type {MergeableStore} from '../../../mergeable-store/with-schemas/index.d.ts';
12
13
  import type {
@@ -17,7 +18,6 @@ import type {
17
18
  IdAddedOrRemoved,
18
19
  OptionalSchemas,
19
20
  } from '../../../store/with-schemas/index.d.ts';
20
- import type {WebSocketServer} from 'ws';
21
21
 
22
22
  /**
23
23
  * The PathIdsListener type describes a function that is used to listen to
@@ -9,9 +9,9 @@
9
9
  * @module synchronizer-ws-server-durable-object
10
10
  * @since v5.4.0
11
11
  */
12
+ import {DurableObject} from 'cloudflare:workers';
12
13
  import type {Id, IdAddedOrRemoved, Ids} from '../../index.d.cts';
13
14
  import type {Persister, Persists} from '../../persisters/index.d.cts';
14
- import {DurableObject} from 'cloudflare:workers';
15
15
 
16
16
  /**
17
17
  * A WsServerDurableObject is the server component (running as a Cloudflare
@@ -9,9 +9,9 @@
9
9
  * @module synchronizer-ws-server-durable-object
10
10
  * @since v5.4.0
11
11
  */
12
+ import {DurableObject} from 'cloudflare:workers';
12
13
  import type {Id, IdAddedOrRemoved, Ids} from '../../index.d.ts';
13
14
  import type {Persister, Persists} from '../../persisters/index.d.ts';
14
- import {DurableObject} from 'cloudflare:workers';
15
15
 
16
16
  /**
17
17
  * A WsServerDurableObject is the server component (running as a Cloudflare
@@ -9,6 +9,7 @@
9
9
  * @module synchronizer-ws-server-durable-object
10
10
  * @since v5.4.0
11
11
  */
12
+ import {DurableObject} from 'cloudflare:workers';
12
13
  import type {
13
14
  Persister,
14
15
  Persists,
@@ -19,7 +20,6 @@ import type {
19
20
  Ids,
20
21
  OptionalSchemas,
21
22
  } from '../../../with-schemas/index.d.cts';
22
- import {DurableObject} from 'cloudflare:workers';
23
23
 
24
24
  /**
25
25
  * A WsServerDurableObject is the server component (running as a Cloudflare
@@ -9,6 +9,7 @@
9
9
  * @module synchronizer-ws-server-durable-object
10
10
  * @since v5.4.0
11
11
  */
12
+ import {DurableObject} from 'cloudflare:workers';
12
13
  import type {
13
14
  Persister,
14
15
  Persists,
@@ -19,7 +20,6 @@ import type {
19
20
  Ids,
20
21
  OptionalSchemas,
21
22
  } from '../../../with-schemas/index.d.ts';
22
- import {DurableObject} from 'cloudflare:workers';
23
23
 
24
24
  /**
25
25
  * A WsServerDurableObject is the server component (running as a Cloudflare
@@ -22,6 +22,7 @@
22
22
  * @module ui-react
23
23
  * @since v1.0.0
24
24
  */
25
+ import type {ComponentType, ReactElement} from 'react';
25
26
  import type {
26
27
  CheckpointIds,
27
28
  CheckpointIdsListener,
@@ -102,7 +103,6 @@ import type {
102
103
  ValuesListener,
103
104
  } from '../store/index.d.cts';
104
105
  import type {Synchronizer} from '../synchronizers/index.d.cts';
105
- import type {ComponentType, ReactElement} from 'react';
106
106
 
107
107
  /**
108
108
  * The StoreOrStoreId type is used when you need to refer to a Store in a React
@@ -11815,7 +11815,7 @@ export function usePersisterOrPersisterById(
11815
11815
  // useProvidePersister
11816
11816
  export function useProvidePersister(
11817
11817
  persisterId: Id,
11818
- persister: AnyPersister | undefined,
11818
+ persister: AnyPersister,
11819
11819
  ): void;
11820
11820
 
11821
11821
  /**
@@ -12318,7 +12318,7 @@ export function useSynchronizerOrSynchronizerById(
12318
12318
  // useProvideSynchronizer
12319
12319
  export function useProvideSynchronizer(
12320
12320
  synchronizerId: Id,
12321
- synchronizer: Synchronizer | undefined,
12321
+ synchronizer: Synchronizer,
12322
12322
  ): void;
12323
12323
 
12324
12324
  /**
@@ -22,6 +22,7 @@
22
22
  * @module ui-react
23
23
  * @since v1.0.0
24
24
  */
25
+ import type {ComponentType, ReactElement} from 'react';
25
26
  import type {
26
27
  CheckpointIds,
27
28
  CheckpointIdsListener,
@@ -102,7 +103,6 @@ import type {
102
103
  ValuesListener,
103
104
  } from '../store/index.d.ts';
104
105
  import type {Synchronizer} from '../synchronizers/index.d.ts';
105
- import type {ComponentType, ReactElement} from 'react';
106
106
 
107
107
  /**
108
108
  * The StoreOrStoreId type is used when you need to refer to a Store in a React
@@ -11815,7 +11815,7 @@ export function usePersisterOrPersisterById(
11815
11815
  // useProvidePersister
11816
11816
  export function useProvidePersister(
11817
11817
  persisterId: Id,
11818
- persister: AnyPersister | undefined,
11818
+ persister: AnyPersister,
11819
11819
  ): void;
11820
11820
 
11821
11821
  /**
@@ -12318,7 +12318,7 @@ export function useSynchronizerOrSynchronizerById(
12318
12318
  // useProvideSynchronizer
12319
12319
  export function useProvideSynchronizer(
12320
12320
  synchronizerId: Id,
12321
- synchronizer: Synchronizer | undefined,
12321
+ synchronizer: Synchronizer,
12322
12322
  ): void;
12323
12323
 
12324
12324
  /**
@@ -22,6 +22,7 @@
22
22
  * @module ui-react
23
23
  * @since v1.0.0
24
24
  */
25
+ import type {ReactElement} from 'react';
25
26
  import type {
26
27
  AllCellIdFromSchema,
27
28
  CellIdFromSchema,
@@ -152,7 +153,6 @@ import type {
152
153
  ValuesListener,
153
154
  } from '../../store/with-schemas/index.d.cts';
154
155
  import type {Synchronizer} from '../../synchronizers/with-schemas/index.d.cts';
155
- import type {ReactElement} from 'react';
156
156
 
157
157
  export type WithSchemas<Schemas extends OptionalSchemas> = {
158
158
  /**
@@ -22,6 +22,7 @@
22
22
  * @module ui-react
23
23
  * @since v1.0.0
24
24
  */
25
+ import type {ReactElement} from 'react';
25
26
  import type {
26
27
  AllCellIdFromSchema,
27
28
  CellIdFromSchema,
@@ -152,7 +153,6 @@ import type {
152
153
  ValuesListener,
153
154
  } from '../../store/with-schemas/index.d.ts';
154
155
  import type {Synchronizer} from '../../synchronizers/with-schemas/index.d.ts';
155
- import type {ReactElement} from 'react';
156
156
 
157
157
  export type WithSchemas<Schemas extends OptionalSchemas> = {
158
158
  /**
@@ -10,6 +10,7 @@
10
10
  * @module ui-react-dom
11
11
  * @since v4.1.0
12
12
  */
13
+ import type {ComponentType} from 'react';
13
14
  import type {Id, Ids} from '../common/index.d.cts';
14
15
  import type {
15
16
  CellProps,
@@ -22,7 +23,6 @@ import type {
22
23
  StoreOrStoreId,
23
24
  ValueProps,
24
25
  } from '../ui-react/index.d.cts';
25
- import type {ComponentType} from 'react';
26
26
 
27
27
  /**
28
28
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -10,6 +10,7 @@
10
10
  * @module ui-react-dom
11
11
  * @since v4.1.0
12
12
  */
13
+ import type {ComponentType} from 'react';
13
14
  import type {Id, Ids} from '../common/index.d.ts';
14
15
  import type {
15
16
  CellProps,
@@ -22,7 +23,6 @@ import type {
22
23
  StoreOrStoreId,
23
24
  ValueProps,
24
25
  } from '../ui-react/index.d.ts';
25
- import type {ComponentType} from 'react';
26
26
 
27
27
  /**
28
28
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -10,6 +10,7 @@
10
10
  * @module ui-react-dom
11
11
  * @since v4.1.0
12
12
  */
13
+ import type {ComponentType} from 'react';
13
14
  import type {
14
15
  CellIdFromSchema,
15
16
  TableIdFromSchema,
@@ -29,7 +30,6 @@ import type {
29
30
  import type {Id, Ids} from '../../common/with-schemas/index.d.cts';
30
31
  import type {NoSchemas} from '../../store/index.d.cts';
31
32
  import type {OptionalSchemas} from '../../store/with-schemas/index.d.cts';
32
- import type {ComponentType} from 'react';
33
33
 
34
34
  /**
35
35
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -10,6 +10,7 @@
10
10
  * @module ui-react-dom
11
11
  * @since v4.1.0
12
12
  */
13
+ import type {ComponentType} from 'react';
13
14
  import type {
14
15
  CellIdFromSchema,
15
16
  TableIdFromSchema,
@@ -29,7 +30,6 @@ import type {
29
30
  import type {Id, Ids} from '../../common/with-schemas/index.d.ts';
30
31
  import type {NoSchemas} from '../../store/index.d.ts';
31
32
  import type {OptionalSchemas} from '../../store/with-schemas/index.d.ts';
32
- import type {ComponentType} from 'react';
33
33
 
34
34
  /**
35
35
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -9,6 +9,7 @@
9
9
  * @module ui-react-inspector
10
10
  * @since v5.0.0
11
11
  */
12
+ import type {ComponentType} from 'react';
12
13
  import type {
13
14
  CellIdFromSchema,
14
15
  TableIdFromSchema,
@@ -28,7 +29,6 @@ import type {
28
29
  import type {Id, Ids} from '../../common/with-schemas/index.d.cts';
29
30
  import type {NoSchemas} from '../../store/index.d.cts';
30
31
  import type {OptionalSchemas} from '../../store/with-schemas/index.d.cts';
31
- import type {ComponentType} from 'react';
32
32
 
33
33
  /**
34
34
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -9,6 +9,7 @@
9
9
  * @module ui-react-inspector
10
10
  * @since v5.0.0
11
11
  */
12
+ import type {ComponentType} from 'react';
12
13
  import type {
13
14
  CellIdFromSchema,
14
15
  TableIdFromSchema,
@@ -28,7 +29,6 @@ import type {
28
29
  import type {Id, Ids} from '../../common/with-schemas/index.d.ts';
29
30
  import type {NoSchemas} from '../../store/index.d.ts';
30
31
  import type {OptionalSchemas} from '../../store/with-schemas/index.d.ts';
31
- import type {ComponentType} from 'react';
32
32
 
33
33
  /**
34
34
  * The CustomCell object is used to configure custom cell rendering in an HTML
@@ -10,8 +10,8 @@
10
10
  export * from '../checkpoints/with-schemas/index.d.cts';
11
11
  export * from '../common/with-schemas/index.d.cts';
12
12
  export * from '../indexes/with-schemas/index.d.cts';
13
+ export * from '../mergeable-store/with-schemas/index.d.cts';
13
14
  export * from '../metrics/with-schemas/index.d.cts';
14
15
  export * from '../queries/with-schemas/index.d.cts';
15
16
  export * from '../relationships/with-schemas/index.d.cts';
16
- export * from '../mergeable-store/with-schemas/index.d.cts';
17
17
  export * from '../store/with-schemas/index.d.cts';
@@ -10,8 +10,8 @@
10
10
  export * from '../checkpoints/with-schemas/index.d.ts';
11
11
  export * from '../common/with-schemas/index.d.ts';
12
12
  export * from '../indexes/with-schemas/index.d.ts';
13
+ export * from '../mergeable-store/with-schemas/index.d.ts';
13
14
  export * from '../metrics/with-schemas/index.d.ts';
14
15
  export * from '../queries/with-schemas/index.d.ts';
15
16
  export * from '../relationships/with-schemas/index.d.ts';
16
- export * from '../mergeable-store/with-schemas/index.d.ts';
17
17
  export * from '../store/with-schemas/index.d.ts';