@evolu/react 8.0.1 → 8.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/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/package.json +7 -7
- package/src/index.ts +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { parseMnemonic } from "@evolu/common-web";
|
|
2
1
|
export * from "@evolu/common/public";
|
|
3
2
|
export declare const
|
|
4
3
|
/**
|
|
@@ -12,13 +11,13 @@ export declare const
|
|
|
12
11
|
* import * as E from "@evolu/react";
|
|
13
12
|
*
|
|
14
13
|
* const TodoId = E.id("Todo");
|
|
15
|
-
* type TodoId =
|
|
14
|
+
* type TodoId = typeof TodoId.Type;
|
|
16
15
|
*
|
|
17
16
|
* const TodoTable = E.table({
|
|
18
17
|
* id: TodoId,
|
|
19
18
|
* title: E.NonEmptyString1000,
|
|
20
19
|
* });
|
|
21
|
-
* type TodoTable =
|
|
20
|
+
* type TodoTable = typeof TodoTable.Type;
|
|
22
21
|
*
|
|
23
22
|
* const Database = E.database({
|
|
24
23
|
* todo: TodoTable,
|
|
@@ -26,7 +25,7 @@ export declare const
|
|
|
26
25
|
* // Prefix `_` makes the table local-only (it will not sync)
|
|
27
26
|
* _todo: TodoTable,
|
|
28
27
|
* });
|
|
29
|
-
* type Database =
|
|
28
|
+
* type Database = typeof Database.Type;
|
|
30
29
|
*
|
|
31
30
|
* const evolu = E.createEvolu(Database);
|
|
32
31
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,sBAAsB,CAAC;AASrC,eAAO;AACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,WAAW,2NAC8D,CAAC;AAE5E,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import { EvoluFactoryWeb } from "@evolu/common-web";
|
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import * as Layer from "effect/Layer";
|
|
5
5
|
import { flushSync } from "react-dom";
|
|
6
|
-
export { parseMnemonic } from "@evolu/common-web";
|
|
7
6
|
export * from "@evolu/common/public";
|
|
8
7
|
const EvoluFactoryWebReact = EvoluFactoryWeb.pipe(Layer.provide(Layer.succeed(FlushSync, flushSync)));
|
|
9
8
|
// JSDoc doesn't support destructured parameters, so we must copy-paste
|
|
@@ -21,13 +20,13 @@ export const {
|
|
|
21
20
|
* import * as E from "@evolu/react";
|
|
22
21
|
*
|
|
23
22
|
* const TodoId = E.id("Todo");
|
|
24
|
-
* type TodoId =
|
|
23
|
+
* type TodoId = typeof TodoId.Type;
|
|
25
24
|
*
|
|
26
25
|
* const TodoTable = E.table({
|
|
27
26
|
* id: TodoId,
|
|
28
27
|
* title: E.NonEmptyString1000,
|
|
29
28
|
* });
|
|
30
|
-
* type TodoTable =
|
|
29
|
+
* type TodoTable = typeof TodoTable.Type;
|
|
31
30
|
*
|
|
32
31
|
* const Database = E.database({
|
|
33
32
|
* todo: TodoTable,
|
|
@@ -35,7 +34,7 @@ export const {
|
|
|
35
34
|
* // Prefix `_` makes the table local-only (it will not sync)
|
|
36
35
|
* _todo: TodoTable,
|
|
37
36
|
* });
|
|
38
|
-
* type Database =
|
|
37
|
+
* type Database = typeof Database.Type;
|
|
39
38
|
*
|
|
40
39
|
* const evolu = E.createEvolu(Database);
|
|
41
40
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/react",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Evolu for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"evolu",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"react-dom": "^18.3.1",
|
|
35
35
|
"typescript": "^5.4.5",
|
|
36
36
|
"vitest": "^1.6.0",
|
|
37
|
-
"@evolu/common
|
|
38
|
-
"@evolu/common": "
|
|
39
|
-
"@evolu/common-web": "8.0
|
|
37
|
+
"@evolu/common": "5.2.0",
|
|
38
|
+
"@evolu/common-react": "8.0.5",
|
|
39
|
+
"@evolu/common-web": "8.1.0",
|
|
40
40
|
"@evolu/tsconfig": "0.0.2",
|
|
41
41
|
"eslint-config-evolu": "1.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@evolu/common": "^5.0
|
|
45
|
-
"@evolu/common-react": "^8.0.
|
|
46
|
-
"@evolu/common-web": "^8.0
|
|
44
|
+
"@evolu/common": "^5.2.0",
|
|
45
|
+
"@evolu/common-react": "^8.0.5",
|
|
46
|
+
"@evolu/common-web": "^8.1.0",
|
|
47
47
|
"react-dom": "^18.2.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as Effect from "effect/Effect";
|
|
|
4
4
|
import * as Layer from "effect/Layer";
|
|
5
5
|
import { flushSync } from "react-dom";
|
|
6
6
|
|
|
7
|
-
export { parseMnemonic } from "@evolu/common-web";
|
|
8
7
|
export * from "@evolu/common/public";
|
|
9
8
|
|
|
10
9
|
const EvoluFactoryWebReact = EvoluFactoryWeb.pipe(
|
|
@@ -26,13 +25,13 @@ export const {
|
|
|
26
25
|
* import * as E from "@evolu/react";
|
|
27
26
|
*
|
|
28
27
|
* const TodoId = E.id("Todo");
|
|
29
|
-
* type TodoId =
|
|
28
|
+
* type TodoId = typeof TodoId.Type;
|
|
30
29
|
*
|
|
31
30
|
* const TodoTable = E.table({
|
|
32
31
|
* id: TodoId,
|
|
33
32
|
* title: E.NonEmptyString1000,
|
|
34
33
|
* });
|
|
35
|
-
* type TodoTable =
|
|
34
|
+
* type TodoTable = typeof TodoTable.Type;
|
|
36
35
|
*
|
|
37
36
|
* const Database = E.database({
|
|
38
37
|
* todo: TodoTable,
|
|
@@ -40,7 +39,7 @@ export const {
|
|
|
40
39
|
* // Prefix `_` makes the table local-only (it will not sync)
|
|
41
40
|
* _todo: TodoTable,
|
|
42
41
|
* });
|
|
43
|
-
* type Database =
|
|
42
|
+
* type Database = typeof Database.Type;
|
|
44
43
|
*
|
|
45
44
|
* const evolu = E.createEvolu(Database);
|
|
46
45
|
*/
|