@evolu/react-native 1.0.6 → 1.0.8

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 CHANGED
@@ -1,4 +1,4 @@
1
- export { Id, NonEmptyString1000, Owner, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, cast, id, jsonArrayFrom, jsonObjectFrom, } from "@evolu/common";
1
+ export { Id, NonEmptyString1000, Owner, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, canUseDom, cast, id, jsonArrayFrom, jsonObjectFrom, } from "@evolu/common";
2
2
  export type { EvoluError, Mnemonic, OwnerId, SyncState } from "@evolu/common";
3
3
  export declare const create: <From, To extends import("@evolu/common").Schema>(schema: import("@effect/schema/Schema").Schema<From, To>, config?: Partial<import("@evolu/common").Config> | undefined) => import("@evolu/common-react").ReactHooks<To>;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,KAAK,EACL,WAAW,EACX,aAAa,EACb,UAAU,EACV,MAAM,EACN,UAAU,EACV,IAAI,EACJ,EAAE,EACF,aAAa,EACb,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE9E,eAAO,MAAM,MAAM,2NAkBlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,KAAK,EACL,WAAW,EACX,aAAa,EACb,UAAU,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,IAAI,EACJ,EAAE,EACF,aAAa,EACb,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE9E,eAAO,MAAM,MAAM,2NAkBlB,CAAC"}
package/dist/index.js CHANGED
@@ -5,5 +5,5 @@ import { AppStateLive, Bip39Live, FlushSyncLive, PlatformLive, SyncLockLive, } f
5
5
  import { SqliteLive } from "./SqliteLive.js";
6
6
  // Public API. It must be copy-pasted to all Evolu UI libs because re-exporting
7
7
  // from @evolu/common/Public is not working for some reason.
8
- export { Id, NonEmptyString1000, Owner, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, cast, id, jsonArrayFrom, jsonObjectFrom, } from "@evolu/common";
8
+ export { Id, NonEmptyString1000, Owner, PositiveInt, SqliteBoolean, SqliteDate, String, String1000, canUseDom, cast, id, jsonArrayFrom, jsonObjectFrom, } from "@evolu/common";
9
9
  export const create = makeReactHooksForPlatform(Layer.use(DbWorkerLive, Layer.mergeAll(SqliteLive, Bip39Live, NanoIdLive, Layer.use(SyncWorkerLive, Layer.mergeAll(SyncLockLive, FetchLive, SecretBoxLive)))), Layer.use(AppStateLive, PlatformLive), PlatformLive, Bip39Live, NanoIdLive, FlushSyncLive);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evolu/react-native",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Evolu for React Native",
5
5
  "keywords": [
6
6
  "evolu",
@@ -34,13 +34,13 @@
34
34
  "expo-updates": "^0.18.16"
35
35
  },
36
36
  "devDependencies": {
37
- "eslint": "^8.51.0",
37
+ "eslint": "^8.52.0",
38
38
  "expo": "^49.0.16",
39
39
  "expo-sqlite": "~11.6.0",
40
40
  "react-native": "^0.72.6",
41
41
  "typescript": "^5.2.2",
42
42
  "vitest": "^0.34.6",
43
- "@evolu/common": "1.0.10",
43
+ "@evolu/common": "1.0.13",
44
44
  "@evolu/common-react": "1.0.7",
45
45
  "@evolu/tsconfig": "0.0.2",
46
46
  "eslint-config-evolu": "0.0.2"
package/src/index.ts CHANGED
@@ -27,6 +27,7 @@ export {
27
27
  SqliteDate,
28
28
  String,
29
29
  String1000,
30
+ canUseDom,
30
31
  cast,
31
32
  id,
32
33
  jsonArrayFrom,