@evolu/common 2.0.2 → 2.0.3
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/src/DbWorker.js +1 -1
- package/dist/src/Evolu.js +2 -2
- package/package.json +5 -5
- package/src/DbWorker.ts +1 -1
- package/src/Evolu.ts +5 -5
package/dist/src/DbWorker.js
CHANGED
|
@@ -58,7 +58,7 @@ value === undefined || (isInsert && value == null)
|
|
|
58
58
|
row: id,
|
|
59
59
|
column: key,
|
|
60
60
|
value,
|
|
61
|
-
})))),
|
|
61
|
+
})))), (a) => a.flat(), ReadonlyArray.dedupeWith(NewMessageEquivalence));
|
|
62
62
|
const ensureSchemaByNewMessages = (messages) => Effect.gen(function* (_) {
|
|
63
63
|
const tablesMap = new Map();
|
|
64
64
|
messages.forEach((message) => {
|
package/dist/src/Evolu.js
CHANGED
|
@@ -244,6 +244,6 @@ const EvoluCommon = Layer.effect(Evolu, Effect.gen(function* (_) {
|
|
|
244
244
|
tables: schemaToTables(schema),
|
|
245
245
|
}),
|
|
246
246
|
});
|
|
247
|
-
})).pipe(Layer.
|
|
247
|
+
})).pipe(Layer.provide(Layer.mergeAll(LoadQueryLive, OnQueryLive, MutateLive)), Layer.provide(LoadingPromiseLive), Layer.provide(SubscribedQueriesLive), Layer.provide(Layer.merge(RowsStoreLive, OnCompletesLive)));
|
|
248
248
|
/** EvoluCommonLive has only platform independent side-effects. */
|
|
249
|
-
export const EvoluCommonLive = EvoluCommon.pipe(Layer.
|
|
249
|
+
export const EvoluCommonLive = EvoluCommon.pipe(Layer.provide(Layer.merge(TimeLive, NanoIdLive)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Local-first platform designed for privacy, ease of use, and no vendor lock-in to sync and backup people's lifetime data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"nanoid": "^5.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@effect/schema": "0.
|
|
55
|
+
"@effect/schema": "0.51.1",
|
|
56
56
|
"@protobuf-ts/plugin": "^2.9.1",
|
|
57
57
|
"@protobuf-ts/protoc": "^2.9.1",
|
|
58
58
|
"array-shuffle": "^3.0.0",
|
|
59
59
|
"better-sqlite3": "^9.1.1",
|
|
60
|
-
"effect": "2.0.0-next.
|
|
60
|
+
"effect": "2.0.0-next.58",
|
|
61
61
|
"eslint": "^8.54.0",
|
|
62
62
|
"typescript": "^5.3.2",
|
|
63
63
|
"vitest": "^0.34.6",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"eslint-config-evolu": "1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@effect/schema": "0.
|
|
69
|
-
"effect": "2.0.0-next.
|
|
68
|
+
"@effect/schema": "0.51.1",
|
|
69
|
+
"effect": "2.0.0-next.58"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
package/src/DbWorker.ts
CHANGED
package/src/Evolu.ts
CHANGED
|
@@ -755,13 +755,13 @@ const EvoluCommon = Layer.effect(
|
|
|
755
755
|
});
|
|
756
756
|
}),
|
|
757
757
|
).pipe(
|
|
758
|
-
Layer.
|
|
759
|
-
Layer.
|
|
760
|
-
Layer.
|
|
761
|
-
Layer.
|
|
758
|
+
Layer.provide(Layer.mergeAll(LoadQueryLive, OnQueryLive, MutateLive)),
|
|
759
|
+
Layer.provide(LoadingPromiseLive),
|
|
760
|
+
Layer.provide(SubscribedQueriesLive),
|
|
761
|
+
Layer.provide(Layer.merge(RowsStoreLive, OnCompletesLive)),
|
|
762
762
|
);
|
|
763
763
|
|
|
764
764
|
/** EvoluCommonLive has only platform independent side-effects. */
|
|
765
765
|
export const EvoluCommonLive = EvoluCommon.pipe(
|
|
766
|
-
Layer.
|
|
766
|
+
Layer.provide(Layer.merge(TimeLive, NanoIdLive)),
|
|
767
767
|
);
|