vike-react 0.5.13 → 0.6.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.
@@ -1,7 +1,7 @@
1
1
  export { ClientOnly };
2
2
  import React, { lazy, useEffect, useState, startTransition } from 'react';
3
3
  function ClientOnly({ load, children, fallback, deps = [], }) {
4
- // TODO/next-major-release: remove this file/export
4
+ // TODO/next-major: remove this file/export
5
5
  console.warn('[vike-react][warning] <ClientOnly> is deprecated: use clientOnly() instead https://vike.dev/clientOnly');
6
6
  const [Component, setComponent] = useState(null);
7
7
  useEffect(() => {
package/dist/config.js CHANGED
@@ -100,6 +100,7 @@ const config = {
100
100
  cumulative: true,
101
101
  env: { client: true, server: true },
102
102
  },
103
+ // TODO/next-major: move to +react.js > strictMode ?
103
104
  reactStrictMode: {
104
105
  env: { client: true, server: true },
105
106
  },
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- // TODO/next-major-release: remove this file/export
1
+ // TODO/next-major: remove this file/export
2
2
  console.warn("[vike-react][warning][deprecation] Replace `import vikeReact from 'vike-react'` with `import vikeReact from 'vike-react/config'` (typically in your /pages/+config.js)");
3
3
  export { default } from './config.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-react",
3
- "version": "0.5.13",
3
+ "version": "0.6.0",
4
4
  "repository": "https://github.com/vikejs/vike-react",
5
5
  "type": "module",
6
6
  "exports": {
@@ -27,19 +27,19 @@
27
27
  "./__internal/integration/Loading": "./dist/integration/Loading.js"
28
28
  },
29
29
  "dependencies": {
30
- "react-streaming": "^0.3.48"
30
+ "react-streaming": "^0.4.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "react": ">=18.0.0",
34
- "react-dom": ">=18.0.0",
33
+ "react": ">=19",
34
+ "react-dom": ">=19",
35
35
  "vike": ">=0.4.182"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "^1.6.4",
39
39
  "@brillout/release-me": "^0.4.2",
40
40
  "@types/node": "^20.11.17",
41
- "@types/react": "^19.0.8",
42
- "@types/react-dom": "^19.0.3",
41
+ "@types/react": "^19.0.10",
42
+ "@types/react-dom": "^19.0.4",
43
43
  "react": "^19.0.0",
44
44
  "react-dom": "^19.0.0",
45
45
  "rimraf": "^5.0.5",