veryfront 0.1.826 → 0.1.827

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.826",
3
+ "version": "0.1.827",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -1 +1 @@
1
- {"version":3,"file":"output-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/output-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAY1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAmBf;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAEhD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBvF"}
1
+ {"version":3,"file":"output-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/build/production-build/build/output-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAe1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAEhD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBvF"}
@@ -11,7 +11,7 @@
11
11
  import { serverLogger as logger } from "../../../utils/index.js";
12
12
  import { join } from "../../../platform/compat/path/index.js";
13
13
  import { generateServiceWorker } from "../../../server/build-service-worker.js";
14
- import { generateProdHydrationModule } from "../../../html/hydration-script-builder/prod-scripts.js";
14
+ import { generateProdHydrationModule, getProdHydrationModulePath, } from "../../../html/hydration-script-builder/prod-scripts.js";
15
15
  import { copyStaticAssets } from "../asset-generation.js";
16
16
  import { generateAppModule, generateClientModule, generatePrefetchScript, generateRouterScript, } from "../client-runtime.js";
17
17
  import { generateLocalReleaseAssetManifest } from "../local-release-assets.js";
@@ -27,7 +27,9 @@ export async function generateClientScripts(adapter, outputDir, dryRun) {
27
27
  await adapter.fs.writeFile(join(outputDir, "_veryfront/client.js"), await generateClientModule());
28
28
  await adapter.fs.writeFile(join(outputDir, "_veryfront/router.js"), await generateRouterScript(adapter));
29
29
  await adapter.fs.writeFile(join(outputDir, "_veryfront/prefetch.js"), await generatePrefetchScript(adapter));
30
- await adapter.fs.writeFile(join(outputDir, "_veryfront/hydration-runtime.js"), generateProdHydrationModule());
30
+ const hydrationRuntime = generateProdHydrationModule();
31
+ await adapter.fs.writeFile(join(outputDir, "_veryfront/hydration-runtime.js"), hydrationRuntime);
32
+ await adapter.fs.writeFile(join(outputDir, getProdHydrationModulePath().slice(1)), hydrationRuntime);
31
33
  }
