@evolu/react-native 10.1.1 → 11.1.0
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/dbFactory.d.ts.map +1 -1
- package/dist/dbFactory.js +4 -1
- package/dist/index.native.d.ts +1 -1
- package/dist/index.native.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/dbFactory.ts +2 -1
package/dist/dbFactory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dbFactory.d.ts","sourceRoot":"","sources":["../src/dbFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAGZ,aAAa,EACb,WAAW,EAKZ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"dbFactory.d.ts","sourceRoot":"","sources":["../src/dbFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAGZ,aAAa,EACb,WAAW,EAKZ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAMtC,eAAO,MAAM,mBAAmB,oEAK/B,CAAC;AAEF,eAAO,MAAM,eAAe,wCAE1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,0CAE5B,CAAC;AAEH,eAAO,MAAM,uBAAuB,yCAsBnC,CAAC"}
|
package/dist/dbFactory.js
CHANGED
|
@@ -5,8 +5,11 @@ import * as Layer from "effect/Layer";
|
|
|
5
5
|
import { customAlphabet, nanoid } from "nanoid/index.browser.js";
|
|
6
6
|
import { AppStateLive, SyncLockLive } from "./PlatformLive.js";
|
|
7
7
|
import { SqliteLive } from "./SqliteLive.js";
|
|
8
|
+
export const NanoIdGeneratorLive = createNanoIdGeneratorLive(
|
|
8
9
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9
|
-
|
|
10
|
+
customAlphabet,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
12
|
+
nanoid);
|
|
10
13
|
export const SyncFactoryLive = Layer.succeed(SyncFactory, {
|
|
11
14
|
createSync: Effect.provide(createSync, SecretBox.Live),
|
|
12
15
|
});
|
package/dist/index.native.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export declare const
|
|
|
30
30
|
*
|
|
31
31
|
* const evolu = E.createEvolu(Database);
|
|
32
32
|
*/
|
|
33
|
-
createEvolu: <T extends import("@evolu/common").EvoluSchema, I>(schema: import("@effect/schema/Schema").Schema<T, I
|
|
33
|
+
createEvolu: <T extends import("@evolu/common").EvoluSchema, I>(schema: import("@effect/schema/Schema").Schema<T, I>, config?: Partial<import("@evolu/common").EvoluConfig<T>>) => import("@evolu/common").Evolu<T>;
|
|
34
34
|
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAQrC,eAAO;AACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,WAAW,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAQrC,eAAO;AACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,WAAW,wMACiE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Evolu for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"expo-sqlite": "^14.0.3",
|
|
35
35
|
"react-native": "^0.74.1",
|
|
36
36
|
"typescript": "^5.4.5",
|
|
37
|
-
"vitest": "^
|
|
38
|
-
"@evolu/common": "5.
|
|
39
|
-
"@evolu/common-react": "8.0
|
|
37
|
+
"vitest": "^2.0.0",
|
|
38
|
+
"@evolu/common": "5.4.0",
|
|
39
|
+
"@evolu/common-react": "8.1.0",
|
|
40
|
+
"@evolu/react": "8.2.0",
|
|
40
41
|
"@evolu/tsconfig": "0.0.2",
|
|
41
|
-
"@evolu/react": "8.1.0",
|
|
42
42
|
"eslint-config-evolu": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@evolu/common-react": "^8.0
|
|
45
|
+
"@evolu/common-react": "^8.1.0",
|
|
46
46
|
"expo": "^51.0.0",
|
|
47
47
|
"expo-sqlite": "^14.0.3",
|
|
48
48
|
"react-native": "^0.74.1"
|
package/src/dbFactory.ts
CHANGED
|
@@ -18,9 +18,10 @@ import { customAlphabet, nanoid } from "nanoid/index.browser.js";
|
|
|
18
18
|
import { AppStateLive, SyncLockLive } from "./PlatformLive.js";
|
|
19
19
|
import { SqliteLive } from "./SqliteLive.js";
|
|
20
20
|
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
22
21
|
export const NanoIdGeneratorLive = createNanoIdGeneratorLive(
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
23
23
|
customAlphabet,
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
24
25
|
nanoid,
|
|
25
26
|
);
|
|
26
27
|
|