@qwik.dev/core 2.0.0-beta.42 → 2.0.0-beta.43

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/testing 2.0.0-beta.42-dev+3473a49
3
+ * @qwik.dev/core/testing 2.0.0-beta.43-dev+e478dfb
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
@@ -21558,9 +21558,6 @@ var isString = (v) => {
21558
21558
  var isFunction = (v) => {
21559
21559
  return typeof v === "function";
21560
21560
  };
21561
- var isPrimitiveOrNullUndefined = (v) => {
21562
- return typeof v !== "object" && typeof v !== "function" || v === null || v === void 0;
21563
- };
21564
21561
 
21565
21562
  // packages/qwik/src/core/shared/error/error.ts
21566
21563
  var baseUrl = "https://qwikdev-build-v2.qwik-8nx.pages.dev/docs/errors/#q";
@@ -21784,6 +21781,7 @@ var QDefaultSlot = "";
21784
21781
  var ELEMENT_ID = "q:id";
21785
21782
  var ELEMENT_KEY = "q:key";
21786
21783
  var ELEMENT_PROPS = "q:props";
21784
+ var USE_ON_PLACEHOLDER_KEY = ":useOn";
21787
21785
  var ELEMENT_SEQ = "q:seq";
21788
21786
  var ELEMENT_SEQ_IDX = "q:seqIdx";
21789
21787
  var ELEMENT_BACKPATCH_DATA = "qwik/backpatch";
@@ -26615,30 +26613,10 @@ function findFirstElementNode(jsx2) {
26615
26613
  return null;
26616
26614
  }
26617
26615
  function injectPlaceholderElement(jsx2, placeholder) {
26618
- if (isJSXNode(jsx2)) {
26619
- if (jsx2.type !== Fragment) {
26620
- return _jsxSorted(Fragment, null, null, [jsx2, placeholder], 0, null);
26621
- }
26622
- if (jsx2.children == null) {
26623
- jsx2.children = placeholder;
26624
- } else if (isArray(jsx2.children)) {
26625
- jsx2.children.push(placeholder);
26626
- } else {
26627
- jsx2.children = [jsx2.children, placeholder];
26628
- }
26629
- return jsx2;
26630
- }
26631
- if (isPrimitiveOrNullUndefined(jsx2)) {
26632
- return _jsxSorted(Fragment, null, null, [jsx2, placeholder], 0, null);
26633
- }
26634
- if (isArray(jsx2) && jsx2.length > 0) {
26635
- injectPlaceholderElement(jsx2[0], placeholder);
26636
- return jsx2;
26637
- }
26638
- return jsx2;
26616
+ return isArray(jsx2) ? [...jsx2, placeholder] : [jsx2, placeholder];
26639
26617
  }
26640
26618
  function createPlaceholderScriptNode() {
26641
- return new JSXNodeImpl("script", null, { hidden: "" }, null, 0, null);
26619
+ return new JSXNodeImpl("script", null, { hidden: "" }, null, 0, USE_ON_PLACEHOLDER_KEY);
26642
26620
  }
26643
26621
 
26644
26622
  // packages/qwik/src/core/shared/serdes/allocate.ts
@@ -29686,10 +29664,13 @@ function cleanup(container, journal, vNode, cursorRoot = null) {
29686
29664
  const obj = seq[i2];
29687
29665
  if (isObject(obj)) {
29688
29666
  const objIsTask = isTask(obj);
29689
- if (objIsTask && obj.$flags$ & 1 /* VISIBLE_TASK */) {
29690
- obj.$flags$ |= 16 /* NEEDS_CLEANUP */;
29691
- markVNodeDirty(container, vCursor, 128 /* CLEANUP */, cursorRoot);
29692
- continue;
29667
+ if (objIsTask) {
29668
+ clearAllEffects(container, obj);
29669
+ if (obj.$flags$ & 1 /* VISIBLE_TASK */) {
29670
+ obj.$flags$ |= 16 /* NEEDS_CLEANUP */;
29671
+ markVNodeDirty(container, vCursor, 128 /* CLEANUP */, cursorRoot);
29672
+ continue;
29673
+ }
29693
29674
  } else if (obj instanceof ComputedSignalImpl || obj instanceof WrappedSignalImpl) {
29694
29675
  if (!(obj.$flags$ & 4 /* PRESERVE_ON_SEQ_CLEANUP */)) {
29695
29676
  clearAllEffects(container, obj);
@@ -31368,7 +31349,8 @@ var DomContainer = class extends _SharedContainer {
31368
31349
  if (!__EXPERIMENTAL__.errorBoundary) {
31369
31350
  const errorStore = host && this.resolveContext(host, ERROR_CONTEXT);
31370
31351
  if (!errorStore) {
31371
- throw err;
31352
+ logErrorAndThrowAsync(err);
31353
+ return;
31372
31354
  }
31373
31355
  errorStore.error = err;
31374
31356
  return;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/testing",
3
- "version": "2.0.0-beta.42-dev+3473a49",
3
+ "version": "2.0.0-beta.43-dev+e478dfb",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/worker",
3
- "version": "2.0.0-beta.42-dev+3473a49",
3
+ "version": "2.0.0-beta.43-dev+e478dfb",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.mts",
6
6
  "private": true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwik.dev/core",
3
3
  "description": "An open source framework for building instant loading web apps at any scale, without the extra effort.",
4
- "version": "2.0.0-beta.42",
4
+ "version": "2.0.0-beta.43",
5
5
  "author": "Qwik Team",
6
6
  "bin": {
7
7
  "qwik": "./qwik-cli.mjs"
@@ -11,7 +11,7 @@
11
11
  "csstype": "^3.2.3",
12
12
  "launch-editor": "^2.14.1",
13
13
  "magic-string": "0.30.21",
14
- "@qwik.dev/optimizer": "2.1.0-beta.7"
14
+ "@qwik.dev/optimizer": "2.1.0-beta.8"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@croct/json5-parser": "0.2.2",
@@ -22,7 +22,7 @@
22
22
  "prettier": "3.7.4",
23
23
  "rolldown": "1.2.4",
24
24
  "vitest": "4.1.10",
25
- "@qwik.dev/core": "2.0.0-beta.42",
25
+ "@qwik.dev/core": "2.0.0-beta.43",
26
26
  "@qwik.dev/dom": "2.1.19"
27
27
  },
28
28
  "engines": {