@aaqu/fromcubes-portal-react 0.1.0-alpha.26 → 0.1.0-alpha.27

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.
@@ -95,6 +95,9 @@
95
95
  */
96
96
 
97
97
  const crypto = require("crypto");
98
+ const packageInfo = require("../package.json");
99
+
100
+ const CACHE_SCHEMA_VERSION = "portal-react-cache-v2";
98
101
 
99
102
  module.exports = function (RED) {
100
103
  // ── Admin root prefix (for correct URLs when httpAdminRoot is set) ──
@@ -943,7 +946,9 @@ module.exports = function (RED) {
943
946
  "createRoot(document.getElementById('root')).render(React.createElement(App));",
944
947
  ].join("\n");
945
948
 
946
- const jsxHash = hash(fullJsx);
949
+ const jsxHash = hash(
950
+ [CACHE_SCHEMA_VERSION, packageInfo.version, fullJsx].join("\0"),
951
+ );
947
952
 
948
953
  // ── Check: any used component or utility has its own syntax error ──
949
954
  let errorSource = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaqu/fromcubes-portal-react",
3
- "version": "0.1.0-alpha.26",
3
+ "version": "0.1.0-alpha.27",
4
4
  "description": "Fromcubes Portal - React for Node-RED with Tailwind CSS and auto complete",
5
5
  "type": "commonjs",
6
6
  "keywords": [