diff --git a/apps/example-reducers/package.json b/apps/example-reducers/package.json index aecba22..05787da 100644 --- a/apps/example-reducers/package.json +++ b/apps/example-reducers/package.json @@ -19,15 +19,15 @@ "postinstall": "electron-builder install-app-deps" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "zustand": "^5.0.2", "zutron": "workspace:*" }, "devDependencies": { "@types/node": "^22.10.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.4", "electron": "^33.2.1", "electron-builder": "^25.1.8", diff --git a/apps/example-separate-handlers/package.json b/apps/example-separate-handlers/package.json index 246cf18..a97ab7b 100644 --- a/apps/example-separate-handlers/package.json +++ b/apps/example-separate-handlers/package.json @@ -19,15 +19,15 @@ "postinstall": "electron-builder install-app-deps" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "zustand": "^5.0.2", "zutron": "workspace:*" }, "devDependencies": { "@types/node": "^22.10.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.4", "electron": "^33.2.1", "electron-builder": "^25.1.8", diff --git a/apps/example-store-handlers/package.json b/apps/example-store-handlers/package.json index b9a1fc1..7d76e88 100644 --- a/apps/example-store-handlers/package.json +++ b/apps/example-store-handlers/package.json @@ -19,15 +19,15 @@ "postinstall": "electron-builder install-app-deps" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "zustand": "^5.0.2", "zutron": "workspace:*" }, "devDependencies": { "@types/node": "^22.10.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.4", "electron": "^33.2.1", "electron-builder": "^25.1.8", diff --git a/packages/zutron/package.json b/packages/zutron/package.json index a722c96..4e3763b 100644 --- a/packages/zutron/package.json +++ b/packages/zutron/package.json @@ -87,12 +87,13 @@ "@types/shelljs": "^0.8.15", "@vitest/coverage-v8": "^2.1.8", "jsdom": "^25.0.1", - "react": "^18.3.1", + "react": "^19.0.0", "rollup": "^4.28.0", "shelljs": "^0.8.5", "tsx": "^4.19.2", "typescript": "^5.7.2", - "vitest": "^2.1.8" + "vitest": "^2.1.8", + "zustand": "^5.0.2" }, "files": [ "dist/*", @@ -101,4 +102,4 @@ "preload/*", "README.md" ] -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdf3bfb..0d5a2e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,14 +33,14 @@ importers: apps/example-reducers: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) zustand: specifier: ^5.0.2 - version: 5.0.2(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)) + version: 5.0.2(@types/react@19.0.0)(react@19.0.0)(use-sync-external-store@1.2.2(react@19.0.0)) zutron: specifier: workspace:* version: link:../../packages/zutron @@ -49,11 +49,11 @@ importers: specifier: ^22.10.1 version: 22.10.1 '@types/react': - specifier: ^18.3.12 - version: 18.3.12 + specifier: ^19.0.0 + version: 19.0.0 '@types/react-dom': - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 '@vitejs/plugin-react': specifier: ^4.3.4 version: 4.3.4(vite@6.0.3(@types/node@22.10.1)(tsx@4.19.2)(yaml@2.6.1)) @@ -74,19 +74,19 @@ importers: version: 6.0.3(@types/node@22.10.1)(tsx@4.19.2)(yaml@2.6.1) wdio-electron-service: specifier: ^7.3.1 - version: 7.3.1(electron@33.2.1)(webdriverio@9.4.1) + version: 7.3.1(electron@33.2.1)(webdriverio@9.2.14) apps/example-separate-handlers: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) zustand: specifier: ^5.0.2 - version: 5.0.2(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)) + version: 5.0.2(@types/react@19.0.0)(react@19.0.0)(use-sync-external-store@1.2.2(react@19.0.0)) zutron: specifier: workspace:* version: link:../../packages/zutron @@ -95,11 +95,11 @@ importers: specifier: ^22.10.1 version: 22.10.1 '@types/react': - specifier: ^18.3.12 - version: 18.3.12 + specifier: ^19.0.0 + version: 19.0.0 '@types/react-dom': - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 '@vitejs/plugin-react': specifier: ^4.3.4 version: 4.3.4(vite@6.0.3(@types/node@22.10.1)(tsx@4.19.2)(yaml@2.6.1)) @@ -125,14 +125,14 @@ importers: apps/example-store-handlers: dependencies: react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) zustand: specifier: ^5.0.2 - version: 5.0.2(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)) + version: 5.0.2(@types/react@19.0.0)(react@19.0.0)(use-sync-external-store@1.2.2(react@19.0.0)) zutron: specifier: workspace:* version: link:../../packages/zutron @@ -141,11 +141,11 @@ importers: specifier: ^22.10.1 version: 22.10.1 '@types/react': - specifier: ^18.3.12 - version: 18.3.12 + specifier: ^19.0.0 + version: 19.0.0 '@types/react-dom': - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 '@vitejs/plugin-react': specifier: ^4.3.4 version: 4.3.4(vite@6.0.3(@types/node@22.10.1)(tsx@4.19.2)(yaml@2.6.1)) @@ -225,16 +225,13 @@ importers: electron: specifier: '>=12' version: 32.1.2 - zustand: - specifier: '>=4.0.0' - version: 5.0.1(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)) devDependencies: '@testing-library/jest-dom': specifier: ^6.6.3 version: 6.6.3 '@testing-library/react': specifier: ^16.1.0 - version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@types/shelljs': specifier: ^0.8.15 version: 0.8.15 @@ -245,8 +242,8 @@ importers: specifier: ^25.0.1 version: 25.0.1 react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 rollup: specifier: ^4.28.0 version: 4.28.0 @@ -262,6 +259,9 @@ importers: vitest: specifier: ^2.1.8 version: 2.1.8(@types/node@22.10.1)(jsdom@25.0.1) + zustand: + specifier: ^5.0.2 + version: 5.0.2(@types/react@19.0.0)(react@19.0.0)(use-sync-external-store@1.2.2(react@19.0.0)) packages: @@ -1481,14 +1481,11 @@ packages: '@types/plist@3.0.5': resolution: {integrity: sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==} - '@types/prop-types@15.7.13': - resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==} + '@types/react-dom@19.0.0': + resolution: {integrity: sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==} - '@types/react-dom@18.3.1': - resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} - - '@types/react@18.3.12': - resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==} + '@types/react@19.0.0': + resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==} '@types/responselike@1.0.3': resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==} @@ -3488,10 +3485,6 @@ packages: resolution: {integrity: sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==} engines: {node: '>= 0.6.0'} - loose-envify@1.4.0: - resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} - hasBin: true - loupe@3.1.2: resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==} @@ -4085,10 +4078,10 @@ packages: randombytes@2.1.0: resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - react-dom@18.3.1: - resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} peerDependencies: - react: ^18.3.1 + react: ^19.0.0 react-is@17.0.2: resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} @@ -4100,8 +4093,8 @@ packages: resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} engines: {node: '>=0.10.0'} - react@18.3.1: - resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} engines: {node: '>=0.10.0'} read-binary-file-arch@1.0.6: @@ -4293,8 +4286,8 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - scheduler@0.23.2: - resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} semver-compare@1.0.0: resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} @@ -5158,24 +5151,6 @@ packages: resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} - zustand@5.0.1: - resolution: {integrity: sha512-pRET7Lao2z+n5R/HduXMio35TncTlSW68WsYBq2Lg1ASspsNGjpwLAsij3RpouyV6+kHMwwwzP0bZPD70/Jx/w==} - engines: {node: '>=12.20.0'} - peerDependencies: - '@types/react': '>=18.0.0' - immer: '>=9.0.6' - react: '>=18.0.0' - use-sync-external-store: '>=1.2.0' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true - use-sync-external-store: - optional: true - zustand@5.0.2: resolution: {integrity: sha512-8qNdnJVJlHlrKXi50LDqqUNmUbuBjoKLrYQBnoChIbVph7vni+sY+YpvdjXG9YLd/Bxr6scMcR+rm5H3aSqPaw==} engines: {node: '>=12.20.0'} @@ -6210,15 +6185,15 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@babel/runtime': 7.26.0 '@testing-library/dom': 10.4.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) optionalDependencies: - '@types/react': 18.3.12 - '@types/react-dom': 18.3.1 + '@types/react': 19.0.0 + '@types/react-dom': 19.0.0 '@testing-library/webdriverio@3.2.1(webdriverio@9.4.1)': dependencies: @@ -6359,15 +6334,12 @@ snapshots: xmlbuilder: 15.1.1 optional: true - '@types/prop-types@15.7.13': {} - - '@types/react-dom@18.3.1': + '@types/react-dom@19.0.0': dependencies: - '@types/react': 18.3.12 + '@types/react': 19.0.0 - '@types/react@18.3.12': + '@types/react@19.0.0': dependencies: - '@types/prop-types': 15.7.13 csstype: 3.1.3 '@types/responselike@1.0.3': @@ -8862,10 +8834,6 @@ snapshots: loglevel@1.9.2: {} - loose-envify@1.4.0: - dependencies: - js-tokens: 4.0.0 - loupe@3.1.2: {} lowercase-keys@2.0.0: {} @@ -9465,11 +9433,10 @@ snapshots: dependencies: safe-buffer: 5.2.1 - react-dom@18.3.1(react@18.3.1): + react-dom@19.0.0(react@19.0.0): dependencies: - loose-envify: 1.4.0 - react: 18.3.1 - scheduler: 0.23.2 + react: 19.0.0 + scheduler: 0.25.0 react-is@17.0.2: {} @@ -9477,9 +9444,7 @@ snapshots: react-refresh@0.14.2: {} - react@18.3.1: - dependencies: - loose-envify: 1.4.0 + react@19.0.0: {} read-binary-file-arch@1.0.6: dependencies: @@ -9743,9 +9708,7 @@ snapshots: dependencies: xmlchars: 2.2.0 - scheduler@0.23.2: - dependencies: - loose-envify: 1.4.0 + scheduler@0.25.0: {} semver-compare@1.0.0: optional: true @@ -10238,9 +10201,9 @@ snapshots: urlpattern-polyfill@10.0.0: {} - use-sync-external-store@1.2.2(react@18.3.1): + use-sync-external-store@1.2.2(react@19.0.0): dependencies: - react: 18.3.1 + react: 19.0.0 optional: true userhome@1.0.1: {} @@ -10351,6 +10314,28 @@ snapshots: dependencies: defaults: 1.0.4 + wdio-electron-service@7.3.1(electron@33.2.1)(webdriverio@9.2.14): + dependencies: + '@vitest/spy': 2.1.5 + '@wdio/electron-types': 7.3.1 + '@wdio/electron-utils': 7.3.1 + '@wdio/globals': 9.2.14(@wdio/logger@9.1.3) + '@wdio/logger': 9.1.3 + compare-versions: 6.1.1 + debug: 4.3.7(supports-color@8.1.1) + electron-to-chromium: 1.5.63 + fast-copy: 3.0.2 + read-package-up: 11.0.0 + tinyspy: 3.0.2 + webdriverio: 9.2.14 + optionalDependencies: + electron: 33.2.1 + transitivePeerDependencies: + - bufferutil + - puppeteer-core + - supports-color + - utf-8-validate + wdio-electron-service@7.3.1(electron@33.2.1)(webdriverio@9.4.1): dependencies: '@vitest/spy': 2.1.5 @@ -10390,7 +10375,6 @@ snapshots: - bufferutil - supports-color - utf-8-validate - optional: true webdriver@9.4.1: dependencies: @@ -10442,7 +10426,6 @@ snapshots: - bufferutil - supports-color - utf-8-validate - optional: true webdriverio@9.4.1: dependencies: @@ -10648,14 +10631,8 @@ snapshots: compress-commons: 6.0.2 readable-stream: 4.5.2 - zustand@5.0.1(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)): - optionalDependencies: - '@types/react': 18.3.12 - react: 18.3.1 - use-sync-external-store: 1.2.2(react@18.3.1) - - zustand@5.0.2(@types/react@18.3.12)(react@18.3.1)(use-sync-external-store@1.2.2(react@18.3.1)): + zustand@5.0.2(@types/react@19.0.0)(react@19.0.0)(use-sync-external-store@1.2.2(react@19.0.0)): optionalDependencies: - '@types/react': 18.3.12 - react: 18.3.1 - use-sync-external-store: 1.2.2(react@18.3.1) + '@types/react': 19.0.0 + react: 19.0.0 + use-sync-external-store: 1.2.2(react@19.0.0)