eddev 2.0.0-beta.234 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;AAC7D,KAAK,mBAAmB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAA;AACrD,KAAK,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,uBA2O3C"}
1
+ {"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;AAC7D,KAAK,mBAAmB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAA;AACrD,KAAK,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,uBAwO3C"}
@@ -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/**": {
@@ -76,9 +76,7 @@ export function createVinxiApp(args) {
76
76
  },
77
77
  "/_data/query/**": {
78
78
  isr: {
79
- expiration: cacheConfig.queryHooksTTL ?? 0,
80
79
  allowQuery: ["params"],
81
- group: 1,
82
80
  passQuery: true,
83
81
  },
84
82
  cache: {
@@ -90,7 +88,7 @@ export function createVinxiApp(args) {
90
88
  ...acc,
91
89
  ["/" + base.replace(/(^\/|\/$)/g, "") + "/**/*"]: {
92
90
  isr: false,
93
- swr: false,
91
+ // swr: false,
94
92
  },
95
93
  };
96
94
  }, {}),
@@ -101,10 +99,9 @@ export function createVinxiApp(args) {
101
99
  group: 1,
102
100
  passQuery: false,
103
101
  },
104
- swr: true,
105
102
  cache: {
106
103
  maxAge: cacheConfig.pageDataTTL ?? 0,
107
- swr: true,
104
+ // swr: true,
108
105
  staleMaxAge: 3600,
109
106
  },
110
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.234",
3
+ "version": "2.0.0-beta.236",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",