dinou 3.0.2 → 3.0.4

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 (28) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dinou/core/client-error.jsx +1 -1
  3. package/dinou/core/client.jsx +1 -1
  4. package/dinou/core/server-function-proxy.js +1 -1
  5. package/dinou/esbuild/plugins-esbuild/assets-plugin.mjs +1 -0
  6. package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.mjs +6 -2
  7. package/package.json +4 -4
  8. package/packages/vendor/react-server-dom-esm/LICENSE +0 -21
  9. package/packages/vendor/react-server-dom-esm/README.md +0 -5
  10. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.development.js +0 -4477
  11. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.js +0 -1783
  12. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +0 -4544
  13. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.js +0 -2016
  14. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js +0 -5672
  15. package/packages/vendor/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js +0 -2907
  16. package/packages/vendor/react-server-dom-esm/client.browser.js +0 -7
  17. package/packages/vendor/react-server-dom-esm/client.js +0 -3
  18. package/packages/vendor/react-server-dom-esm/client.node.js +0 -7
  19. package/packages/vendor/react-server-dom-esm/esm/package.json +0 -3
  20. package/packages/vendor/react-server-dom-esm/esm/react-server-dom-esm-client.browser.development.js +0 -5586
  21. package/packages/vendor/react-server-dom-esm/esm/react-server-dom-esm-client.browser.production.js +0 -2620
  22. package/packages/vendor/react-server-dom-esm/esm/react-server-dom-esm-node-loader.production.js +0 -515
  23. package/packages/vendor/react-server-dom-esm/index.js +0 -12
  24. package/packages/vendor/react-server-dom-esm/package.json +0 -63
  25. package/packages/vendor/react-server-dom-esm/server.js +0 -6
  26. package/packages/vendor/react-server-dom-esm/server.node.js +0 -17
  27. package/packages/vendor/react-server-dom-esm/static.js +0 -6
  28. package/packages/vendor/react-server-dom-esm/static.node.js +0 -12
package/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [3.0.4]
9
+
10
+ ### Security
11
+
12
+ - Fix CVE-2025-55182 (React2Shell) – Remote Code Execution in React Server Components
13
+ - Updated internal react-server-dom-esm to custom build from React main (includes upstream security patch)
14
+ - All Dinou apps using Server Components / Server Actions are now protected
15
+
16
+ ## [3.0.3]
17
+
18
+ ### Fixed
19
+
20
+ - esbuild: stabe chunk names plugin (windows).
21
+ - esbuild: assets plugin.
22
+
8
23
  ## [3.0.2]
9
24
 
10
25
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  import { use } from "react";
2
- import { createFromFetch } from "@matthamlin/react-server-dom-esm/client";
2
+ import { createFromFetch } from "@roggc/react-server-dom-esm/client";
3
3
  import { hydrateRoot } from "react-dom/client";
4
4
 
5
5
  const cache = new Map();
@@ -1,5 +1,5 @@
1
1
  import { use } from "react";
2
- import { createFromFetch } from "@matthamlin/react-server-dom-esm/client";
2
+ import { createFromFetch } from "@roggc/react-server-dom-esm/client";
3
3
  import { hydrateRoot } from "react-dom/client";
4
4
 
5
5
  const cache = new Map();
@@ -1,5 +1,5 @@
1
1
  // public/server-function-proxy.js
2
- import { createFromFetch } from "@matthamlin/react-server-dom-esm/client";
2
+ import { createFromFetch } from "@roggc/react-server-dom-esm/client";
3
3
 
4
4
  export function createServerFunctionProxy(id) {
5
5
  return new Proxy(() => {}, {
@@ -78,6 +78,7 @@ export default function assetsPlugin({ include = regex } = {}) {
78
78
  if (!include.test(sourceFile)) continue;
79
79
 
80
80
  const ext = path.extname(sourceFile);
81
+ if (!oldRelPath.endsWith(ext)) continue;
81
82
  const base = path.basename(sourceFile, ext);
82
83
  const scoped = createScopedName(base, sourceFile);
83
84
  const newLocal = `assets/${scoped}${ext}`;
@@ -23,8 +23,12 @@ export default function stableChunkNamesAndMapsPlugin({ dev = true } = {}) {
23
23
  if (!sourceFile) continue;
24
24
  // Nombre estable basado en el archivo fuente (siempre igual)
25
25
  const rel = path.relative("src", sourceFile);
26
- const dir = path.dirname(rel);
27
- const base = path.basename(rel, path.extname(rel));
26
+ const normalizedRel = rel.replace(/\\/g, "/");
27
+ const dir = path.dirname(normalizedRel);
28
+ const base = path.basename(
29
+ normalizedRel,
30
+ path.extname(normalizedRel)
31
+ );
28
32
  const stableName =
29
33
  dir === "." ? base : `${dir.replace(/\//g, "-")}-${base}`;
30
34
  let finalName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Dinou is a modern React 19 framework with React Server Components, Server Functions, and streaming SSR.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -40,8 +40,8 @@
40
40
  "@babel/register": "^7.27.1",
41
41
  "@babel/traverse": "^7.28.3",
42
42
  "@esbuild-plugins/tsconfig-paths": "^0.1.2",
43
- "@matthamlin/react-server-dom-esm": "file:packages/vendor/react-server-dom-esm",
44
43
  "@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
44
+ "@roggc/react-server-dom-esm": "^0.0.0-380778d2-20251207",
45
45
  "@rollup/plugin-babel": "^6.0.4",
46
46
  "@rollup/plugin-commonjs": "^28.0.6",
47
47
  "@rollup/plugin-json": "^6.1.0",
@@ -85,7 +85,7 @@
85
85
  "ws": "^8.18.3"
86
86
  },
87
87
  "peerDependencies": {
88
- "react": ">=19.1.0",
89
- "react-dom": ">=19.1.0"
88
+ "react": ">=19.2.1",
89
+ "react-dom": ">=19.2.1"
90
90
  }
91
91
  }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Meta Platforms, Inc. and affiliates.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,5 +0,0 @@
1
- # react-server-dom-esm
2
-
3
- Experimental React Flight bindings for DOM using ESM.
4
-
5
- **Use it at your own risk.**