@cedarjs/vite 7.0.0-canary.3072 → 7.0.0-canary.3074

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.
@@ -37,7 +37,7 @@ async function createServer() {
37
37
  const rwPaths = getPaths();
38
38
  const rscEnabled = getConfig().experimental.rsc?.enabled ?? false;
39
39
  const serverStorage = createServerStorage();
40
- app.use("*", (req, _res, next) => {
40
+ app.use((req, _res, next) => {
41
41
  const fullUrl = getFullUrl(req, rscEnabled);
42
42
  const perReqStore = createPerRequestMap({
43
43
  // Convert express headers to fetch header
@@ -361,8 +361,8 @@ async function createServer() {
361
361
  },
362
362
  viteSsrDevServer
363
363
  );
364
- app.get("*", createServerAdapter(routeHandler));
365
- app.post("*", handleWithMiddleware());
364
+ app.get("/{*splat}", createServerAdapter(routeHandler));
365
+ app.post("/{*splat}", handleWithMiddleware());
366
366
  const port = getConfig().web.port;
367
367
  console.log(`Started server on http://localhost:${port}`);
368
368
  return server.listen(port);
@@ -67,7 +67,7 @@ async function runFeServer() {
67
67
  "/assets",
68
68
  express.static(rwPaths.web.distBrowser + "/assets", { index: false })
69
69
  );
70
- app.use("*", (req, _res, next) => {
70
+ app.use((req, _res, next) => {
71
71
  const fullUrl = getFullUrl(req, rscEnabled);
72
72
  const headers = convertExpressHeaders(req.headersDistinct);
73
73
  const perReqStore = createPerRequestMap({ headers, fullUrl });
@@ -99,8 +99,8 @@ async function runFeServer() {
99
99
  getStylesheetLinks,
100
100
  getMiddlewareRouter: async () => middlewareRouter
101
101
  });
102
- app.get("*", createServerAdapter(routeHandler));
103
- app.post("*", handleWithMiddleware());
102
+ app.get("/{*splat}", createServerAdapter(routeHandler));
103
+ app.post("/{*splat}", handleWithMiddleware());
104
104
  app.listen(rwConfig.web.port);
105
105
  console.log(
106
106
  `Started production FE server on http://localhost:${rwConfig.web.port}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "7.0.0-canary.3072",
3
+ "version": "7.0.0-canary.3074",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,17 +54,17 @@
54
54
  "@babel/preset-typescript": "7.29.7",
55
55
  "@babel/traverse": "7.29.8",
56
56
  "@babel/types": "7.29.8",
57
- "@cedarjs/api": "7.0.0-canary.3072",
58
- "@cedarjs/api-server": "7.0.0-canary.3072",
59
- "@cedarjs/babel-config": "7.0.0-canary.3072",
60
- "@cedarjs/context": "7.0.0-canary.3072",
61
- "@cedarjs/graphql-server": "7.0.0-canary.3072",
62
- "@cedarjs/internal": "7.0.0-canary.3072",
63
- "@cedarjs/jobs": "7.0.0-canary.3072",
64
- "@cedarjs/project-config": "7.0.0-canary.3072",
65
- "@cedarjs/server-store": "7.0.0-canary.3072",
66
- "@cedarjs/structure": "7.0.0-canary.3072",
67
- "@cedarjs/testing": "7.0.0-canary.3072",
57
+ "@cedarjs/api": "7.0.0-canary.3074",
58
+ "@cedarjs/api-server": "7.0.0-canary.3074",
59
+ "@cedarjs/babel-config": "7.0.0-canary.3074",
60
+ "@cedarjs/context": "7.0.0-canary.3074",
61
+ "@cedarjs/graphql-server": "7.0.0-canary.3074",
62
+ "@cedarjs/internal": "7.0.0-canary.3074",
63
+ "@cedarjs/jobs": "7.0.0-canary.3074",
64
+ "@cedarjs/project-config": "7.0.0-canary.3074",
65
+ "@cedarjs/server-store": "7.0.0-canary.3074",
66
+ "@cedarjs/structure": "7.0.0-canary.3074",
67
+ "@cedarjs/testing": "7.0.0-canary.3074",
68
68
  "@swc/core": "1.16.1",
69
69
  "@universal-deploy/store": "^0.2.1",
70
70
  "@universal-deploy/vite": "^0.1.9",
@@ -76,7 +76,7 @@
76
76
  "ansis": "4.3.1",
77
77
  "busboy": "^1.6.0",
78
78
  "dotenv-defaults": "5.0.2",
79
- "express": "4.22.2",
79
+ "express": "5.2.1",
80
80
  "fast-glob": "3.3.3",
81
81
  "find-my-way": "9.9.0",
82
82
  "http-proxy-middleware": "3.0.7",
@@ -94,17 +94,17 @@
94
94
  "yargs-parser": "21.1.1"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/auth": "7.0.0-canary.3072",
98
- "@cedarjs/framework-tools": "7.0.0-canary.3072",
99
- "@cedarjs/router": "7.0.0-canary.3072",
100
- "@cedarjs/web": "7.0.0-canary.3072",
97
+ "@cedarjs/auth": "7.0.0-canary.3074",
98
+ "@cedarjs/framework-tools": "7.0.0-canary.3074",
99
+ "@cedarjs/router": "7.0.0-canary.3074",
100
+ "@cedarjs/web": "7.0.0-canary.3074",
101
101
  "@dr.pogodin/react-helmet": "2.0.4",
102
102
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",
103
103
  "@jridgewell/trace-mapping": "0.3.31",
104
104
  "@oxc-project/types": "^0.147.0",
105
105
  "@types/aws-lambda": "8.10.162",
106
106
  "@types/busboy": "^1",
107
- "@types/express": "4",
107
+ "@types/express": "5.0.6",
108
108
  "@types/react": "^19.2.0",
109
109
  "@types/ws": "^8",
110
110
  "@types/yargs-parser": "21.0.3",
@@ -119,9 +119,9 @@
119
119
  "vitest": "4.1.11"
120
120
  },
121
121
  "peerDependencies": {
122
- "@cedarjs/auth": "7.0.0-canary.3072",
123
- "@cedarjs/router": "7.0.0-canary.3072",
124
- "@cedarjs/web": "7.0.0-canary.3072",
122
+ "@cedarjs/auth": "7.0.0-canary.3074",
123
+ "@cedarjs/router": "7.0.0-canary.3074",
124
+ "@cedarjs/web": "7.0.0-canary.3074",
125
125
  "react": "19.2.8",
126
126
  "react-dom": "19.2.8"
127
127
  },