@qwik.dev/core 2.0.0-beta.40 → 2.0.0-beta.41

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/loader",
3
- "version": "2.0.0-beta.40-dev+a459d55",
3
+ "version": "2.0.0-beta.41-dev+4d04076",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -456,13 +456,7 @@ declare interface QwikVitePluginCommonOptions {
456
456
  * to be stable between releases
457
457
  */
458
458
  experimental?: (keyof typeof ExperimentalFeatures)[];
459
- /**
460
- * Disables automatic preloading of font assets (WOFF/WOFF2/TTF) found in the build output. When
461
- * enabled, the plugin will not add `<link rel="preload">` tags for font files in the document
462
- * head.
463
- *
464
- * Disabling may impact Cumulative Layout Shift (CLS) metrics.
465
- */
459
+ /** @deprecated No longer used. Automatic font preloading has been removed. */
466
460
  disableFontPreload?: boolean;
467
461
  }
468
462
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.40-dev+a459d55
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.41-dev+4d04076
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -2609,36 +2609,32 @@ var Xr = "@qwik-worker-core", Zr = "\nexport { setPlatform } from '@qwik.dev/cor
2609
2609
  ".less",
2610
2610
  ".styl",
2611
2611
  ".stylus"
2612
- ], ui = [
2613
- ".woff",
2614
- ".woff2",
2615
- ".ttf"
2616
- ], di = "@qwik-hmr-bridge", fi = "\n // HMR bridge: connects Vite HMR events to Qwik's component re-rendering.\n if (import.meta.hot) {\n let timeout;\n import.meta.hot.on(\"qwik:hmr\", (data) => {\n if (data.t === document.__hmrT) {\n console.log(\"Received duplicate HMR update, ignoring\", data.files);\n return;\n }\n clearTimeout(timeout);\n document.__hmrT = data.t;\n document.__hmrDone = 0;\n document.dispatchEvent(\n new CustomEvent(\"qHmr\", { detail: data })\n );\n timeout = setTimeout(() => {\n console.log(document.__hmrDone, document.__hmrT);\n if (document.__hmrDone !== document.__hmrT) {\n console.log(\"HMR update did not match active code, reloading the page\", location.href);\n location.reload();\n }\n }, 500);\n });\n }\n";
2617
- function pi(e = {}) {
2618
- let t = "serve", n = null, r = "/", i = null, a = null, o = null, s = null, c = "development", l, u, d = e.client?.outDir, f = null, p = e.fileFilter ? (t, n) => Je.test(t) || e.fileFilter(t, n) : () => !0, m = e.disableFontPreload ?? !1, h = [], g = Ue(e.optimizerOptions), _ = /* @__PURE__ */ new Set();
2612
+ ], ui = "@qwik-hmr-bridge", di = "\n // HMR bridge: connects Vite HMR events to Qwik's component re-rendering.\n if (import.meta.hot) {\n let timeout;\n import.meta.hot.on(\"qwik:hmr\", (data) => {\n if (data.t === document.__hmrT) {\n console.log(\"Received duplicate HMR update, ignoring\", data.files);\n return;\n }\n clearTimeout(timeout);\n document.__hmrT = data.t;\n document.__hmrDone = 0;\n document.dispatchEvent(\n new CustomEvent(\"qHmr\", { detail: data })\n );\n timeout = setTimeout(() => {\n console.log(document.__hmrDone, document.__hmrT);\n if (document.__hmrDone !== document.__hmrT) {\n console.log(\"HMR update did not match active code, reloading the page\", location.href);\n location.reload();\n }\n }, 500);\n });\n }\n";
2613
+ function fi(e = {}) {
2614
+ let t = "serve", n = null, r = "/", i = null, a = null, o = null, s = null, c = "development", l, u, d = e.client?.outDir, f = null, p = e.fileFilter ? (t, n) => Je.test(t) || e.fileFilter(t, n) : () => !0, m = [], h = Ue(e.optimizerOptions), g = /* @__PURE__ */ new Set();
2619
2615
  return [
2620
2616
  {
2621
2617
  name: "vite-plugin-qwik",
2622
2618
  enforce: "pre",
2623
2619
  api: {
2624
- getOptimizer: () => g.getOptimizer(),
2625
- getOptions: () => g.getOptions(),
2626
- getManifest: () => g.getOptions().manifestInput,
2627
- getRootDir: () => g.getOptions().rootDir,
2620
+ getOptimizer: () => h.getOptimizer(),
2621
+ getOptions: () => h.getOptions(),
2622
+ getManifest: () => h.getOptions().manifestInput,
2623
+ getRootDir: () => h.getOptions().rootDir,
2628
2624
  getClientOutDir: () => n,
2629
2625
  getClientPublicOutDir: () => i,
2630
- registerBundleGraphAdder: (e) => _.add(e),
2626
+ registerBundleGraphAdder: (e) => g.add(e),
2631
2627
  onSegment: (e) => {
2632
- g.segmentCallbacks.add(e);
2628
+ h.segmentCallbacks.add(e);
2633
2629
  },
2634
2630
  _oldDevSsrServer: () => e.devSsrServer
2635
2631
  },
2636
2632
  async config(r, l) {
2637
- await g.init();
2633
+ await h.init();
2638
2634
  let u;
2639
- u = l.mode === "lib" ? "lib" : r.build?.ssr || l.mode === "ssr" ? "ssr" : l.mode === "test" || l.mode === "benchmark" ? "test" : "client", t = l.command, c = l.mode === "production" ? "production" : l.mode === "development" ? "development" : t === "build" && u === "client" ? "production" : "development", g.debug(`vite config(), command: ${t}, env.mode: ${l.mode}`), t === "serve" ? e.entryStrategy = { type: "segment" } : u === "ssr" ? e.entryStrategy = { type: "hoist" } : u === "lib" && (e.entryStrategy = { type: "inline" });
2640
- let p = u === "ssr" ? typeof r.build?.ssr == "string" ? r.build.ssr : e.ssr?.input : void 0, m = u === "client" ? e.client?.input : void 0, h = r.build?.rolldownOptions?.input || m || p;
2641
- h && typeof h == "string" && (h = [h]);
2635
+ u = l.mode === "lib" ? "lib" : r.build?.ssr || l.mode === "ssr" ? "ssr" : l.mode === "test" || l.mode === "benchmark" ? "test" : "client", t = l.command, c = l.mode === "production" ? "production" : l.mode === "development" ? "development" : t === "build" && u === "client" ? "production" : "development", h.debug(`vite config(), command: ${t}, env.mode: ${l.mode}`), t === "serve" ? e.entryStrategy = { type: "segment" } : u === "ssr" ? e.entryStrategy = { type: "hoist" } : u === "lib" && (e.entryStrategy = { type: "inline" });
2636
+ let p = u === "ssr" ? typeof r.build?.ssr == "string" ? r.build.ssr : e.ssr?.input : void 0, m = u === "client" ? e.client?.input : void 0, g = r.build?.rolldownOptions?.input || m || p;
2637
+ g && typeof g == "string" && (g = [g]);
2642
2638
  let _ = {
2643
2639
  target: u,
2644
2640
  buildMode: c,
@@ -2657,12 +2653,12 @@ function pi(e = {}) {
2657
2653
  sourcemap: !!r.build?.sourcemap,
2658
2654
  lint: e.lint,
2659
2655
  experimental: e.experimental,
2660
- input: h,
2656
+ input: g,
2661
2657
  manifestInput: e.ssr?.manifestInput,
2662
2658
  manifestInputPath: e.ssr?.manifestInputPath,
2663
2659
  manifestOutput: e.client?.manifestOutput
2664
- }, v = await g.normalizeOptions(_);
2665
- h ||= v.input, f = _, a = v.srcDir, o = v.rootDir, e.csr || (n = v.clientOutDir, i = n, s = v.ssrOutDir);
2660
+ }, v = await h.normalizeOptions(_);
2661
+ g ||= v.input, f = _, a = v.srcDir, o = v.rootDir, e.csr || (n = v.clientOutDir, i = n, s = v.ssrOutDir);
2666
2662
  let y = c === "development", b = "globalThis.qDev", x = "globalThis.qTest", S = "globalThis.qInspector", ee = r?.define?.[b] ?? y, C = r?.define?.[S] ?? y, w = {
2667
2663
  ssr: { noExternal: [
2668
2664
  G,
@@ -2698,14 +2694,14 @@ function pi(e = {}) {
2698
2694
  J,
2699
2695
  "@builder.io/qwik"
2700
2696
  ],
2701
- entries: h && (typeof h == "string" ? [h] : typeof h == "object" ? Object.values(h) : h)
2697
+ entries: g && (typeof g == "string" ? [g] : typeof g == "object" ? Object.values(g) : g)
2702
2698
  },
2703
2699
  build: {
2704
2700
  modulePreload: !1,
2705
2701
  dynamicImportVarsOptions: { exclude: [/./] },
2706
2702
  rolldownOptions: {
2707
2703
  external: ["node:async_hooks"],
2708
- input: h,
2704
+ input: g,
2709
2705
  experimental: { attachDebugInfo: r.build?.rolldownOptions?.experimental?.attachDebugInfo ?? "none" }
2710
2706
  }
2711
2707
  },
@@ -2718,7 +2714,7 @@ function pi(e = {}) {
2718
2714
  };
2719
2715
  return e.csr || (w.build.cssCodeSplit = !1, v.outDir && (w.build.outDir = v.outDir), w.build.rolldownOptions = {
2720
2716
  ...w.build.rolldownOptions,
2721
- output: at(g, r.build?.rolldownOptions?.output),
2717
+ output: at(h, r.build?.rolldownOptions?.output),
2722
2718
  preserveEntrySignatures: "allow-extension"
2723
2719
  }, v.target === "ssr" ? t === "build" && (w.publicDir = !1, w.build.ssr = !0, r.build?.minify == null && c === "production" && (w.build.minify = !0)) : v.target === "client" || (v.target === "lib" ? (w.build.minify = !1, w.build.rolldownOptions.external = [
2724
2720
  G,
@@ -2744,7 +2740,7 @@ function pi(e = {}) {
2744
2740
  },
2745
2741
  async configResolved(n) {
2746
2742
  if (r = n.base, !(r.startsWith("/") && r.endsWith("/"))) throw Error("vite's config.base must begin and end with /");
2747
- if (n.build.sourcemap && e.optimizerOptions?.sourcemap === void 0 && g.setSourceMapSupport(!0), f ? g.normalizeOptions(f) : g.normalizeOptions(e), t === "build" && !e.csr && g.getOptions().target === "client") {
2743
+ if (n.build.sourcemap && e.optimizerOptions?.sourcemap === void 0 && h.setSourceMapSupport(!0), f ? h.normalizeOptions(f) : h.normalizeOptions(e), t === "build" && !e.csr && h.getOptions().target === "client") {
2748
2744
  let e = ["vite:build-import-analysis", "native:import-analysis-build"], t = n.plugins;
2749
2745
  for (let n of e) {
2750
2746
  let e = t.findIndex((e) => e?.name === n);
@@ -2753,26 +2749,26 @@ function pi(e = {}) {
2753
2749
  }
2754
2750
  },
2755
2751
  async buildStart() {
2756
- h.length = 0;
2752
+ m.length = 0;
2757
2753
  let e = this.resolve.bind(this);
2758
- await g.validateSource(e), g.onDiagnostics((e, t, n) => {
2754
+ await h.validateSource(e), h.onDiagnostics((e, t, n) => {
2759
2755
  e.forEach((e) => {
2760
- let r = g.normalizePath(t.sys.path.join(n, e.file));
2756
+ let r = h.normalizePath(t.sys.path.join(n, e.file));
2761
2757
  e.category === "error" ? this.error(ct(r, e)) : this.warn(ct(r, e));
2762
2758
  });
2763
- }), await g.buildStart(this), u = void 0, t === "build" && g.getOptions().target === "client" && (u = ei(this));
2759
+ }), await h.buildStart(this), u = void 0, t === "build" && h.getOptions().target === "client" && (u = ei(this));
2764
2760
  },
2765
2761
  resolveId(e, t, n) {
2766
- if (e.endsWith(di)) return di;
2762
+ if (e.endsWith(ui)) return ui;
2767
2763
  if (Qr(e)) return Xr;
2768
2764
  let r = p(e, "resolveId");
2769
- return A(e) || !r ? null : g.resolveId(this, e, t, n);
2765
+ return A(e) || !r ? null : h.resolveId(this, e, t, n);
2770
2766
  },
2771
2767
  load(e, n) {
2772
- if (e === di) return { code: fi };
2768
+ if (e === ui) return { code: di };
2773
2769
  if (e === "@qwik-worker-core") return $r();
2774
2770
  let r = p(e, "load");
2775
- return A(e) || !r ? null : (e = g.normalizePath(e), t === "serve" && e.endsWith("@qwik-client-manifest") ? { code: "export const manifest = undefined;" } : g.load(this, e, n));
2771
+ return A(e) || !r ? null : (e = h.normalizePath(e), t === "serve" && e.endsWith("@qwik-client-manifest") ? { code: "export const manifest = undefined;" } : h.load(this, e, n));
2776
2772
  },
2777
2773
  transform(e, t, n) {
2778
2774
  if (t.includes(".vite/deps/") && e.slice(0, 5e3).includes("qwik") && /import[^\n]*qwik[^\n]*\n/.test(e)) {
@@ -2787,7 +2783,7 @@ function pi(e = {}) {
2787
2783
  👉 ${e}\n\n==============\n\n`);
2788
2784
  }
2789
2785
  let r = p(t, "transform"), i = t.includes("?raw");
2790
- return A(t) || !r || i ? null : g.transform(this, e, t, n);
2786
+ return A(t) || !r || i ? null : h.transform(this, e, t, n);
2791
2787
  }
2792
2788
  },
2793
2789
  {
@@ -2798,52 +2794,38 @@ function pi(e = {}) {
2798
2794
  async handler(e, t) {
2799
2795
  let n = this.environment.config.consumer === "client", i = this.environment.config.consumer === "server";
2800
2796
  if (n) {
2801
- let e = g.getOptions();
2797
+ let e = h.getOptions();
2802
2798
  for (let [n, i] of Object.entries(t)) if (i.type === "asset") {
2803
2799
  let t = r + n;
2804
- if (li.some((e) => n.endsWith(e))) typeof i.source == "string" && i.source.length < e.inlineStylesUpToBytes ? h.push({
2800
+ li.some((e) => n.endsWith(e)) && (typeof i.source == "string" && i.source.length < e.inlineStylesUpToBytes ? m.push({
2805
2801
  tag: "style",
2806
2802
  location: "head",
2807
2803
  attributes: {
2808
2804
  "data-src": t,
2809
2805
  dangerouslySetInnerHTML: i.source
2810
2806
  }
2811
- }) : h.push({
2807
+ }) : m.push({
2812
2808
  tag: "link",
2813
2809
  location: "head",
2814
2810
  attributes: {
2815
2811
  rel: "stylesheet",
2816
2812
  href: t
2817
2813
  }
2818
- });
2819
- else {
2820
- let e = ui.find((e) => n.endsWith(e));
2821
- e && !m && h.unshift({
2822
- tag: "link",
2823
- location: "head",
2824
- attributes: {
2825
- rel: "preload",
2826
- href: t,
2827
- as: "font",
2828
- type: `font/${e.slice(1)}`,
2829
- crossorigin: ""
2830
- }
2831
- });
2832
- }
2814
+ }));
2833
2815
  }
2834
- let n = je(await g.generateManifest(this, t, _, {
2835
- injections: h,
2816
+ let n = je(await h.generateManifest(this, t, g, {
2817
+ injections: m,
2836
2818
  platform: { vite: "" }
2837
2819
  }), r);
2838
2820
  for (let e of Object.values(t)) e.type === "chunk" && (e.code = Ae(e.code, n));
2839
2821
  ni(this, t, u);
2840
- } else i && ri(t, g.getOptions().manifestInput);
2822
+ } else i && ri(t, h.getOptions().manifestInput);
2841
2823
  }
2842
2824
  },
2843
2825
  async writeBundle(e, t) {
2844
- let n = g.getOptions();
2826
+ let n = h.getOptions();
2845
2827
  if (this.environment.config.consumer === "server") {
2846
- let r = g.getSys();
2828
+ let r = h.getSys();
2847
2829
  if (r.env === "node" || r.env === "bun" || r.env === "deno") {
2848
2830
  let i = Object.keys(t);
2849
2831
  await Promise.all(i.map(async (t) => {
@@ -2864,19 +2846,19 @@ function pi(e = {}) {
2864
2846
  }
2865
2847
  },
2866
2848
  transformIndexHtml() {
2867
- if (t === "serve") return bt(g.getOptions(), r);
2849
+ if (t === "serve") return bt(h.getOptions(), r);
2868
2850
  },
2869
2851
  configureServer(t) {
2870
- l = t, g.configureServer(t), (e?.devTools?.imageDevTools ?? !0) && t.middlewares.use(qr(g.getSys(), o, a));
2852
+ l = t, h.configureServer(t), (e?.devTools?.imageDevTools ?? !0) && t.middlewares.use(qr(h.getSys(), o, a));
2871
2853
  },
2872
2854
  configurePreviewServer(e) {
2873
2855
  return async () => {
2874
- let t = g.getSys(), n = g.getPath();
2856
+ let t = h.getSys(), n = h.getPath();
2875
2857
  await vt(e.middlewares, s, t, n);
2876
2858
  };
2877
2859
  },
2878
2860
  hotUpdate(t) {
2879
- g.hotUpdate(this.environment, t);
2861
+ h.hotUpdate(this.environment, t);
2880
2862
  let n = e?.devTools?.hmr ?? !0;
2881
2863
  if (this.environment.name === "ssr" && t.modules.length) {
2882
2864
  if (n) {
@@ -2899,15 +2881,15 @@ function pi(e = {}) {
2899
2881
  },
2900
2882
  onLog(e, t) {
2901
2883
  if (t.plugin == "vite-plugin-qwik") {
2902
- let n = hi[e] || $.White, r = (t.frame || "").split("\n").map((e) => (e.match(/^\s*\^\s*$/) ? $.BrightWhite : $.BrightBlack) + e);
2884
+ let n = mi[e] || $.White, r = (t.frame || "").split("\n").map((e) => (e.match(/^\s*\^\s*$/) ? $.BrightWhite : $.BrightBlack) + e);
2903
2885
  return console[e](`${n}%s\n${$.BrightWhite}%s\n%s${$.RESET}`, `[${t.plugin}](${e}): ${t.message}\n`, ` ${t?.loc?.file}:${t?.loc?.line}:${t?.loc?.column}\n`, ` ${r.join("\n ")}\n`), !1;
2904
2886
  }
2905
2887
  }
2906
2888
  },
2907
- mi()
2889
+ pi()
2908
2890
  ];
2909
2891
  }
2910
- async function mi() {
2892
+ async function pi() {
2911
2893
  let e, t, n = !1;
2912
2894
  async function r() {
2913
2895
  if (n) return !0;
@@ -3014,10 +2996,10 @@ var $ = {
3014
2996
  BrightCyan: "\x1B[96m",
3015
2997
  BrightWhite: "\x1B[97m",
3016
2998
  RESET: "\x1B[0m"
3017
- }, hi = {
2999
+ }, mi = {
3018
3000
  warn: $.Yellow,
3019
3001
  info: $.Cyan,
3020
3002
  debug: $.BrightBlack
3021
3003
  };
3022
3004
  //#endregion
3023
- export { it as qwikRolldown, lt as qwikRollup, pi as qwikVite };
3005
+ export { it as qwikRolldown, lt as qwikRollup, fi as qwikVite };
package/dist/server.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.40-dev+a459d55
3
+ * @qwik.dev/core/server 2.0.0-beta.41-dev+4d04076
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1907,7 +1907,7 @@ function getBuildBase(opts) {
1907
1907
  return `${import.meta.env?.BASE_URL || "/"}build/`;
1908
1908
  }
1909
1909
  var versions = {
1910
- qwik: "2.0.0-beta.40-dev+a459d55",
1910
+ qwik: "2.0.0-beta.41-dev+4d04076",
1911
1911
  qwikDom: "2.1.19"
1912
1912
  };
1913
1913
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.40-dev+a459d55
3
+ * @qwik.dev/core/server 2.0.0-beta.41-dev+4d04076
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -538,7 +538,7 @@ var QRuntimeAttr = "q:runtime";
538
538
 
539
539
  var QVersionAttr = "q:version";
540
540
 
541
- var br = "q:base";
541
+ var vr = "q:base";
542
542
 
543
543
  var QLocaleAttr = "q:locale";
544
544
 
@@ -562,7 +562,7 @@ var Rr = "/" + kr;
562
562
 
563
563
  var Pr = "q:template";
564
564
 
565
- var qr = "[q\\:container]:not([q\\:container=" + "html" /* HTML */ + "]):not([q\\:container=" + "text" /* TEXT */ + "])";
565
+ var Tr = "[q\\:container]:not([q\\:container=" + "html" /* HTML */ + "]):not([q\\:container=" + "text" /* TEXT */ + "])";
566
566
 
567
567
  var QDefaultSlot = "";
568
568
 
@@ -896,7 +896,7 @@ function pi(t, e) {
896
896
  const n = e?.mapper;
897
897
  const r = t.symbolMapper ? t.symbolMapper : (t, e, r) => {
898
898
  if (n || isDev6 && import.meta.env?.MODE !== "test") {
899
- const e = sd(t);
899
+ const e = ed(t);
900
900
  const s = !isDev6 ? n[e] : getDevSegmentPath(n, e, t, r);
901
901
  if (!s) {
902
902
  if (e === Ge) {
@@ -914,7 +914,7 @@ function pi(t, e) {
914
914
  const s = {
915
915
  isServer: true,
916
916
  async importSymbol(t, e, n) {
917
- const r = sd(n);
917
+ const r = ed(n);
918
918
  const s = globalThis.__qwik_reg_symbols?.get(r);
919
919
  if (s) {
920
920
  return s;
@@ -937,7 +937,7 @@ async function setServerPlatform(t, e) {
937
937
  mi(n);
938
938
  }
939
939
 
940
- var sd = t => {
940
+ var ed = t => {
941
941
  const e = t.lastIndexOf("_");
942
942
  if (e > -1) {
943
943
  return t.slice(e + 1);
@@ -951,7 +951,7 @@ import { getClientManifest as Ea } from "@qwik.dev/core";
951
951
  // packages/qwik/src/server/ssr-container.ts
952
952
  import { isDev as isDev8 } from "@qwik.dev/core/build";
953
953
 
954
- import { _SubscriptionData as Gs, _SharedContainer as Cc, _jsxSorted as fo, _jsxSplit as ao, _res as _, _setEvent, _walkJSX as zn, _createQRL as la, isSignal as Tu } from "@qwik.dev/core/internal";
954
+ import { _SubscriptionData as Ys, _SharedContainer as Cc, _jsxSorted as co, _jsxSplit as fo, _res as _, _setEvent, _walkJSX as zn, _createQRL as la, isSignal as qu } from "@qwik.dev/core/internal";
955
955
 
956
956
  // packages/qwik/src/server/ooos-utils.ts
957
957
  import { _SubscriptionPatch as Ku } from "@qwik.dev/core/internal";
@@ -1225,7 +1225,7 @@ function getQwikOutOfOrderExecutorScript(t = {}) {
1225
1225
  }
1226
1226
 
1227
1227
  // packages/qwik/src/server/ssr-node.ts
1228
- import { _isJSXNode as to, _EMPTY_OBJ, _EFFECT_BACK_REF as Vi } from "@qwik.dev/core/internal";
1228
+ import { _isJSXNode as Zs, _EMPTY_OBJ, _EFFECT_BACK_REF as Vi } from "@qwik.dev/core/internal";
1229
1229
 
1230
1230
  import { isDev as isDev7 } from "@qwik.dev/core/build";
1231
1231
 
@@ -1359,14 +1359,14 @@ var SsrComponentFrame = class {
1359
1359
  distributeChildrenIntoSlots(t, e, n) {
1360
1360
  this.projectionScopedStyle = e;
1361
1361
  this.projectionComponentFrame = n;
1362
- if (to(t)) {
1362
+ if (Zs(t)) {
1363
1363
  const e = this.getSlotName(t);
1364
1364
  We(this.slots, e, t, 0);
1365
1365
  } else if (Array.isArray(t) && t.length > 0) {
1366
1366
  const e = [];
1367
1367
  for (let n = 0; n < t.length; n++) {
1368
1368
  const r = t[n];
1369
- if (to(r)) {
1369
+ if (Zs(r)) {
1370
1370
  const t = this.getSlotName(r);
1371
1371
  if (t === QDefaultSlot) {
1372
1372
  e.push(r);
@@ -1914,7 +1914,7 @@ function getBuildBase(t) {
1914
1914
  }
1915
1915
 
1916
1916
  var versions = {
1917
- qwik: "2.0.0-beta.40-dev+a459d55",
1917
+ qwik: "2.0.0-beta.41-dev+4d04076",
1918
1918
  qwikDom: "2.1.19"
1919
1919
  };
1920
1920
 
@@ -2363,7 +2363,7 @@ var SSRContainer = class extends Cc {
2363
2363
  t[QRuntimeAttr] = "2";
2364
2364
  t[QVersionAttr] = this.je ?? "dev";
2365
2365
  t[QRenderAttr] = (e ? e + "-" : "") + (isDev8 ? "ssr-dev" : "ssr");
2366
- t[br] = this.De || "";
2366
+ t[vr] = this.De || "";
2367
2367
  t[QLocaleAttr] = this.en;
2368
2368
  t[QManifestHashAttr] = this.resolvedManifest.manifest.manifestHash;
2369
2369
  t[QInstanceAttr] = this.Ht;
@@ -2382,7 +2382,7 @@ var SSRContainer = class extends Cc {
2382
2382
  /** Renders closing tag for current container */ closeContainer() {
2383
2383
  return this.closeElement();
2384
2384
  }
2385
- Tt=0;
2385
+ qt=0;
2386
2386
  /** Renders opening tag for DOM element */
2387
2387
  openElement(t, e, n, r = null, s = null, i = null, o = true) {
2388
2388
  if (!VALID_ELEMENT_NAME.test(t)) {
@@ -2390,13 +2390,13 @@ var SSRContainer = class extends Cc {
2390
2390
  }
2391
2391
  const a = isQwikStyleElement(t, n) || isQwikStyleElement(t, r);
2392
2392
  if (NO_SCRIPT_HERE_ELEMENTS.has(t)) {
2393
- this.Tt++;
2393
+ this.qt++;
2394
2394
  }
2395
2395
  if (
2396
2396
  // don't append qwik loader before qwik style elements
2397
2397
  // it will confuse the resuming, because styles are expected to be the first nodes in subtree
2398
2398
  !a && this.qlInclude === 1 /* Inline */) {
2399
- if (this.Tt === 0 && this.size > 30 * 1024 && t !== "body") {
2399
+ if (this.qt === 0 && this.size > 30 * 1024 && t !== "body") {
2400
2400
  this.emitQwikLoaderInline();
2401
2401
  }
2402
2402
  }
@@ -2470,7 +2470,7 @@ var SSRContainer = class extends Cc {
2470
2470
  }
2471
2471
  this.lastNode = null;
2472
2472
  if (NO_SCRIPT_HERE_ELEMENTS.has(e)) {
2473
- this.Tt--;
2473
+ this.qt--;
2474
2474
  }
2475
2475
  }
2476
2476
  /** Writes opening data to vNodeData for fragment boundaries */ openFragment(t) {
@@ -2600,7 +2600,7 @@ var SSRContainer = class extends Cc {
2600
2600
  }
2601
2601
  for (let e = 0; e < t.length; e++) {
2602
2602
  const n = t[e];
2603
- const r = ao(n.tag, null, n.attributes || {}, null, 0, null);
2603
+ const r = fo(n.tag, null, n.attributes || {}, null, 0, null);
2604
2604
  if (n.location === "head") {
2605
2605
  this.additionalHeadNodes.push(r);
2606
2606
  } else {
@@ -2618,7 +2618,7 @@ var SSRContainer = class extends Cc {
2618
2618
  if (!this.styleIds.has(e)) {
2619
2619
  this.styleIds.add(e);
2620
2620
  if (this.currentElementFrame?.elementName === "html") {
2621
- this.additionalHeadNodes.push(fo("style", null, {
2621
+ this.additionalHeadNodes.push(co("style", null, {
2622
2622
  dangerouslySetInnerHTML: t,
2623
2623
  [dr]: e
2624
2624
  }, null, 0, e));
@@ -2904,7 +2904,7 @@ var SSRContainer = class extends Cc {
2904
2904
  }
2905
2905
  }
2906
2906
  emitStateData() {
2907
- if (!this.serializationCtx.le.length && !this.serializationCtx.Te.size) {
2907
+ if (!this.serializationCtx.le.length && !this.serializationCtx.qe.size) {
2908
2908
  return;
2909
2909
  }
2910
2910
  const t = this.stateScriptAttrs();
@@ -2919,7 +2919,7 @@ var SSRContainer = class extends Cc {
2919
2919
  type: "qwik/state",
2920
2920
  [QInstanceAttr]: this.Ht
2921
2921
  };
2922
- const e = this.serializationCtx.Te;
2922
+ const e = this.serializationCtx.qe;
2923
2923
  if (e.size > 0) {
2924
2924
  t["q-d:qidle"] = la(null, "_res", _, null, [ ...e ]);
2925
2925
  }
@@ -2961,7 +2961,7 @@ var SSRContainer = class extends Cc {
2961
2961
  for (const [e, n] of this.backpatchMap) {
2962
2962
  for (let r = 0; r < n.length; r++) {
2963
2963
  const s = n[r];
2964
- t.push(e, s.attrName, Tu(s.value) ? s.value.untrackedValue : s.value);
2964
+ t.push(e, s.attrName, qu(s.value) ? s.value.untrackedValue : s.value);
2965
2965
  }
2966
2966
  }
2967
2967
  this.backpatchMap.clear();
@@ -3239,7 +3239,7 @@ var SSRContainer = class extends Cc {
3239
3239
  u = _setEvent(this.serializationCtx, c, u, a);
3240
3240
  } else if (c === "ref") {
3241
3241
  const t = this.getOrCreateLastNode();
3242
- if (Tu(u)) {
3242
+ if (qu(u)) {
3243
3243
  u.Ct = new DomRef(t);
3244
3244
  continue;
3245
3245
  } else if (typeof u === "function") {
@@ -3256,9 +3256,9 @@ var SSRContainer = class extends Cc {
3256
3256
  continue;
3257
3257
  }
3258
3258
  u = typeof t === "number" ? [ t ] : String(t);
3259
- } else if (Tu(u)) {
3259
+ } else if (qu(u)) {
3260
3260
  const t = this.getOrCreateLastNode();
3261
- const e = new Gs({
3261
+ const e = new Ys({
3262
3262
  j: i,
3263
3263
  rt: s
3264
3264
  });
@@ -3362,7 +3362,7 @@ var SSRSegmentContainer = class extends SSRContainer {
3362
3362
  this.ar(n, s);
3363
3363
  const o = this.lr(n, r, s);
3364
3364
  if (r && (i.newRootLocalIds.length > 0 || o !== void 0)) {
3365
- s.ve = n.serializationCtx.ee;
3365
+ s.be = n.serializationCtx.ee;
3366
3366
  await this.emitStatePatchData(t, i.newRootStart, i.newRootLocalIds, o);
3367
3367
  n.serializationCtx.ge = n.serializationCtx.le.length + (n.serializationCtx._e ? 1 : 0);
3368
3368
  n.serializationCtx.ee += s.ee;
@@ -3394,7 +3394,7 @@ var SSRSegmentContainer = class extends SSRContainer {
3394
3394
  };
3395
3395
  } finally {
3396
3396
  if (this.F !== 1 /* EarlyFinalized */) {
3397
- s.qe = void 0;
3397
+ s.Te = void 0;
3398
3398
  n.removeOutOfOrderSegment(this);
3399
3399
  }
3400
3400
  n.serializationCtx.re(n.writer);
@@ -3408,7 +3408,7 @@ var SSRSegmentContainer = class extends SSRContainer {
3408
3408
  this.F = 2 /* Done */;
3409
3409
  this.Le.removeOutOfOrderSegment(this);
3410
3410
  } finally {
3411
- this.serializationCtx.qe = void 0;
3411
+ this.serializationCtx.Te = void 0;
3412
3412
  }
3413
3413
  }
3414
3414
  markVNodeDataForSerialization(t, e = 16 /* SERIALIZE */) {
@@ -3449,7 +3449,7 @@ var SSRSegmentContainer = class extends SSRContainer {
3449
3449
  }
3450
3450
  ir(t, e) {
3451
3451
  const n = this.commitSegmentRoots(t, e);
3452
- e.qe = (e, r, s) => {
3452
+ e.Te = (e, r, s) => {
3453
3453
  this.commitSegmentRoot(t, e, r, s, n);
3454
3454
  };
3455
3455
  return n;
@@ -3520,7 +3520,7 @@ var SSRSegmentContainer = class extends SSRContainer {
3520
3520
  this.seedCommittedRootForLiveSegments(t, r);
3521
3521
  }
3522
3522
  const o = t.serializationCtx;
3523
- s.rootIdMap[e] = t.v() && i >= o.be ? i + (o._e ? 1 : 0) : i;
3523
+ s.rootIdMap[e] = t.v() && i >= o.ve ? i + (o._e ? 1 : 0) : i;
3524
3524
  }
3525
3525
  seedCommittedRootForLiveSegments(t, e) {
3526
3526
  const n = t.outOfOrderSegments;
@@ -3820,7 +3820,7 @@ function resolveManifest(t) {
3820
3820
  const t = {};
3821
3821
  for (const e in n.mapping) {
3822
3822
  const r = n.mapping[e];
3823
- t[sd(e)] = [ e, r ];
3823
+ t[ed(e)] = [ e, r ];
3824
3824
  }
3825
3825
  return {
3826
3826
  mapper: t,
@@ -1,5 +1,5 @@
1
- import { cloudflarePagesAdapter as cloudflareWorkersAdapter } from "@builder.io/qwik-city/adapters/cloudflare-pages/vite";
2
- import { extendConfig } from "@builder.io/qwik-city/vite";
1
+ import { cloudflarePagesAdapter as cloudflareWorkersAdapter } from "@qwik.dev/router/adapters/cloudflare-pages/vite";
2
+ import { extendConfig } from "@qwik.dev/router/vite";
3
3
  import baseConfig from "../../vite.config";
4
4
 
5
5
  export default extendConfig(baseConfig, () => {
@@ -7,7 +7,7 @@ export default extendConfig(baseConfig, () => {
7
7
  build: {
8
8
  ssr: true,
9
9
  rolldownOptions: {
10
- input: ["src/entry.cloudflare-pages.tsx", "@qwik-city-plan"],
10
+ input: ["src/entry.cloudflare-pages.tsx"],
11
11
  },
12
12
  },
13
13
  plugins: [cloudflareWorkersAdapter()],
@@ -8,16 +8,15 @@
8
8
  *
9
9
  */
10
10
  import {
11
- createQwikCity,
11
+ createQwikRouter,
12
12
  type PlatformCloudflarePages as PlatformCloudflareWorkers,
13
- } from "@builder.io/qwik-city/middleware/cloudflare-pages";
14
- import qwikCityPlan from "@qwik-city-plan";
13
+ } from "@qwik.dev/router/middleware/cloudflare-pages";
15
14
  import render from "./entry.ssr";
16
15
 
17
16
  declare global {
18
- type QwikCityPlatform = PlatformCloudflareWorkers;
17
+ type QwikRouterPlatform = PlatformCloudflareWorkers;
19
18
  }
20
19
 
21
- const fetch = createQwikCity({ render, qwikCityPlan });
20
+ const fetch = createQwikRouter({ render });
22
21
 
23
22
  export { fetch };
@@ -1,4 +1,4 @@
1
- import { component$, getLocale } from "@builder.io/qwik";
1
+ import { component$, getLocale } from "@qwik.dev/core";
2
2
  import { _, locales } from "compiled-i18n";
3
3
 
4
4
  export const LocaleSelector = component$(() => {
@@ -1,6 +1,6 @@
1
1
  // ... other imports
2
2
  import { guessLocale } from "compiled-i18n";
3
- import type { RequestHandler } from "@builder.io/qwik-city";
3
+ import type { RequestHandler } from "@qwik.dev/router";
4
4
 
5
5
  /**
6
6
  * Handle incoming requests to determine and set the appropriate locale.
@@ -1,4 +1,4 @@
1
- import { routeAction$ } from "@builder.io/qwik-city";
1
+ import { routeAction$ } from "@qwik.dev/router";
2
2
 
3
3
  export const useExampleAction = routeAction$(() => {
4
4
  return "This is example action data.";
@@ -1,5 +1,5 @@
1
- import { $, component$ } from "@builder.io/qwik";
2
- import { QwikCityMockProvider } from "@builder.io/qwik-city";
1
+ import { $, component$ } from "@qwik.dev/core";
2
+ import { QwikRouterMockProvider } from "@qwik.dev/router";
3
3
 
4
4
  import { ExampleTest } from "./example";
5
5
  import { useExampleLoader } from "../../loaders/example.loader";
@@ -25,9 +25,9 @@ const Template = component$((props: { flag: boolean }) => {
25
25
  ];
26
26
 
27
27
  return (
28
- <QwikCityMockProvider loaders={loadersMock} actions={actionsMock}>
28
+ <QwikRouterMockProvider loaders={loadersMock} actions={actionsMock}>
29
29
  <ExampleTest flag={props.flag} />
30
- </QwikCityMockProvider>
30
+ </QwikRouterMockProvider>
31
31
  );
32
32
  });
33
33
 
@@ -1,4 +1,4 @@
1
- import { routeLoader$ } from "@builder.io/qwik-city";
1
+ import { routeLoader$ } from "@qwik.dev/router";
2
2
 
3
3
  export const useExampleLoader = routeLoader$(() => {
4
4
  return "This is example loader data.";