@evolu/react-native 3.0.3 → 3.0.4
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.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Evolu, InvalidMnemonicError, Mnemonic
|
|
1
|
+
import { Config, Evolu, InvalidMnemonicError, Mnemonic } from "@evolu/common";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
export { Id, NonEmptyString1000, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, canUseDom, cast, id, } from "@evolu/common";
|
|
4
4
|
export type { EvoluError, InvalidMnemonicError, Mnemonic, Owner, OwnerId, SyncState, Timestamp, TimestampError, UnexpectedError, } from "@evolu/common";
|
|
@@ -35,7 +35,7 @@ export * from "@evolu/common-react";
|
|
|
35
35
|
*
|
|
36
36
|
* const evolu = createEvolu(Database);
|
|
37
37
|
*/
|
|
38
|
-
export declare const createEvolu: <From, To extends
|
|
38
|
+
export declare const createEvolu: <From, To extends import("@evolu/common").DatabaseSchema>(schema: import("@effect/schema/Schema").Schema<From, To>, config?: Partial<Config> | undefined) => Evolu<To>;
|
|
39
39
|
/** Parse a string to {@link Mnemonic}. */
|
|
40
40
|
export declare const parseMnemonic: (mnemonic: string) => Effect.Effect<never, InvalidMnemonicError, Mnemonic>;
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,KAAK,EAGL,oBAAoB,EACpB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,KAAK,EAGL,oBAAoB,EACpB,QAAQ,EAKT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAC;AAavC,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,UAAU,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,IAAI,EACJ,EAAE,GACH,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,cAAc,qBAAqB,CAAC;AAWpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,WAAW,wKAAmC,CAAC;AAE5D,0CAA0C;AAC1C,eAAO,MAAM,aAAa,EAAE,CAC1B,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,oBAAoB,EAAE,QAAQ,CAGjD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/react-native",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Evolu for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"expo-sqlite": "~11.3.3",
|
|
40
40
|
"react-native": "0.72.6",
|
|
41
41
|
"typescript": "^5.3.3",
|
|
42
|
-
"vitest": "^1.0.
|
|
43
|
-
"@evolu/common": "2.2.
|
|
44
|
-
"@evolu/common-react": "3.0.
|
|
42
|
+
"vitest": "^1.0.4",
|
|
43
|
+
"@evolu/common": "2.2.4",
|
|
44
|
+
"@evolu/common-react": "3.0.2",
|
|
45
45
|
"@evolu/tsconfig": "0.0.2",
|
|
46
46
|
"eslint-config-evolu": "1.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@evolu/common-react": "^3.0.
|
|
49
|
+
"@evolu/common-react": "^3.0.2",
|
|
50
50
|
"expo": "^49.0.20",
|
|
51
51
|
"expo-sqlite": "~11.3.3",
|
|
52
52
|
"react-native": "^0.72.4"
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
InvalidMnemonicError,
|
|
9
9
|
Mnemonic,
|
|
10
10
|
NanoIdLive,
|
|
11
|
-
Schema,
|
|
12
11
|
SecretBoxLive,
|
|
13
12
|
SyncWorkerLive,
|
|
14
13
|
makeCreateEvolu,
|
|
@@ -54,11 +53,7 @@ export { jsonArrayFrom, jsonObjectFrom } from "kysely/helpers/sqlite";
|
|
|
54
53
|
export * from "@evolu/common-react";
|
|
55
54
|
|
|
56
55
|
/** Evolu for native platform. */
|
|
57
|
-
const EvoluNativeLive: Layer.Layer<
|
|
58
|
-
Config,
|
|
59
|
-
never,
|
|
60
|
-
Evolu<Schema>
|
|
61
|
-
> = EvoluCommonLive.pipe(
|
|
56
|
+
const EvoluNativeLive: Layer.Layer<Config, never, Evolu> = EvoluCommonLive.pipe(
|
|
62
57
|
Layer.provide(Layer.mergeAll(FlushSyncLive, AppStateLive, DbWorkerLive)),
|
|
63
58
|
Layer.provide(
|
|
64
59
|
Layer.mergeAll(Bip39Live, NanoIdLive, SqliteLive, SyncWorkerLive),
|