dinou 4.0.9 → 4.0.10

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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
+ ## [4.0.10]
9
+
10
+ ### Fixed
11
+
12
+ - Server Functions endpoint vulnerability.
13
+
8
14
  ## [4.0.9]
9
15
 
10
16
  ### Changed
@@ -895,7 +895,8 @@ app.post("/____server_function____", async (req, res) => {
895
895
  // Validate exportName against allowedExports
896
896
  if (
897
897
  !exportName ||
898
- (exportName !== "default" && !allowedExports.has(exportName))
898
+ !allowedExports ||
899
+ !allowedExports.has(exportName)
899
900
  ) {
900
901
  return res.status(400).json({ error: "Invalid export name" });
901
902
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou-ejected",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "main": "index.js",
5
5
  "private": true,
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "description": "Full-Stack React 19 framework with React Server Components, Server Functions, and Streaming SSR.",
5
5
  "main": "index.js",
6
6
  "bin": {