@evolu/react-web 2.4.0 → 3.0.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/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Evolu for Web (web platform)
1
+ # Evolu for React Web
2
+
3
+ This package provides Evolu for [React](https://react.dev) on the web platform (browsers). It re-exports everything from `@evolu/web` and adds React-specific functionality.
2
4
 
3
5
  ## Documentation
4
6
 
@@ -10,4 +12,4 @@ The Evolu community is on [GitHub Discussions](https://github.com/evoluhq/evolu/
10
12
 
11
13
  To chat with other community members, you can join the [Evolu Discord](https://discord.gg/2J8yyyyxtZ).
12
14
 
13
- [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/evoluhq.svg?style=social&label=Follow%20%40evoluhq)](https://twitter.com/evoluhq)
15
+ [![X](https://img.shields.io/twitter/url/https/x.com/evoluhq.svg?style=social&label=Follow%20%40evoluhq)](https://x.com/evoluhq)
@@ -1,5 +1,5 @@
1
1
  import { type IdenticonStyle, type OwnerId } from "@evolu/common";
2
- import { FC } from "react";
2
+ import { type FC } from "react";
3
3
  export declare const EvoluIdenticon: FC<{
4
4
  id: OwnerId;
5
5
  size?: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EvoluIdenticon.d.ts","sourceRoot":"","sources":["../../../src/components/EvoluIdenticon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAeA,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./EvoluIdenticon.tsx";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./EvoluIdenticon.js";
@@ -0,0 +1,3 @@
1
+ export * from "./components/index.ts";
2
+ export * from "./local-first/Evolu.ts";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./components/index.js";
2
+ export * from "./local-first/Evolu.js";
@@ -0,0 +1,5 @@
1
+ import type { ConsoleDep } from "@evolu/common";
2
+ import type { EvoluDeps } from "@evolu/common/local-first";
3
+ /** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
4
+ export declare const createEvoluDeps: (deps?: Partial<ConsoleDep>) => EvoluDeps;
5
+ //# sourceMappingURL=Evolu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Evolu.d.ts","sourceRoot":"","sources":["../../../src/local-first/Evolu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3D,oFAAoF;AACpF,eAAO,MAAM,eAAe,UAAU,OAAO,CAAC,UAAU,CAAC,KAAQ,SAG/D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { createEvoluDeps as createWebEvoluDeps } from "@evolu/web";
2
+ import { flushSync } from "react-dom";
3
+ /** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
4
+ export const createEvoluDeps = (deps = {}) => ({
5
+ ...createWebEvoluDeps(deps),
6
+ flushSync,
7
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evolu/react-web",
3
- "version": "2.4.0",
3
+ "version": "3.0.0",
4
4
  "description": "Evolu for React (web platform)",
5
5
  "keywords": [
6
6
  "evolu",
@@ -11,52 +11,52 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/evoluhq/evolu/issues"
13
13
  },
14
- "repository": "evoluhq/evolu",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/evoluhq/evolu.git"
17
+ },
15
18
  "license": "MIT",
16
19
  "author": "Daniel Steigerwald <daniel@steigerwald.cz>",
17
- "sideEffects": [],
20
+ "sideEffects": false,
18
21
  "type": "module",
19
22
  "exports": {
20
23
  ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js",
23
- "browser": "./dist/index.js"
24
+ "types": "./dist/src/index.d.ts",
25
+ "import": "./dist/src/index.js",
26
+ "browser": "./dist/src/index.js"
24
27
  }
25
28
  },
26
- "types": "./dist/index.d.ts",
29
+ "types": "./dist/src/index.d.ts",
27
30
  "files": [
28
- "dist/**",
31
+ "dist/src/**",
29
32
  "src/**",
30
33
  "README.md"
31
34
  ],
32
35
  "devDependencies": {
33
- "@types/react": "~19.1.13",
34
- "@types/react-dom": "~19.1.9",
35
- "react": "19.1.0",
36
- "react-dom": "19.1.0",
37
- "typescript": "^5.9.2",
36
+ "@types/react": "^19.2.18",
37
+ "@types/react-dom": "^19.2.4",
38
+ "@typescript/native": "npm:typescript@^7.0.2",
39
+ "react": "19.2.3",
40
+ "react-dom": "19.2.3",
38
41
  "user-agent-data-types": "^0.4.2",
39
- "vitest": "^4.0.4",
40
- "@evolu/common": "7.4.0",
41
- "@evolu/tsconfig": "0.0.2",
42
- "@evolu/web": "2.4.0"
42
+ "@evolu/common": "8.0.0",
43
+ "@evolu/typescript-config": "0.0.2",
44
+ "@evolu/web": "3.0.0"
43
45
  },
44
46
  "peerDependencies": {
45
- "@evolu/common": "^7.4.0",
46
- "@evolu/web": "^2.4.0",
47
+ "@evolu/common": "^8.0.0-next.0",
48
+ "@evolu/web": "^3.0.0-next.0",
47
49
  "react": ">=19",
48
50
  "react-dom": ">=19"
49
51
  },
50
52
  "engines": {
51
- "node": ">=22.0.0"
53
+ "node": ">=24.0.0"
52
54
  },
53
55
  "publishConfig": {
54
56
  "access": "public"
55
57
  },
56
58
  "scripts": {
57
- "build": "rimraf dist && tsc",
58
- "clean": "rimraf .turbo node_modules dist",
59
- "dev": "tsc --watch",
59
+ "build": "tsc --build tsconfig.build.json",
60
60
  "format": "prettier --write \"src/*.{ts,tsx,md}\""
61
61
  }
62
62
  }
@@ -3,7 +3,7 @@ import {
3
3
  type IdenticonStyle,
4
4
  type OwnerId,
5
5
  } from "@evolu/common";
6
- import { FC, useMemo } from "react";
6
+ import { type FC, useMemo } from "react";
7
7
 
8
8
  export const EvoluIdenticon: FC<{
9
9
  id: OwnerId;
@@ -0,0 +1 @@
1
+ export * from "./EvoluIdenticon.tsx";
package/src/index.ts CHANGED
@@ -1,11 +1,2 @@
1
- import { EvoluDeps } from "@evolu/common/local-first";
2
- import { evoluWebDeps, localAuth } from "@evolu/web";
3
- import { flushSync } from "react-dom";
4
-
5
- export * from "./components/EvoluIdenticon.js";
6
- export { localAuth };
7
-
8
- export const evoluReactWebDeps: EvoluDeps = {
9
- ...evoluWebDeps,
10
- flushSync,
11
- };
1
+ export * from "./components/index.ts";
2
+ export * from "./local-first/Evolu.ts";
@@ -0,0 +1,10 @@
1
+ import type { ConsoleDep } from "@evolu/common";
2
+ import type { EvoluDeps } from "@evolu/common/local-first";
3
+ import { createEvoluDeps as createWebEvoluDeps } from "@evolu/web";
4
+ import { flushSync } from "react-dom";
5
+
6
+ /** Creates shared Evolu dependencies for React on web with React DOM flush sync. */
7
+ export const createEvoluDeps = (deps: Partial<ConsoleDep> = {}): EvoluDeps => ({
8
+ ...createWebEvoluDeps(deps),
9
+ flushSync,
10
+ });
@@ -1 +0,0 @@
1
- {"version":3,"file":"EvoluIdenticon.d.ts","sourceRoot":"","sources":["../../src/components/EvoluIdenticon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAEpC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAeA,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { EvoluDeps } from "@evolu/common/local-first";
2
- import { localAuth } from "@evolu/web";
3
- export * from "./components/EvoluIdenticon.js";
4
- export { localAuth };
5
- export declare const evoluReactWebDeps: EvoluDeps;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAgB,SAAS,EAAE,MAAM,YAAY,CAAC;AAGrD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,eAAO,MAAM,iBAAiB,EAAE,SAG/B,CAAC"}
package/dist/index.js DELETED
@@ -1,8 +0,0 @@
1
- import { evoluWebDeps, localAuth } from "@evolu/web";
2
- import { flushSync } from "react-dom";
3
- export * from "./components/EvoluIdenticon.js";
4
- export { localAuth };
5
- export const evoluReactWebDeps = {
6
- ...evoluWebDeps,
7
- flushSync,
8
- };