32
34
  /**
33
35
  * Generate manifest and service worker
@@ -9,7 +9,7 @@ import { getReadyManifestForRenderAsync } from "../release-assets/manifest-cache
9
9
  import { resolveManifestModuleUrl, resolveManifestRoutePreloadUrls, } from "../release-assets/html-consumption.js";
10
10
  import { routeForPage } from "../release-assets/route-path.js";
11
11
  import { buildNonceAttribute, escapeHTML } from "./html-escape.js";
12
- import { generateHydrationData, getDevScripts, getProdScripts, PROD_HYDRATION_MODULE_PATH, } from "./hydration-script-builder/index.js";
12
+ import { generateHydrationData, getDevScripts, getProdHydrationModulePath, getProdScripts, } from "./hydration-script-builder/index.js";
13
13
  import { getPreviewStylesheetLink, getStudioScripts } from "./dev-scripts.js";
14
14
  import { processMetadata } from "./metadata-builder.js";
15
15
  import { extractCandidates, getDevStyles as getErrorOverlayStyles, getProjectCSS, } from "./styles-builder/index.js";
@@ -169,7 +169,7 @@ async function generateHTMLShellPartsImpl(meta, options, params, props, contentF
169
169
  : "";
170
170
  const prodHydrationModulePreload = useDevScripts
171
171
  ? ""
172
- : `<link rel="modulepreload" href="${PROD_HYDRATION_MODULE_PATH}">`;
172
+ : `<link rel="modulepreload" href="${getProdHydrationModulePath()}">`;
173
173
  const nonceAttr = buildNonceAttribute(nonce);
174
174
  // Expose project slug for runtime error overlay "Fix in Veryfront" button
175
175
  const overlaySlug = options.projectId || meta.slug;
@@ -9,6 +9,6 @@ export { getDevScripts } from "./dev-scripts.js";
9
9
  export { generateDevErrorLoggerScript } from "./dev-error-logger.js";
10
10
  export { generateDevComponentManifestScript } from "./dev-component-manifest.js";
11
11
  export { generateDevClientRendererScript } from "./dev-client-renderer.js";
12
- export { generateProdHydrationModule, getProdScripts, PROD_HYDRATION_MODULE_PATH, } from "./prod-scripts.js";
12
+ export { generateProdHydrationModule, getProdHydrationModulePath, getProdScripts, isVersionedProdHydrationModulePath, PROD_HYDRATION_MODULE_PATH, PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN, } from "./prod-scripts.js";
13
13
  export { generateProdHydrationScript } from "./prod-hydration.js";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/html/hydration-script-builder/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/html/hydration-script-builder/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,cAAc,EACd,kCAAkC,EAClC,0BAA0B,EAC1B,4CAA4C,GAC7C,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC"}
@@ -8,5 +8,5 @@ export { getDevScripts } from "./dev-scripts.js";
8
8
  export { generateDevErrorLoggerScript } from "./dev-error-logger.js";
9
9
  export { generateDevComponentManifestScript } from "./dev-component-manifest.js";
10
10
  export { generateDevClientRendererScript } from "./dev-client-renderer.js";
11
- export { generateProdHydrationModule, getProdScripts, PROD_HYDRATION_MODULE_PATH, } from "./prod-scripts.js";
11
+ export { generateProdHydrationModule, getProdHydrationModulePath, getProdScripts, isVersionedProdHydrationModulePath, PROD_HYDRATION_MODULE_PATH, PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN, } from "./prod-scripts.js";
12
12
  export { generateProdHydrationScript } from "./prod-hydration.js";
@@ -1,4 +1,7 @@
1
1
  export declare const PROD_HYDRATION_MODULE_PATH = "/_veryfront/hydration-runtime.js";
2
+ export declare const PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN: RegExp;
2
3
  export declare function generateProdHydrationModule(): string;
4
+ export declare function getProdHydrationModulePath(): string;
5
+ export declare function isVersionedProdHydrationModulePath(pathname: string): boolean;
3
6
  export declare function getProdScripts(_slug: string, _params?: Record<string, string | string[]>, _props?: Record<string, unknown>, nonce?: string): string;
4
7
  //# sourceMappingURL=prod-scripts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prod-scripts.d.ts","sourceRoot":"","sources":["../../../../src/src/html/hydration-script-builder/prod-scripts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,0BAA0B,qCAAqC,CAAC;AAE7E,wBAAgB,2BAA2B,IAAI,MAAM,CAUpD;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,EAC3C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CAGR"}
1
+ {"version":3,"file":"prod-scripts.d.ts","sourceRoot":"","sources":["../../../../src/src/html/hydration-script-builder/prod-scripts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B,qCAAqC,CAAC;AAC7E,eAAO,MAAM,4CAA4C,QACH,CAAC;AAIvD,wBAAgB,2BAA2B,IAAI,MAAM,CAUpD;AAED,wBAAgB,0BAA0B,IAAI,MAAM,CAMnD;AAED,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE5E;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,EAC3C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CAGR"}
@@ -1,6 +1,9 @@
1
1
  import { getLoaderScript, getRendererScript, getRouterScript } from "./templates/index.js";
2
2
  import { buildNonceAttribute } from "../html-escape.js";
3
+ import { fnv1aHash } from "../../utils/hash-utils.js";
3
4
  export const PROD_HYDRATION_MODULE_PATH = "/_veryfront/hydration-runtime.js";
5
+ export const PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN = /^\/_veryfront\/hydration-runtime\.[0-9a-f]{8}\.js$/;
6
+ let cachedProdHydrationModulePath = null;
4
7
  export function generateProdHydrationModule() {
5
8
  return [
6
9
  `import * as React from 'react';`,
@@ -12,7 +15,17 @@ export function generateProdHydrationModule() {
12
15
  getRendererScript().trim(),
13
16
  ].join("\n\n");
14
17
  }
18
+ export function getProdHydrationModulePath() {
19
+ if (cachedProdHydrationModulePath)
20
+ return cachedProdHydrationModulePath;
21
+ const hash = fnv1aHash(generateProdHydrationModule()).padStart(8, "0");
22
+ cachedProdHydrationModulePath = `/_veryfront/hydration-runtime.${hash}.js`;
23
+ return cachedProdHydrationModulePath;
24
+ }
25
+ export function isVersionedProdHydrationModulePath(pathname) {
26
+ return PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN.test(pathname);
27
+ }
15
28
  export function getProdScripts(_slug, _params, _props, nonce) {
16
29
  const nonceAttr = buildNonceAttribute(nonce);
17
- return `\n <script type="module" src="${PROD_HYDRATION_MODULE_PATH}"${nonceAttr}></script>`;
30
+ return `\n <script type="module" src="${getProdHydrationModulePath()}"${nonceAttr}></script>`;
18
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prod-hydration-module.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/prod-hydration-module.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAqBnG,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,QAAQ,EAAE,eAAe,CAOvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA2BxE"}
1
+ {"version":3,"file":"prod-hydration-module.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/prod-hydration-module.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAuBnG,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,QAAQ,EAAE,eAAe,CASvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAgCxE"}
@@ -1,5 +1,5 @@
1
1
  import { BaseHandler } from "../response/base.js";
2
- import { generateProdHydrationModule, PROD_HYDRATION_MODULE_PATH, } from "../../../html/hydration-script-builder/prod-scripts.js";
2
+ import { generateProdHydrationModule, isVersionedProdHydrationModulePath, PROD_HYDRATION_MODULE_PATH, PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN, } from "../../../html/hydration-script-builder/prod-scripts.js";
3
3
  import { computeStrongEtag, hasMatchingEtag } from "../utils/etag.js";
4
4
  import { HTTP_OK, PRIORITY_HIGH_DEV } from "../../../utils/constants/index.js";
5
5
  let cachedModule = null;
@@ -20,6 +20,8 @@ export class ProdHydrationModuleHandler extends BaseHandler {
20
20
  patterns: [
21
21
  { pattern: PROD_HYDRATION_MODULE_PATH, exact: true, method: "GET" },
22
22
  { pattern: PROD_HYDRATION_MODULE_PATH, exact: true, method: "HEAD" },
23
+ { pattern: PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN, method: "GET" },
24
+ { pattern: PROD_HYDRATION_MODULE_VERSIONED_PATH_PATTERN, method: "HEAD" },
23
25
  ],
24
26
  };
25
27
  async handle(req, ctx) {
@@ -27,14 +29,19 @@ export class ProdHydrationModuleHandler extends BaseHandler {
27
29
  return this.continue();
28
30
  }
29
31
  const method = req.method.toUpperCase();
32
+ const pathname = new URL(req.url).pathname;
33
+ const cacheStrategy = isVersionedProdHydrationModulePath(pathname) ? "immutable" : "no-cache";
30
34
  const { js, etag } = getProdHydrationModuleBundle();
31
35
  const builder = this.createResponseBuilder(ctx).withCORS(req, ctx.securityConfig?.cors);
32
36
  if (hasMatchingEtag(req, etag)) {
33
- return this.respond(builder.withSecurity(ctx.securityConfig ?? undefined, req).notModified(etag));
37
+ return this.respond(builder
38
+ .withSecurity(ctx.securityConfig ?? undefined, req)
39
+ .withCache(cacheStrategy)
40
+ .notModified(etag));
34
41
  }
35
42
  return this.respond(builder
36
43
  .withSecurity(ctx.securityConfig ?? undefined, req)
37
- .withCache("no-cache")
44
+ .withCache(cacheStrategy)
38
45
  .withETag(etag)
39
46
  .withContentType("application/javascript; charset=utf-8", method === "HEAD" ? null : js, HTTP_OK));
40
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"static.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/static.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAkCnG,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,EAAE,eAAe,CAOvB;IAEF,OAAO,CAAC,aAAa,CAA2B;IAEhD,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAejE,OAAO,CAAC,cAAc;CAwEvB"}
1
+ {"version":3,"file":"static.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/static.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAoCnG,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,EAAE,eAAe,CAOvB;IAEF,OAAO,CAAC,aAAa,CAA2B;IAEhD,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAejE,OAAO,CAAC,cAAc;CAwEvB"}
@@ -15,6 +15,7 @@ import { withSpan } from "../../../observability/tracing/otlp-setup.js";
15
15
  import { StaticFileService } from "../../services/static/index.js";
16
16
  import { addNonceToHtmlTags } from "../../../html/nonce-injection.js";
17
17
  import { computeEtag } from "../utils/etag.js";
18
+ import { isVersionedProdHydrationModulePath } from "../../../html/hydration-script-builder/prod-scripts.js";
18
19
  function isHtmlResponse(contentType) {
19
20
  return /\btext\/html\b/i.test(contentType);
20
21
  }
@@ -24,6 +25,7 @@ function isProductionBuildAssetPath(pathname) {
24
25
  pathname === "/_veryfront/router.js" ||
25
26
  pathname === "/_veryfront/prefetch.js" ||
26
27
  pathname === "/_veryfront/hydration-runtime.js" ||
28
+ isVersionedProdHydrationModulePath(pathname) ||
27
29
  pathname === "/_veryfront/manifest.json" ||
28
30
  pathname.startsWith("/_veryfront/chunks/") ||
29
31
  pathname.startsWith("/_veryfront/pages/") ||
@@ -50,7 +50,7 @@ export const LIGHTWEIGHT_PATH_PREFIXES = [
50
50
  "/_vf_modules/",
51
51
  "/_vf_styles/",
52
52
  "/_veryfront/modules/",
53
- "/_veryfront/hydration-runtime.js",
53
+ "/_veryfront/hydration-runtime",
54
54
  "/_veryfront/preview-hmr.js",
55
55
  "/_veryfront/studio-bridge.js",
56
56
  "/_vf/css/",
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.826";
2
+ export declare const VERSION = "0.1.827";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.826";
4
+ export const VERSION = "0.1.827";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.826",
3
+ "version": "0.1.827",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",