@roc-db/in-memory 0.2.0-pre.39 → 0.2.0-pre.40
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
|
@@ -119,7 +119,8 @@ var createInMemoryAdapter = ({
|
|
|
119
119
|
operations,
|
|
120
120
|
entities,
|
|
121
121
|
snowflake = new Snowflake(1, 1),
|
|
122
|
-
session
|
|
122
|
+
session,
|
|
123
|
+
optimistic = true
|
|
123
124
|
}) => {
|
|
124
125
|
return createAdapter({
|
|
125
126
|
name: "in-memory",
|
|
@@ -127,7 +128,8 @@ var createInMemoryAdapter = ({
|
|
|
127
128
|
entities,
|
|
128
129
|
functions: exports_functions,
|
|
129
130
|
snowflake,
|
|
130
|
-
session
|
|
131
|
+
session,
|
|
132
|
+
optimistic
|
|
131
133
|
}, {
|
|
132
134
|
entities: new Map,
|
|
133
135
|
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, session, }: {
|
|
6
|
+
export declare const createInMemoryAdapter: <const Name extends string, const Operations extends readonly Operation[], const Entities extends readonly Entity[]>({ operations, entities, snowflake, session, optimistic, }: {
|
|
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.40",
|
|
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.40",
|
|
17
17
|
"zod": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [],
|