@roc-db/in-memory 0.2.0-pre.19 → 0.2.0-pre.20
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/dist/index.js
CHANGED
|
@@ -212,14 +212,16 @@ var updateEntity = (txn, ref, { data = {}, children = {}, parents = {}, ancestor
|
|
|
212
212
|
var createInMemoryAdapter = ({
|
|
213
213
|
operations,
|
|
214
214
|
entities,
|
|
215
|
-
snowflake = new Snowflake(1, 1)
|
|
215
|
+
snowflake = new Snowflake(1, 1),
|
|
216
|
+
session
|
|
216
217
|
}) => {
|
|
217
218
|
return createAdapter({
|
|
218
219
|
name: "in-memory",
|
|
219
220
|
operations,
|
|
220
221
|
entities,
|
|
221
222
|
functions: exports_functions,
|
|
222
|
-
snowflake
|
|
223
|
+
snowflake,
|
|
224
|
+
session
|
|
223
225
|
}, {
|
|
224
226
|
entities: new Map,
|
|
225
227
|
mutations: new Map
|
|
@@ -3,7 +3,7 @@ import type { z } from "zod";
|
|
|
3
3
|
type Entity = z.ZodObject<{
|
|
4
4
|
entity: z.ZodLiteral<string>;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const createInMemoryAdapter: <const Name extends string, const Operations extends readonly Operation[], const Entities extends readonly Entity[]>({ operations, entities, snowflake, }: {
|
|
6
|
+
export declare const createInMemoryAdapter: <const Name extends string, const Operations extends readonly Operation[], const Entities extends readonly Entity[]>({ operations, entities, snowflake, session, }: {
|
|
7
7
|
operations: Operations;
|
|
8
8
|
entities: Entities;
|
|
9
9
|
snowflake?: Snowflake;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/in-memory",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"roc-db": "0.2.0-pre.
|
|
16
|
+
"roc-db": "0.2.0-pre.20",
|
|
17
17
|
"zod": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [],
|