@qwik.dev/core 2.0.0-alpha.5 → 2.0.0-alpha.6

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
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-alpha.5-dev+cb53bbd
3
+ * @qwik.dev/core/optimizer 2.0.0-alpha.6-dev+d848ba5
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
@@ -1226,7 +1226,7 @@ globalThis.qwikOptimizer = function(module) {
1226
1226
  }
1227
1227
  var QWIK_BINDING_MAP = {};
1228
1228
  var versions = {
1229
- qwik: "2.0.0-alpha.5-dev+cb53bbd"
1229
+ qwik: "2.0.0-alpha.6-dev+d848ba5"
1230
1230
  };
1231
1231
  async function getSystem() {
1232
1232
  const sysEnv = getEnv();
@@ -2872,7 +2872,7 @@ globalThis.qwikOptimizer = function(module) {
2872
2872
  }
2873
2873
  var codeToText = (code, ...parts) => {
2874
2874
  if (qDev) {
2875
- const MAP = [ "Error while serializing class or style attributes", "", "", "Only primitive and object literals can be serialized. {{0}}", "", "You can render over a existing q:container. Skipping render().", "", "", "", "", "QRL is not a function", "Dynamic import not found", "Unknown type argument", "Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.", "Invoking 'use*()' method outside of invocation context.", "", "", "", "", "", "Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/components/tasks/#use-method-rules", "", "", "", "", "", "", "", 'The provided Context reference "{{0}}" is not a valid context created by createContextId()', "SsrError(tag): {{0}}", "QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.", "QRLs can not be dynamically resolved, because it does not have a chunk path", "{{0}}\nThe JSX ref attribute must be a Signal", "Serialization Error: Deserialization of data type {{0}} is not implemented", "Serialization Error: Expected vnode for ref prop, but got {{0}}", "Serialization Error: Cannot allocate data type {{0}}", "Serialization Error: Missing root id for {{0}}", "Serialization Error: Serialization of data type {{0}} is not implemented", "Serialization Error: Unvisited {{0}}", "Serialization Error: Missing QRL chunk for {{0}}", "{{0}}\nThe value of the textarea must be a string found {{1}}", "Unable to find q:container", "Element must have 'q:container' attribute.", "Unknown vnode type {{0}}.", "Materialize error: missing element: {{0}} {{1}} {{2}}", "SsrError: {{0}}", "Cannot coerce a Signal, use `.value` instead", "useComputedSignal$ QRL {{0}} {{1}} returned a Promise", "ComputedSignal is read-only", "WrappedSignal is read-only", "SsrError: Promises not expected here.", "Attribute value is unsafe for SSR" ];
2875
+ const MAP = [ "Error while serializing class or style attributes", "", "", "Only primitive and object literals can be serialized. {{0}}", "", "You can render over a existing q:container. Skipping render().", "", "", "", "", "QRL is not a function", "Dynamic import not found", "Unknown type argument", "Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.", "Invoking 'use*()' method outside of invocation context.", "", "", "", "", "", "Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/components/tasks/#use-method-rules", "", "", "", "", "", "", "", 'The provided Context reference "{{0}}" is not a valid context created by createContextId()', "SsrError(tag): {{0}}", "QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.", "QRLs can not be dynamically resolved, because it does not have a chunk path", "{{0}}\nThe JSX ref attribute must be a Signal", "Serialization Error: Deserialization of data type {{0}} is not implemented", "Serialization Error: Expected vnode for ref prop, but got {{0}}", "Serialization Error: Cannot allocate data type {{0}}", "Serialization Error: Missing root id for {{0}}", "Serialization Error: Serialization of data type {{0}} is not implemented", "Serialization Error: Unvisited {{0}}", "Serialization Error: Missing QRL chunk for {{0}}", "{{0}}\nThe value of the textarea must be a string found {{1}}", "Unable to find q:container", "Element must have 'q:container' attribute.", "Unknown vnode type {{0}}.", "Materialize error: missing element: {{0}} {{1}} {{2}}", "Cannot coerce a Signal, use `.value` instead", "useComputedSignal$ QRL {{0}} {{1}} returned a Promise", "ComputedSignal is read-only", "WrappedSignal is read-only", "SsrError: Promises not expected here.", "Attribute value is unsafe for SSR" ];
2876
2876
  let text = MAP[code] ?? "";
2877
2877
  parts.length && (text = text.replaceAll(/{{(\d+)}}/g, ((_, index) => {
2878
2878
  let v = parts[index];
@@ -2887,6 +2887,62 @@ globalThis.qwikOptimizer = function(module) {
2887
2887
  const text = codeToText(code, ...errorMessageArgs);
2888
2888
  return logErrorAndStop(text, ...errorMessageArgs);
2889
2889
  };
2890
+ var DEBUG_TYPE = "q:type";
2891
+ var START = "";
2892
+ var END = "";
2893
+ var VirtualTypeName = {
2894
+ V: START + "Virtual" + END,
2895
+ F: START + "Fragment" + END,
2896
+ S: START + "Signal" + END,
2897
+ A: START + "Awaited" + END,
2898
+ C: START + "Component" + END,
2899
+ I: START + "InlineComponent" + END,
2900
+ P: START + "Projection" + END
2901
+ };
2902
+ var OnRenderProp = "q:renderFn";
2903
+ var ComponentStylesPrefixContent = "⭐️";
2904
+ var QSlot = "q:slot";
2905
+ var QSlotParent = ":";
2906
+ var QSlotRef = "q:sref";
2907
+ var QSlotS = "q:s";
2908
+ var QStyle = "q:style";
2909
+ var QStyleSelector = "style[q\\:style]";
2910
+ var QStyleSSelector = "style[q\\:sstyle]";
2911
+ var QStylesAllSelector = QStyleSelector + "," + QStyleSSelector;
2912
+ var QScopedStyle = "q:sstyle";
2913
+ var QCtxAttr = "q:ctx";
2914
+ var QSubscribers = "q:subs";
2915
+ var QFuncsPrefix = "qFuncs_";
2916
+ var getQFuncs = (document2, hash) => document2[QFuncsPrefix + hash] || [];
2917
+ var QBaseAttr = "q:base";
2918
+ var QLocaleAttr = "q:locale";
2919
+ var QInstanceAttr = "q:instance";
2920
+ var QContainerIsland = "q:container-island";
2921
+ var QContainerIslandEnd = "/" + QContainerIsland;
2922
+ var QIgnore = "q:ignore";
2923
+ var QIgnoreEnd = "/" + QIgnore;
2924
+ var QContainerAttr = "q:container";
2925
+ var QContainerAttrEnd = "/" + QContainerAttr;
2926
+ var QTemplate = "q:template";
2927
+ var QContainerSelector = "[q\\:container]:not([q\\:container=html]):not([q\\:container=text])";
2928
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
2929
+ var SVG_NS = "http://www.w3.org/2000/svg";
2930
+ var MATH_NS = "http://www.w3.org/1998/Math/MathML";
2931
+ var ResourceEvent = "qResource";
2932
+ var RenderEvent = "qRender";
2933
+ var TaskEvent = "qTask";
2934
+ var QDefaultSlot = "";
2935
+ var ELEMENT_ID = "q:id";
2936
+ var ELEMENT_KEY = "q:key";
2937
+ var ELEMENT_PROPS = "q:props";
2938
+ var ELEMENT_SEQ = "q:seq";
2939
+ var ELEMENT_SEQ_IDX = "q:seqIdx";
2940
+ var Q_PREFIX = "q:";
2941
+ var NON_SERIALIZABLE_MARKER_PREFIX = ":";
2942
+ var USE_ON_LOCAL = NON_SERIALIZABLE_MARKER_PREFIX + "on";
2943
+ var USE_ON_LOCAL_SEQ_IDX = NON_SERIALIZABLE_MARKER_PREFIX + "onIdx";
2944
+ var Q_PROPS_SEPARATOR = ":";
2945
+ var dangerouslySetInnerHTML = "dangerouslySetInnerHTML";
2890
2946
  var createPlatform = () => ({
2891
2947
  isServer: isServer,
2892
2948
  importSymbol(containerEl, url, symbolName) {
@@ -2924,7 +2980,7 @@ globalThis.qwikOptimizer = function(module) {
2924
2980
  });
2925
2981
  var toUrl = (doc, containerEl, url) => {
2926
2982
  const baseURI = doc.baseURI;
2927
- const base = new URL(containerEl.getAttribute("q:base") ?? baseURI, baseURI);
2983
+ const base = new URL(containerEl.getAttribute(QBaseAttr) ?? baseURI, baseURI);
2928
2984
  return new URL(url, base);
2929
2985
  };
2930
2986
  var _platform = createPlatform();
@@ -2955,13 +3011,20 @@ globalThis.qwikOptimizer = function(module) {
2955
3011
  setTimeout(resolve, timeout);
2956
3012
  }));
2957
3013
  function retryOnPromise(fn, retryCount = 0) {
2958
- try {
2959
- return fn();
2960
- } catch (e) {
3014
+ const retryOrThrow = e => {
2961
3015
  if (isPromise(e) && retryCount < MAX_RETRY_ON_PROMISE_COUNT) {
2962
3016
  return e.then(retryOnPromise.bind(null, fn, retryCount++));
2963
3017
  }
2964
3018
  throw e;
3019
+ };
3020
+ try {
3021
+ const result = fn();
3022
+ if (isPromise(result)) {
3023
+ return result.catch((e => retryOrThrow(e)));
3024
+ }
3025
+ return result;
3026
+ } catch (e) {
3027
+ return retryOrThrow(e);
2965
3028
  }
2966
3029
  }
2967
3030
  var isSerializableObject = v => {
@@ -2973,62 +3036,6 @@ globalThis.qwikOptimizer = function(module) {
2973
3036
  var isString = v => "string" === typeof v;
2974
3037
  var isFunction = v => "function" === typeof v;
2975
3038
  var isDev2 = true;
2976
- var DEBUG_TYPE = "q:type";
2977
- var START = "";
2978
- var END = "";
2979
- var VirtualTypeName = {
2980
- V: START + "Virtual" + END,
2981
- F: START + "Fragment" + END,
2982
- S: START + "Signal" + END,
2983
- A: START + "Awaited" + END,
2984
- C: START + "Component" + END,
2985
- I: START + "InlineComponent" + END,
2986
- P: START + "Projection" + END
2987
- };
2988
- var OnRenderProp = "q:renderFn";
2989
- var ComponentStylesPrefixContent = "⭐️";
2990
- var QSlot = "q:slot";
2991
- var QSlotParent = ":";
2992
- var QSlotRef = "q:sref";
2993
- var QSlotS = "q:s";
2994
- var QStyle = "q:style";
2995
- var QStyleSelector = "style[q\\:style]";
2996
- var QStyleSSelector = "style[q\\:sstyle]";
2997
- var QStylesAllSelector = QStyleSelector + "," + QStyleSSelector;
2998
- var QScopedStyle = "q:sstyle";
2999
- var QCtxAttr = "q:ctx";
3000
- var QSubscribers = "q:subs";
3001
- var QFuncsPrefix = "qFuncs_";
3002
- var getQFuncs = (document2, hash) => document2[QFuncsPrefix + hash] || [];
3003
- var QBaseAttr = "q:base";
3004
- var QLocaleAttr = "q:locale";
3005
- var QInstanceAttr = "q:instance";
3006
- var QContainerIsland = "q:container-island";
3007
- var QContainerIslandEnd = "/" + QContainerIsland;
3008
- var QIgnore = "q:ignore";
3009
- var QIgnoreEnd = "/" + QIgnore;
3010
- var QContainerAttr = "q:container";
3011
- var QContainerAttrEnd = "/" + QContainerAttr;
3012
- var QTemplate = "q:template";
3013
- var QContainerSelector = "[q\\:container]:not([q\\:container=html]):not([q\\:container=text])";
3014
- var HTML_NS = "http://www.w3.org/1999/xhtml";
3015
- var SVG_NS = "http://www.w3.org/2000/svg";
3016
- var MATH_NS = "http://www.w3.org/1998/Math/MathML";
3017
- var ResourceEvent = "qResource";
3018
- var RenderEvent = "qRender";
3019
- var TaskEvent = "qTask";
3020
- var QDefaultSlot = "";
3021
- var ELEMENT_ID = "q:id";
3022
- var ELEMENT_KEY = "q:key";
3023
- var ELEMENT_PROPS = "q:props";
3024
- var ELEMENT_SEQ = "q:seq";
3025
- var ELEMENT_SEQ_IDX = "q:seqIdx";
3026
- var Q_PREFIX = "q:";
3027
- var NON_SERIALIZABLE_MARKER_PREFIX = ":";
3028
- var USE_ON_LOCAL = NON_SERIALIZABLE_MARKER_PREFIX + "on";
3029
- var USE_ON_LOCAL_SEQ_IDX = NON_SERIALIZABLE_MARKER_PREFIX + "onIdx";
3030
- var Q_PROPS_SEPARATOR = ":";
3031
- var dangerouslySetInnerHTML = "dangerouslySetInnerHTML";
3032
3039
  function setLocale(locale) {
3033
3040
  0;
3034
3041
  }
@@ -3422,6 +3429,17 @@ globalThis.qwikOptimizer = function(module) {
3422
3429
  } else if ("object" === typeof arg && null !== arg) {
3423
3430
  if (isStore(arg)) {
3424
3431
  clearStoreEffects(getStoreHandler(arg), subscriber);
3432
+ } else if (isPropsProxy(arg)) {
3433
+ const constProps = arg[_CONST_PROPS];
3434
+ const varProps = arg[_VAR_PROPS];
3435
+ if (constProps) {
3436
+ for (const key in constProps) {
3437
+ clearArgEffect(constProps[key], subscriber, seenSet);
3438
+ }
3439
+ }
3440
+ for (const key in varProps) {
3441
+ clearArgEffect(varProps[key], subscriber, seenSet);
3442
+ }
3425
3443
  } else {
3426
3444
  for (const key in arg) {
3427
3445
  clearArgEffect(arg[key], subscriber, seenSet);
@@ -4614,6 +4632,77 @@ globalThis.qwikOptimizer = function(module) {
4614
4632
  }
4615
4633
  var HANDLER_PREFIX = ":";
4616
4634
  var count = 0;
4635
+ var aVNodePath = [];
4636
+ var bVNodePath = [];
4637
+ var vnode_documentPosition = (a, b, rootVNode) => {
4638
+ if (a === b) {
4639
+ return 0;
4640
+ }
4641
+ let aDepth = -1;
4642
+ let bDepth = -1;
4643
+ while (a) {
4644
+ const vNode = aVNodePath[++aDepth] = a;
4645
+ a = vNode[1] || rootVNode && vnode_getProp(a, QSlotParent, (id => vnode_locate(rootVNode, id)));
4646
+ }
4647
+ while (b) {
4648
+ const vNode = bVNodePath[++bDepth] = b;
4649
+ b = vNode[1] || rootVNode && vnode_getProp(b, QSlotParent, (id => vnode_locate(rootVNode, id)));
4650
+ }
4651
+ while (aDepth >= 0 && bDepth >= 0) {
4652
+ a = aVNodePath[aDepth];
4653
+ b = bVNodePath[bDepth];
4654
+ if (a !== b) {
4655
+ let cursor = b;
4656
+ do {
4657
+ cursor = vnode_getNextSibling(cursor);
4658
+ if (cursor === a) {
4659
+ return 1;
4660
+ }
4661
+ } while (cursor);
4662
+ cursor = b;
4663
+ do {
4664
+ cursor = vnode_getPreviousSibling(cursor);
4665
+ if (cursor === a) {
4666
+ return -1;
4667
+ }
4668
+ } while (cursor);
4669
+ if (rootVNode && vnode_getProp(b, QSlotParent, (id => vnode_locate(rootVNode, id)))) {
4670
+ return -1;
4671
+ }
4672
+ return 1;
4673
+ }
4674
+ aDepth--;
4675
+ bDepth--;
4676
+ }
4677
+ return aDepth < bDepth ? -1 : 1;
4678
+ };
4679
+ var aSsrNodePath = [];
4680
+ var bSsrNodePath = [];
4681
+ var ssrNodeDocumentPosition = (a, b) => {
4682
+ if (a === b) {
4683
+ return 0;
4684
+ }
4685
+ let aDepth = -1;
4686
+ let bDepth = -1;
4687
+ while (a) {
4688
+ const ssrNode = aSsrNodePath[++aDepth] = a;
4689
+ a = ssrNode.currentComponentNode;
4690
+ }
4691
+ while (b) {
4692
+ const ssrNode = bSsrNodePath[++bDepth] = b;
4693
+ b = ssrNode.currentComponentNode;
4694
+ }
4695
+ while (aDepth >= 0 && bDepth >= 0) {
4696
+ a = aSsrNodePath[aDepth];
4697
+ b = bSsrNodePath[bDepth];
4698
+ if (a !== b) {
4699
+ return 1;
4700
+ }
4701
+ aDepth--;
4702
+ bDepth--;
4703
+ }
4704
+ return aDepth < bDepth ? -1 : 1;
4705
+ };
4617
4706
  var DEBUG2 = false;
4618
4707
  var createScheduler = (container, scheduleDrain, journalFlush) => {
4619
4708
  const choreQueue = [];
@@ -4654,7 +4743,7 @@ globalThis.qwikOptimizer = function(module) {
4654
4743
  }
4655
4744
  while (choreQueue.length) {
4656
4745
  const nextChore = choreQueue.shift();
4657
- const order = choreComparator(nextChore, runUptoChore, rootVNode, false);
4746
+ const order = choreComparator(nextChore, runUptoChore, rootVNode);
4658
4747
  if (null === order) {
4659
4748
  continue;
4660
4749
  }
@@ -4692,7 +4781,7 @@ globalThis.qwikOptimizer = function(module) {
4692
4781
  returnValue = safeCall((() => executeComponent(container, host, host, chore.$target$, chore.$payload$)), (jsx3 => {
4693
4782
  if (7 === chore.$type$) {
4694
4783
  const styleScopedId = container.getHostProp(host, QScopedStyle);
4695
- return vnode_diff(container, jsx3, host, addComponentStylePrefix(styleScopedId));
4784
+ return retryOnPromise((() => vnode_diff(container, jsx3, host, addComponentStylePrefix(styleScopedId))));
4696
4785
  }
4697
4786
  return jsx3;
4698
4787
  }), (err => container.handleError(err, host)));
@@ -4720,7 +4809,7 @@ globalThis.qwikOptimizer = function(module) {
4720
4809
  const parentVirtualNode = chore.$target$;
4721
4810
  let jsx2 = chore.$payload$;
4722
4811
  isSignal(jsx2) && (jsx2 = jsx2.value);
4723
- returnValue = vnode_diff(container, jsx2, parentVirtualNode, null);
4812
+ returnValue = retryOnPromise((() => vnode_diff(container, jsx2, parentVirtualNode, null)));
4724
4813
  break;
4725
4814
 
4726
4815
  case 5:
@@ -4780,7 +4869,7 @@ globalThis.qwikOptimizer = function(module) {
4780
4869
  function vNodeAlreadyDeleted(chore) {
4781
4870
  return !!(chore.$host$ && vnode_isVNode(chore.$host$) && 32 & chore.$host$[0]);
4782
4871
  }
4783
- function choreComparator(a, b, rootVNode, shouldThrowOnHostMismatch) {
4872
+ function choreComparator(a, b, rootVNode) {
4784
4873
  const macroTypeDiff = (240 & a.$type$) - (240 & b.$type$);
4785
4874
  if (0 !== macroTypeDiff) {
4786
4875
  return macroTypeDiff;
@@ -4789,16 +4878,15 @@ globalThis.qwikOptimizer = function(module) {
4789
4878
  const aHost = a.$host$;
4790
4879
  const bHost = b.$host$;
4791
4880
  if (aHost !== bHost && null !== aHost && null !== bHost) {
4792
- if (!vnode_isVNode(aHost) || !vnode_isVNode(bHost)) {
4793
- const errorMessage = `SERVER: during HTML streaming, re-running tasks on a different host is not allowed.\n You are attempting to change a state that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n Problematic Node: ${aHost.toString()}`;
4794
- if (shouldThrowOnHostMismatch) {
4795
- throw qError(45, [ errorMessage ]);
4881
+ if (vnode_isVNode(aHost) && vnode_isVNode(bHost)) {
4882
+ const hostDiff = vnode_documentPosition(aHost, bHost, rootVNode);
4883
+ if (0 !== hostDiff) {
4884
+ return hostDiff;
4796
4885
  }
4886
+ } else {
4887
+ const errorMessage = `SERVER: during HTML streaming, re-running tasks on a different host is not allowed.\n You are attempting to change a state that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n Problematic Node: ${aHost.toString()}`;
4797
4888
  logWarn(errorMessage);
4798
- return null;
4799
- }
4800
- {
4801
- const hostDiff = vnode_documentPosition(aHost, bHost, rootVNode);
4889
+ const hostDiff = ssrNodeDocumentPosition(aHost, bHost);
4802
4890
  if (0 !== hostDiff) {
4803
4891
  return hostDiff;
4804
4892
  }
@@ -4824,7 +4912,7 @@ globalThis.qwikOptimizer = function(module) {
4824
4912
  while (bottom < top) {
4825
4913
  const middle = bottom + (top - bottom >> 1);
4826
4914
  const midChore = sortedArray[middle];
4827
- const comp = choreComparator(value, midChore, rootVNode, true);
4915
+ const comp = choreComparator(value, midChore, rootVNode);
4828
4916
  if (comp < 0) {
4829
4917
  top = middle;
4830
4918
  } else {
@@ -5004,7 +5092,7 @@ globalThis.qwikOptimizer = function(module) {
5004
5092
  }
5005
5093
  valueOf() {
5006
5094
  if (qDev) {
5007
- throw qError(46);
5095
+ throw qError(45);
5008
5096
  }
5009
5097
  }
5010
5098
  toString() {
@@ -5143,7 +5231,7 @@ globalThis.qwikOptimizer = function(module) {
5143
5231
  try {
5144
5232
  const untrackedValue = computeQrl.getFn(ctx)();
5145
5233
  if (isPromise(untrackedValue)) {
5146
- throw qError(47, [ computeQrl.dev ? computeQrl.dev.file : "", computeQrl.$hash$ ]);
5234
+ throw qError(46, [ computeQrl.dev ? computeQrl.dev.file : "", computeQrl.$hash$ ]);
5147
5235
  }
5148
5236
  DEBUG3 && log2("Signal.$compute$", untrackedValue);
5149
5237
  this.$invalid$ = false;
@@ -5158,7 +5246,7 @@ globalThis.qwikOptimizer = function(module) {
5158
5246
  return super.value;
5159
5247
  }
5160
5248
  set value(_) {
5161
- throw qError(48);
5249
+ throw qError(47);
5162
5250
  }
5163
5251
  };
5164
5252
  var WrappedSignal = class extends Signal {
@@ -5205,10 +5293,10 @@ globalThis.qwikOptimizer = function(module) {
5205
5293
  return super.value;
5206
5294
  }
5207
5295
  set value(_) {
5208
- throw qError(49);
5296
+ throw qError(48);
5209
5297
  }
5210
5298
  };
5211
- var version = "2.0.0-alpha.5-dev+cb53bbd";
5299
+ var version = "2.0.0-alpha.6-dev+d848ba5";
5212
5300
  var _SharedContainer = class {
5213
5301
  $version$;
5214
5302
  $scheduler$;
@@ -6508,50 +6596,6 @@ globalThis.qwikOptimizer = function(module) {
6508
6596
  throw qError(43, [ type ]);
6509
6597
  };
6510
6598
  var isElement = node => node && "object" == typeof node && 1 === fastNodeType(node);
6511
- var aPath = [];
6512
- var bPath = [];
6513
- var vnode_documentPosition = (a, b, rootVNode) => {
6514
- if (a === b) {
6515
- return 0;
6516
- }
6517
- let aDepth = -1;
6518
- let bDepth = -1;
6519
- while (a) {
6520
- const vNode = aPath[++aDepth] = a;
6521
- a = vNode[1] || rootVNode && vnode_getProp(a, QSlotParent, (id => vnode_locate(rootVNode, id)));
6522
- }
6523
- while (b) {
6524
- const vNode = bPath[++bDepth] = b;
6525
- b = vNode[1] || rootVNode && vnode_getProp(b, QSlotParent, (id => vnode_locate(rootVNode, id)));
6526
- }
6527
- while (aDepth >= 0 && bDepth >= 0) {
6528
- a = aPath[aDepth];
6529
- b = bPath[bDepth];
6530
- if (a !== b) {
6531
- let cursor = b;
6532
- do {
6533
- cursor = vnode_getNextSibling(cursor);
6534
- if (cursor === a) {
6535
- return 1;
6536
- }
6537
- } while (cursor);
6538
- cursor = b;
6539
- do {
6540
- cursor = vnode_getPreviousSibling(cursor);
6541
- if (cursor === a) {
6542
- return -1;
6543
- }
6544
- } while (cursor);
6545
- if (rootVNode && vnode_getProp(b, QSlotParent, (id => vnode_locate(rootVNode, id)))) {
6546
- return -1;
6547
- }
6548
- return 1;
6549
- }
6550
- aDepth--;
6551
- bDepth--;
6552
- }
6553
- return aDepth < bDepth ? -1 : 1;
6554
- };
6555
6599
  var vnode_getProjectionParentComponent = (vHost, rootVNode) => {
6556
6600
  let projectionDepth = 1;
6557
6601
  while (projectionDepth--) {
@@ -8491,8 +8535,7 @@ globalThis.qwikOptimizer = function(module) {
8491
8535
  return next(err);
8492
8536
  }));
8493
8537
  setTimeout((() => {
8494
- console.log(`\n ❗️ ${magenta("Expect significant performance loss in development.")}`);
8495
- console.log(` ❗️ ${magenta("Disabling the browser's cache results in waterfall requests.")}`);
8538
+ console.log(`\n 🚧 ${magenta("Please note that development mode is slower than production.")}`);
8496
8539
  }), 1e3);
8497
8540
  }
8498
8541
  async function configurePreviewServer(middlewares, ssrOutDir, sys, path) {