@evolu/react-native 2.0.0 → 2.0.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.
- package/README.md +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/src/index.ts +6 -4
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
# Evolu for React Native
|
|
2
2
|
|
|
3
3
|
[Evolu](https://github.com/evoluhq/evolu) for [React Native](https://reactnative.dev/).
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
For detailed information and usage examples, please visit [evolu.dev](https://www.evolu.dev).
|
|
8
|
+
|
|
9
|
+
## Community
|
|
10
|
+
|
|
11
|
+
The Evolu community is on [GitHub Discussions](https://github.com/evoluhq/evolu/discussions), where you can ask questions and voice ideas.
|
|
12
|
+
|
|
13
|
+
To chat with other community members, you can join the [Evolu Discord](https://discord.gg/2J8yyyyxtZ).
|
|
14
|
+
|
|
15
|
+
[](https://twitter.com/evoluhq)
|
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,EAKN,oBAAoB,EACpB,QAAQ,EAER,MAAM,EAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAC;AAYvC,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAKN,oBAAoB,EACpB,QAAQ,EAER,MAAM,EAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAC;AAYvC,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;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,MAAM,2KAGlB,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,aAAa,EAAE,CAC1B,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,oBAAoB,EAAE,QAAQ,CAGjD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { SqliteLive } from "./SqliteLive.js";
|
|
|
9
9
|
export { Id, NonEmptyString1000, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, canUseDom, cast, id, } from "@evolu/common";
|
|
10
10
|
export { jsonArrayFrom, jsonObjectFrom } from "kysely/helpers/sqlite";
|
|
11
11
|
/** Evolu for native platform. */
|
|
12
|
-
const EvoluNativeLive = EvoluCommonLive.pipe(Layer.
|
|
12
|
+
const EvoluNativeLive = EvoluCommonLive.pipe(Layer.provide(Layer.mergeAll(FlushSyncLive, AppStateLive, DbWorkerLive)), Layer.provide(Layer.mergeAll(Bip39Live, NanoIdLive, SqliteLive, SyncWorkerLive)), Layer.provide(Layer.mergeAll(SecretBoxLive, SyncLockLive, FetchLive)));
|
|
13
13
|
/**
|
|
14
14
|
* Create Evolu for React Native.
|
|
15
15
|
*
|
|
@@ -36,6 +36,6 @@ const EvoluNativeLive = EvoluCommonLive.pipe(Layer.use(Layer.mergeAll(FlushSyncL
|
|
|
36
36
|
* Evolu.create(Database);
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
export const create = EvoluReactLive.pipe(Layer.
|
|
39
|
+
export const create = EvoluReactLive.pipe(Layer.provide(EvoluNativeLive), makeCreateEvoluReact);
|
|
40
40
|
/** Parse a string to {@link Mnemonic}. */
|
|
41
41
|
export const parseMnemonic = Bip39.pipe(Effect.provide(Bip39Live), Effect.runSync).parse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/react-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Evolu for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"react-native": "^0.72.6",
|
|
41
41
|
"typescript": "^5.3.2",
|
|
42
42
|
"vitest": "^0.34.6",
|
|
43
|
-
"@evolu/common": "2.0.
|
|
44
|
-
"@evolu/common-react": "2.0.
|
|
43
|
+
"@evolu/common": "2.0.5",
|
|
44
|
+
"@evolu/common-react": "2.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": "^2.0.
|
|
49
|
+
"@evolu/common-react": "^2.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
|
@@ -56,9 +56,11 @@ const EvoluNativeLive: Layer.Layer<
|
|
|
56
56
|
never,
|
|
57
57
|
Evolu<Schema>
|
|
58
58
|
> = EvoluCommonLive.pipe(
|
|
59
|
-
Layer.
|
|
60
|
-
Layer.
|
|
61
|
-
|
|
59
|
+
Layer.provide(Layer.mergeAll(FlushSyncLive, AppStateLive, DbWorkerLive)),
|
|
60
|
+
Layer.provide(
|
|
61
|
+
Layer.mergeAll(Bip39Live, NanoIdLive, SqliteLive, SyncWorkerLive),
|
|
62
|
+
),
|
|
63
|
+
Layer.provide(Layer.mergeAll(SecretBoxLive, SyncLockLive, FetchLive)),
|
|
62
64
|
);
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -88,7 +90,7 @@ const EvoluNativeLive: Layer.Layer<
|
|
|
88
90
|
* ```
|
|
89
91
|
*/
|
|
90
92
|
export const create = EvoluReactLive.pipe(
|
|
91
|
-
Layer.
|
|
93
|
+
Layer.provide(EvoluNativeLive),
|
|
92
94
|
makeCreateEvoluReact,
|
|
93
95
|
);
|
|
94
96
|
|