@quintype/framework 7.34.5-react-upgrade-v19.1 → 7.34.5-react-upgrade-v19.3

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.
Files changed (2) hide show
  1. package/client/start.js +4 -8
  2. package/package.json +5 -5
package/client/start.js CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  /**
2
3
  * This module contains functions for starting JS on the browser side
3
4
  * ```javascript
@@ -11,7 +12,7 @@ import { BreakingNews, CLIENT_SIDE_RENDERED, NAVIGATE_TO_PAGE, PAGE_LOADING } fr
11
12
  import { createBrowserHistory } from "history";
12
13
  import get from "lodash/get";
13
14
  import React from "react";
14
- import { createRoot, hydrateRoot } from "react-dom/client";
15
+ import ReactDOM from "react-dom";
15
16
  import { Provider } from "react-redux";
16
17
  import { IsomorphicComponent } from "../isomorphic/component";
17
18
  import { makePickComponentSync } from "../isomorphic/impl/make-pick-component-sync";
@@ -201,14 +202,9 @@ export function renderComponent(clazz, container, store, props = {}, callback) {
201
202
  }
202
203
 
203
204
  if (props.hydrate) {
204
- const root = hydrateRoot(containerEle, component);
205
- if (typeof callback === "function") callback();
206
- return root;
205
+ return ReactDOM.hydrate(component, containerEle, callback);
207
206
  }
208
- const root = createRoot(containerEle);
209
- root.render(component);
210
- if (typeof callback === "function") callback();
211
- return root;
207
+ return ReactDOM.render(component, containerEle, callback);
212
208
  }
213
209
 
214
210
  /**
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.34.5-react-upgrade-v19.1",
3
+ "version": "7.34.5-react-upgrade-v19.3",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
7
7
  "node": "^20.0.0",
8
- "npm": "^8.5.0"
8
+ "npm": "^10.0.0"
9
9
  },
10
10
  "scripts": {
11
11
  "prepublishOnly": "npm test && ./bin-dev-scripts/standard-version-release.sh",
@@ -54,9 +54,9 @@
54
54
  "mocha-snapshots": "^4.2.0",
55
55
  "morgan": "^1.10.0",
56
56
  "path-to-regexp": "^6.2.0",
57
- "react": "^19.1.0",
58
- "react-dom": "^19.1.0",
59
- "react-redux": "^9.1.2",
57
+ "react": "^19.2.0",
58
+ "react-dom": "^19.2.0",
59
+ "react-redux": "^9.2.0",
60
60
  "react-router": "^5.2.1",
61
61
  "redux": "^4.1.1",
62
62
  "request-promise": "^4.2.6",