eddev 2.0.0-beta.235 → 2.0.0-beta.236

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.
@@ -18,7 +18,7 @@ export function createVinxiApp(args) {
18
18
  // experimental: {
19
19
  // websocket: true,
20
20
  // },
21
- compatibilityDate: "2025-01-01",
21
+ compatibilityDate: "2025-05-21",
22
22
  preset: args.preset,
23
23
  routeRules: {
24
24
  "/wp-content/uploads/**": {
@@ -88,7 +88,7 @@ export function createVinxiApp(args) {
88
88
  ...acc,
89
89
  ["/" + base.replace(/(^\/|\/$)/g, "") + "/**/*"]: {
90
90
  isr: false,
91
- swr: false,
91
+ // swr: false,
92
92
  },
93
93
  };
94
94
  }, {}),
@@ -101,7 +101,7 @@ export function createVinxiApp(args) {
101
101
  },
102
102
  cache: {
103
103
  maxAge: cacheConfig.pageDataTTL ?? 0,
104
- swr: true,
104
+ // swr: true,
105
105
  staleMaxAge: 3600,
106
106
  },
107
107
  },
@@ -1 +1 @@
1
- {"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aA2uB/C"}
1
+ {"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aA2sB/C"}
@@ -289,40 +289,6 @@ export function createVinxiCodegen(opts) {
289
289
  return await serverContext.fetchRouteData({ pathname: id, newOrigin: url.origin, bypass: serverContext.shouldBypass(event) })
290
290
  }),
291
291
  )
292
- .get(
293
- "/_data/2query/**:name",
294
- eventHandler(async (event) => {
295
- const id = "/" + getRouterParam(event, "name")
296
- const url = getRequestURL(event)
297
- const paramString = getQuery(event).params
298
-
299
- const req = getWebRequest(event)
300
-
301
- let params = {}
302
- try {
303
- params = typeof paramString === "string" && paramString.length ? JSON.parse(paramString) : {}
304
- } catch (e) {
305
- throw new Error("Invalid query parameters")
306
- }
307
-
308
- return {
309
- url,id, params
310
- }
311
- }),
312
- )
313
- .get(
314
- "/_data/3query/**:name",
315
- eventHandler(async (event) => {
316
- const id = "/" + getRouterParam(event, "name")
317
- const url = getRequestURL(event)
318
- const paramString = getQuery(event).params
319
-
320
- const req = getWebRequest(event)
321
- return {
322
- url,id, paramString
323
- }
324
- }),
325
- )
326
292
  .get(
327
293
  "/_data/query/**:name",
328
294
  eventHandler(async (event) => {
@@ -330,6 +296,8 @@ export function createVinxiCodegen(opts) {
330
296
  const url = getRequestURL(event)
331
297
  const paramString = getQuery(event).params
332
298
 
299
+ return {id, url, paramString}
300
+
333
301
  const req = getWebRequest(event)
334
302
 
335
303
  let params = {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.235",
3
+ "version": "2.0.0-beta.236",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",