okno 1.0.0-beta.38 → 1.0.0-beta.40

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,4 +1,4 @@
1
- import { o as i } from "../plugin-Bgk7L4b7.js";
1
+ import { o as i } from "../plugin-sAwHmkG8.js";
2
2
  import { join as d } from "node:path";
3
3
  import { readFileSync as p } from "node:fs";
4
4
  function c(o) {
@@ -16,6 +16,9 @@ export declare function buildInstantGlobalsModule(oknoDir: string, used?: Set<st
16
16
  export declare function buildInstantCollectionsModule(oknoDir: string, used?: Set<string>): Promise<string>;
17
17
  export declare function buildInstantStringsModule(oknoDir: string): string;
18
18
  /** The `okno:instant-middleware` module — Astro middleware that fetches the
19
- * snapshot and runs the request inside its AsyncLocalStorage context. */
20
- export declare function buildInstantMiddlewareModule(snapshotUrl: string): string;
19
+ * snapshot and serves it as ISR-like SSR (version-keyed edge cache + HTTP
20
+ * validators + AsyncLocalStorage scope). All logic lives in the tested,
21
+ * self-contained `__oknoInstantMiddleware` runtime helper; this only binds the
22
+ * project's snapshot URL. */
23
+ export declare function buildInstantMiddlewareModule(snapshotUrl: string, apiUrl: string): string;
21
24
  //# sourceMappingURL=modules-instant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules-instant.d.ts","sourceRoot":"","sources":["../../src/codegen/modules-instant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA8BH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAE7G;AAED,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAE/G;AA4BD,wBAAsB,6BAA6B,CAClD,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,G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