@qwik.dev/core 2.0.0-beta.25 → 2.0.0-beta.26
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/dist/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +1 -1
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +116 -38
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +85 -62
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +320 -319
- package/dist/server.mjs +3 -17
- package/dist/starters/adapters/fastify/package.json +1 -1
- package/dist/testing/index.mjs +74 -60
- package/dist/testing/package.json +1 -1
- package/package.json +3 -3
package/dist/server.mjs
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/server 2.0.0-beta.
|
|
3
|
+
* @qwik.dev/core/server 2.0.0-beta.26-dev+c693cf5
|
|
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
|
|
7
7
|
*/
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
8
|
|
|
15
9
|
// packages/qwik/src/server/index.ts
|
|
16
10
|
import { setPlatform as setPlatform2 } from "@qwik.dev/core";
|
|
@@ -1174,15 +1168,7 @@ function createPlatform(opts, resolvedManifest) {
|
|
|
1174
1168
|
if (regSym) {
|
|
1175
1169
|
return regSym;
|
|
1176
1170
|
}
|
|
1177
|
-
|
|
1178
|
-
if (!modulePath.endsWith(".js")) {
|
|
1179
|
-
modulePath += ".js";
|
|
1180
|
-
}
|
|
1181
|
-
const module = __require(modulePath);
|
|
1182
|
-
if (!(symbolName in module)) {
|
|
1183
|
-
throw new Error(`Q-ERROR: missing symbol '${symbolName}' in module '${modulePath}'.`);
|
|
1184
|
-
}
|
|
1185
|
-
return module[symbolName];
|
|
1171
|
+
throw qError(6 /* dynamicImportFailed */, [symbolName]);
|
|
1186
1172
|
},
|
|
1187
1173
|
raf: () => {
|
|
1188
1174
|
console.error("server can not rerender");
|
|
@@ -1232,7 +1218,7 @@ function getBuildBase(opts) {
|
|
|
1232
1218
|
return `${import.meta.env.BASE_URL || "/"}build/`;
|
|
1233
1219
|
}
|
|
1234
1220
|
var versions = {
|
|
1235
|
-
qwik: "2.0.0-beta.
|
|
1221
|
+
qwik: "2.0.0-beta.26-dev+c693cf5",
|
|
1236
1222
|
qwikDom: "2.1.19"
|
|
1237
1223
|
};
|
|
1238
1224
|
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/testing 2.0.0-beta.
|
|
3
|
+
* @qwik.dev/core/testing 2.0.0-beta.26-dev+c693cf5
|
|
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
|
|
@@ -24004,6 +24004,7 @@ var createPlatform = () => {
|
|
|
24004
24004
|
if (regSym) {
|
|
24005
24005
|
return regSym;
|
|
24006
24006
|
}
|
|
24007
|
+
throw qError(6 /* dynamicImportFailed */, [symbolName]);
|
|
24007
24008
|
}
|
|
24008
24009
|
if (!url) {
|
|
24009
24010
|
throw qError(14 /* qrlMissingChunk */, [symbolName]);
|
|
@@ -24288,7 +24289,7 @@ Object.freeze(EMPTY_ARRAY);
|
|
|
24288
24289
|
Object.freeze(EMPTY_OBJ);
|
|
24289
24290
|
|
|
24290
24291
|
// packages/qwik/src/core/shared/qrl/qrl-class.ts
|
|
24291
|
-
import { isBrowser as
|
|
24292
|
+
import { isBrowser as isBrowser3, isDev as isDev18 } from "@qwik.dev/core/build";
|
|
24292
24293
|
import { p as preload } from "@qwik.dev/core/preloader";
|
|
24293
24294
|
|
|
24294
24295
|
// packages/qwik/src/core/reactive-primitives/backref.ts
|
|
@@ -24418,7 +24419,13 @@ function parseQRL(qrl) {
|
|
|
24418
24419
|
var QRL_RUNTIME_CHUNK = "mock-chunk";
|
|
24419
24420
|
|
|
24420
24421
|
// packages/qwik/src/core/client/run-qrl.ts
|
|
24421
|
-
function runEventHandlerQRL(handler, event, element, ctx
|
|
24422
|
+
function runEventHandlerQRL(handler, event, element, ctx) {
|
|
24423
|
+
if (!element.isConnected) {
|
|
24424
|
+
return;
|
|
24425
|
+
}
|
|
24426
|
+
if (!ctx) {
|
|
24427
|
+
ctx = newInvokeContextFromDOM(event, element);
|
|
24428
|
+
}
|
|
24422
24429
|
const container = ctx.$container$;
|
|
24423
24430
|
const hostElement = ctx.$hostElement$;
|
|
24424
24431
|
vnode_ensureElementInflated(container, hostElement);
|
|
@@ -26570,8 +26577,8 @@ function setAttribute(journal, vnode, key, value, scopedStyleIdPrefix, originalV
|
|
|
26570
26577
|
)
|
|
26571
26578
|
);
|
|
26572
26579
|
}
|
|
26573
|
-
|
|
26574
|
-
|
|
26580
|
+
function createDiffContext(container, journal, cursor, scopedStyleIdPrefix) {
|
|
26581
|
+
return {
|
|
26575
26582
|
container,
|
|
26576
26583
|
journal,
|
|
26577
26584
|
cursor,
|
|
@@ -26602,6 +26609,9 @@ var vnode_diff = (container, journal, jsxNode, vStartNode, cursor, scopedStyleId
|
|
|
26602
26609
|
})
|
|
26603
26610
|
}
|
|
26604
26611
|
};
|
|
26612
|
+
}
|
|
26613
|
+
var vnode_diff = (container, journal, jsxNode, vStartNode, cursor, scopedStyleIdPrefix) => {
|
|
26614
|
+
const diffContext = createDiffContext(container, journal, cursor, scopedStyleIdPrefix);
|
|
26605
26615
|
diff(diffContext, jsxNode, vStartNode);
|
|
26606
26616
|
const result2 = drainAsyncQueue(diffContext);
|
|
26607
26617
|
if (isPromise(result2)) {
|
|
@@ -26920,6 +26930,7 @@ function expectSlot(diffContext) {
|
|
|
26920
26930
|
vnode_setProp(diffContext.vNewNode, QSlot, slotNameKey);
|
|
26921
26931
|
vHost && vnode_setProp(vHost, slotNameKey, diffContext.vNewNode);
|
|
26922
26932
|
isDev14 && vnode_setProp(diffContext.vNewNode, DEBUG_TYPE, "P" /* Projection */);
|
|
26933
|
+
vnode_inflateProjectionTrailingText(diffContext.journal, diffContext.vNewNode);
|
|
26923
26934
|
vnode_insertBefore(
|
|
26924
26935
|
diffContext.journal,
|
|
26925
26936
|
diffContext.vParent,
|
|
@@ -27495,24 +27506,20 @@ function expectComponent(diffContext, component) {
|
|
|
27495
27506
|
const vNodeLookupKey = getKey(host) || vNodeComponentHash;
|
|
27496
27507
|
const lookupKeysAreEqual = lookupKey === vNodeLookupKey;
|
|
27497
27508
|
const hashesAreEqual = componentHash === vNodeComponentHash;
|
|
27498
|
-
if (
|
|
27499
|
-
if (
|
|
27500
|
-
diffContext,
|
|
27501
|
-
|
|
27502
|
-
lookupKey,
|
|
27503
|
-
lookupKey,
|
|
27504
|
-
diffContext.vParent
|
|
27505
|
-
)) {
|
|
27509
|
+
if (lookupKeysAreEqual) {
|
|
27510
|
+
if (hashesAreEqual) {
|
|
27511
|
+
deleteFromSideBuffer(diffContext, null, lookupKey);
|
|
27512
|
+
} else {
|
|
27506
27513
|
insertNewComponent(diffContext, host, componentQRL, jsxProps);
|
|
27514
|
+
host = diffContext.vNewNode;
|
|
27507
27515
|
shouldRender = true;
|
|
27508
27516
|
}
|
|
27509
|
-
host = diffContext.vNewNode || diffContext.vCurrent;
|
|
27510
|
-
} else if (!hashesAreEqual || !jsxNode.key) {
|
|
27511
|
-
insertNewComponent(diffContext, host, componentQRL, jsxProps);
|
|
27512
|
-
host = diffContext.vNewNode;
|
|
27513
|
-
shouldRender = true;
|
|
27514
27517
|
} else {
|
|
27515
|
-
|
|
27518
|
+
if (moveOrCreateKeyedNode(diffContext, null, lookupKey, lookupKey, diffContext.vParent)) {
|
|
27519
|
+
insertNewComponent(diffContext, host, componentQRL, jsxProps);
|
|
27520
|
+
shouldRender = true;
|
|
27521
|
+
}
|
|
27522
|
+
host = diffContext.vNewNode || diffContext.vCurrent;
|
|
27516
27523
|
}
|
|
27517
27524
|
if (host) {
|
|
27518
27525
|
const vNodeProps = vnode_getProp(
|
|
@@ -27521,7 +27528,13 @@ function expectComponent(diffContext, component) {
|
|
|
27521
27528
|
diffContext.container.$getObjectById$
|
|
27522
27529
|
);
|
|
27523
27530
|
if (!shouldRender) {
|
|
27524
|
-
|
|
27531
|
+
const propsChanged = handleProps(host, jsxProps, vNodeProps, diffContext.container);
|
|
27532
|
+
if (propsChanged && jsxNode.key == null) {
|
|
27533
|
+
insertNewComponent(diffContext, host, componentQRL, jsxProps);
|
|
27534
|
+
host = diffContext.vNewNode;
|
|
27535
|
+
shouldRender = true;
|
|
27536
|
+
}
|
|
27537
|
+
shouldRender || (shouldRender = propsChanged);
|
|
27525
27538
|
}
|
|
27526
27539
|
if (shouldRender) {
|
|
27527
27540
|
vnode_setProp(host, OnRenderProp, componentQRL);
|
|
@@ -27541,7 +27554,7 @@ function expectComponent(diffContext, component) {
|
|
|
27541
27554
|
const lookupKeysAreEqual = lookupKey === vNodeLookupKey;
|
|
27542
27555
|
const vNodeComponentHash = getComponentHash(host, diffContext.container.$getObjectById$);
|
|
27543
27556
|
const isInlineComponent = vNodeComponentHash == null;
|
|
27544
|
-
if (host && !isInlineComponent ||
|
|
27557
|
+
if (host && !isInlineComponent || !host) {
|
|
27545
27558
|
insertNewInlineComponent(diffContext);
|
|
27546
27559
|
host = diffContext.vNewNode;
|
|
27547
27560
|
} else if (!lookupKeysAreEqual) {
|
|
@@ -28214,7 +28227,7 @@ var createMacroTask = (fn) => {
|
|
|
28214
28227
|
};
|
|
28215
28228
|
|
|
28216
28229
|
// packages/qwik/src/core/shared/cursor/cursor-walker.ts
|
|
28217
|
-
import { isDev as isDev15, isServer as isServer7 } from "@qwik.dev/core/build";
|
|
28230
|
+
import { isBrowser as isBrowser2, isDev as isDev15, isServer as isServer7 } from "@qwik.dev/core/build";
|
|
28218
28231
|
var DEBUG6 = false;
|
|
28219
28232
|
var nextMicroTask = createMicroTask(processCursorQueue);
|
|
28220
28233
|
var nextMacroTask = createMacroTask(processCursorQueue);
|
|
@@ -28321,7 +28334,7 @@ function walkCursor(cursor, options) {
|
|
|
28321
28334
|
});
|
|
28322
28335
|
return;
|
|
28323
28336
|
}
|
|
28324
|
-
if (
|
|
28337
|
+
if (isBrowser2) {
|
|
28325
28338
|
const elapsed = performance.now() - startTime;
|
|
28326
28339
|
if (elapsed >= timeBudget) {
|
|
28327
28340
|
scheduleYield();
|
|
@@ -28389,10 +28402,10 @@ function getNextVNode(vNode, cursor) {
|
|
|
28389
28402
|
return null;
|
|
28390
28403
|
}
|
|
28391
28404
|
let parent = null;
|
|
28392
|
-
if (vNode.
|
|
28393
|
-
parent = vNode.parent;
|
|
28394
|
-
} else if (vNode.slotParent && vNode.slotParent.dirty & 32 /* CHILDREN */) {
|
|
28405
|
+
if (vNode.slotParent && vNode.slotParent.dirty & 32 /* CHILDREN */) {
|
|
28395
28406
|
parent = vNode.slotParent;
|
|
28407
|
+
} else if (vNode.parent && vNode.parent.dirty & 32 /* CHILDREN */) {
|
|
28408
|
+
parent = vNode.parent;
|
|
28396
28409
|
}
|
|
28397
28410
|
if (!parent) {
|
|
28398
28411
|
if (cursor.dirty & 127 /* DIRTY_MASK */) {
|
|
@@ -28460,12 +28473,14 @@ function propagatePath(target) {
|
|
|
28460
28473
|
const parent = reusablePath[i + 1] || target;
|
|
28461
28474
|
parent.dirty |= 32 /* CHILDREN */;
|
|
28462
28475
|
parent.dirtyChildren || (parent.dirtyChildren = []);
|
|
28463
|
-
parent.dirtyChildren.
|
|
28476
|
+
if (!parent.dirtyChildren.includes(child)) {
|
|
28477
|
+
parent.dirtyChildren.push(child);
|
|
28478
|
+
}
|
|
28464
28479
|
}
|
|
28465
28480
|
}
|
|
28466
28481
|
function propagateToCursorRoot(vNode, cursorRoot) {
|
|
28467
28482
|
reusablePath.push(vNode);
|
|
28468
|
-
let current = vNode.
|
|
28483
|
+
let current = vNode.slotParent || vNode.parent;
|
|
28469
28484
|
while (current) {
|
|
28470
28485
|
const isDirty = current.dirty & 127 /* DIRTY_MASK */;
|
|
28471
28486
|
const currentIsCursor = isCursor(current);
|
|
@@ -28487,14 +28502,14 @@ function propagateToCursorRoot(vNode, cursorRoot) {
|
|
|
28487
28502
|
}
|
|
28488
28503
|
}
|
|
28489
28504
|
reusablePath.push(current);
|
|
28490
|
-
current = current.
|
|
28505
|
+
current = current.slotParent || current.parent;
|
|
28491
28506
|
}
|
|
28492
28507
|
reusablePath.length = 0;
|
|
28493
28508
|
throwErrorAndStop("Cursor root not found in current path!");
|
|
28494
28509
|
}
|
|
28495
28510
|
function findAndPropagateToBlockingCursor(vNode) {
|
|
28496
28511
|
reusablePath.push(vNode);
|
|
28497
|
-
let current = vNode.
|
|
28512
|
+
let current = vNode.slotParent || vNode.parent;
|
|
28498
28513
|
while (current) {
|
|
28499
28514
|
const currentIsCursor = isCursor(current);
|
|
28500
28515
|
if (currentIsCursor) {
|
|
@@ -28503,7 +28518,7 @@ function findAndPropagateToBlockingCursor(vNode) {
|
|
|
28503
28518
|
return true;
|
|
28504
28519
|
}
|
|
28505
28520
|
reusablePath.push(current);
|
|
28506
|
-
current = current.
|
|
28521
|
+
current = current.slotParent || current.parent;
|
|
28507
28522
|
}
|
|
28508
28523
|
reusablePath.length = 0;
|
|
28509
28524
|
return false;
|
|
@@ -28525,7 +28540,7 @@ function markVNodeDirty(container, vNode, bits, cursorRoot = null) {
|
|
|
28525
28540
|
if ((isRealDirty ? prevDirty & 127 /* DIRTY_MASK */ : prevDirty) || vNode === cursorRoot) {
|
|
28526
28541
|
return;
|
|
28527
28542
|
}
|
|
28528
|
-
const parent = vNode.
|
|
28543
|
+
const parent = vNode.slotParent || vNode.parent;
|
|
28529
28544
|
if (cursorRoot && isRealDirty && parent && !parent.dirty) {
|
|
28530
28545
|
propagateToCursorRoot(vNode, cursorRoot);
|
|
28531
28546
|
return;
|
|
@@ -28535,7 +28550,9 @@ function markVNodeDirty(container, vNode, bits, cursorRoot = null) {
|
|
|
28535
28550
|
parent.dirty |= 32 /* CHILDREN */;
|
|
28536
28551
|
}
|
|
28537
28552
|
parent.dirtyChildren || (parent.dirtyChildren = []);
|
|
28538
|
-
parent.dirtyChildren.
|
|
28553
|
+
if (!parent.dirtyChildren.includes(vNode)) {
|
|
28554
|
+
parent.dirtyChildren.push(vNode);
|
|
28555
|
+
}
|
|
28539
28556
|
if (isRealDirty && vNode.dirtyChildren) {
|
|
28540
28557
|
const cursor = findCursor(vNode);
|
|
28541
28558
|
if (cursor) {
|
|
@@ -28543,7 +28560,7 @@ function markVNodeDirty(container, vNode, bits, cursorRoot = null) {
|
|
|
28543
28560
|
let cursorPosition = cursorData.position;
|
|
28544
28561
|
if (cursorPosition) {
|
|
28545
28562
|
while (cursorPosition !== cursor) {
|
|
28546
|
-
cursorPosition = cursorPosition.
|
|
28563
|
+
cursorPosition = cursorPosition.slotParent || cursorPosition.parent;
|
|
28547
28564
|
if (cursorPosition === vNode) {
|
|
28548
28565
|
cursorData.position = vNode;
|
|
28549
28566
|
break;
|
|
@@ -30123,7 +30140,7 @@ var makeResolveFunction = (qrl, symbolFn) => {
|
|
|
30123
30140
|
const qFuncs2 = getQFuncs(doc2, hash3);
|
|
30124
30141
|
return qrl.resolved = symbolRef = qFuncs2[Number(qrl.$symbol$)];
|
|
30125
30142
|
}
|
|
30126
|
-
if (
|
|
30143
|
+
if (isBrowser3 && qrl.$chunk$) {
|
|
30127
30144
|
preload(qrl.$chunk$, 1);
|
|
30128
30145
|
}
|
|
30129
30146
|
const start = now();
|
|
@@ -30221,7 +30238,7 @@ var createQRL = (chunk, symbol, symbolRef, symbolFn, captures) => {
|
|
|
30221
30238
|
})
|
|
30222
30239
|
);
|
|
30223
30240
|
}
|
|
30224
|
-
if (
|
|
30241
|
+
if (isBrowser3 && chunk) {
|
|
30225
30242
|
preload(chunk, 0.8);
|
|
30226
30243
|
}
|
|
30227
30244
|
return qrl;
|
|
@@ -31081,17 +31098,17 @@ var DomContainer = class extends _SharedContainer {
|
|
|
31081
31098
|
};
|
|
31082
31099
|
|
|
31083
31100
|
// packages/qwik/src/core/preloader/queue.ts
|
|
31084
|
-
import { isBrowser as
|
|
31101
|
+
import { isBrowser as isBrowser5 } from "@qwik.dev/core/build";
|
|
31085
31102
|
|
|
31086
31103
|
// packages/qwik/src/core/preloader/constants.ts
|
|
31087
|
-
import { isBrowser as
|
|
31088
|
-
var doc =
|
|
31104
|
+
import { isBrowser as isBrowser4 } from "@qwik.dev/core/build";
|
|
31105
|
+
var doc = isBrowser4 ? document : void 0;
|
|
31089
31106
|
var config = {
|
|
31090
31107
|
$DEBUG$: false,
|
|
31091
31108
|
$maxIdlePreloads$: 25,
|
|
31092
31109
|
$invPreloadProbability$: 0.65
|
|
31093
31110
|
};
|
|
31094
|
-
var rel =
|
|
31111
|
+
var rel = isBrowser4 && doc.createElement("link").relList.supports("modulepreload") ? "modulePreload" : "preload";
|
|
31095
31112
|
var loadStart = Date.now();
|
|
31096
31113
|
var isJSRegex = /\.[mc]?js$/;
|
|
31097
31114
|
|
|
@@ -31338,11 +31355,11 @@ var preload2 = (name, probability) => {
|
|
|
31338
31355
|
} else {
|
|
31339
31356
|
handleBundle(name, inverseProbability);
|
|
31340
31357
|
}
|
|
31341
|
-
if (
|
|
31358
|
+
if (isBrowser5) {
|
|
31342
31359
|
trigger();
|
|
31343
31360
|
}
|
|
31344
31361
|
};
|
|
31345
|
-
if (
|
|
31362
|
+
if (isBrowser5) {
|
|
31346
31363
|
document.addEventListener("qsymbol", (ev) => {
|
|
31347
31364
|
const { symbol, href } = ev.detail;
|
|
31348
31365
|
if (href) {
|
|
@@ -32021,7 +32038,7 @@ var addQrlToSerializationCtx = (effectSubscriber, container) => {
|
|
|
32021
32038
|
}
|
|
32022
32039
|
};
|
|
32023
32040
|
var scheduleEffects = (container, signal, effects) => {
|
|
32024
|
-
const
|
|
32041
|
+
const isBrowser6 = import.meta.env.TEST ? !isServerPlatform() : !isServer12;
|
|
32025
32042
|
if (effects) {
|
|
32026
32043
|
const scheduleEffect = (effectSubscription) => {
|
|
32027
32044
|
const consumer = effectSubscription.consumer;
|
|
@@ -32035,7 +32052,7 @@ var scheduleEffects = (container, signal, effects) => {
|
|
|
32035
32052
|
} else if (property === ":" /* COMPONENT */) {
|
|
32036
32053
|
markVNodeDirty(container, consumer, 4 /* COMPONENT */);
|
|
32037
32054
|
} else if (property === "." /* VNODE */) {
|
|
32038
|
-
if (
|
|
32055
|
+
if (isBrowser6) {
|
|
32039
32056
|
setNodeDiffPayload(consumer, signal);
|
|
32040
32057
|
markVNodeDirty(container, consumer, 2 /* NODE_DIFF */);
|
|
32041
32058
|
}
|
|
@@ -32048,7 +32065,7 @@ var scheduleEffects = (container, signal, effects) => {
|
|
|
32048
32065
|
scopedStyleIdPrefix: data.$scopedStyleIdPrefix$,
|
|
32049
32066
|
value: signal
|
|
32050
32067
|
};
|
|
32051
|
-
if (
|
|
32068
|
+
if (isBrowser6) {
|
|
32052
32069
|
setNodePropData(consumer, property, payload);
|
|
32053
32070
|
} else {
|
|
32054
32071
|
const node = consumer;
|
|
@@ -32462,6 +32479,7 @@ function vnode_walkDirectChildren(journal, vParent, callback) {
|
|
|
32462
32479
|
function vnode_walkVNode(vNode, callback) {
|
|
32463
32480
|
let vCursor = vNode;
|
|
32464
32481
|
if (vnode_isTextVNode(vNode)) {
|
|
32482
|
+
callback?.(vNode, null);
|
|
32465
32483
|
return;
|
|
32466
32484
|
}
|
|
32467
32485
|
let vParent = null;
|
|
@@ -32557,11 +32575,6 @@ var vnode_getDomSibling = (vNode, nextDirection, descend2) => {
|
|
|
32557
32575
|
}
|
|
32558
32576
|
return null;
|
|
32559
32577
|
};
|
|
32560
|
-
var vnode_ensureInflatedIfText = (journal, vNode) => {
|
|
32561
|
-
if (vnode_isTextVNode(vNode)) {
|
|
32562
|
-
vnode_ensureTextInflated(journal, vNode);
|
|
32563
|
-
}
|
|
32564
|
-
};
|
|
32565
32578
|
var vnode_ensureTextInflated = (journal, vnode) => {
|
|
32566
32579
|
const textVNode = ensureTextVNode(vnode);
|
|
32567
32580
|
const flags = textVNode.flags;
|
|
@@ -32908,7 +32921,7 @@ var vnode_findInsertBefore = (journal, parent, insertBefore) => {
|
|
|
32908
32921
|
} else {
|
|
32909
32922
|
adjustedInsertBefore = insertBefore;
|
|
32910
32923
|
}
|
|
32911
|
-
adjustedInsertBefore &&
|
|
32924
|
+
adjustedInsertBefore && vnode_isTextVNode(adjustedInsertBefore) && vnode_ensureTextInflated(journal, adjustedInsertBefore);
|
|
32912
32925
|
return adjustedInsertBefore;
|
|
32913
32926
|
};
|
|
32914
32927
|
var vnode_connectSiblings = (parent, vNode, vNext) => {
|
|
@@ -32932,6 +32945,15 @@ var vnode_unlinkFromOldParent = (journal, currentParent, newParent, newChild) =>
|
|
|
32932
32945
|
vnode_remove(journal, currentParent, newChild, false);
|
|
32933
32946
|
}
|
|
32934
32947
|
};
|
|
32948
|
+
var vnode_inflateProjectionTrailingText = (journal, projection) => {
|
|
32949
|
+
let last = projection;
|
|
32950
|
+
while (last && vnode_isVirtualVNode(last)) {
|
|
32951
|
+
last = last.lastChild;
|
|
32952
|
+
}
|
|
32953
|
+
if (last && vnode_isTextVNode(last) && (last.flags & 8 /* Inflated */) === 0) {
|
|
32954
|
+
vnode_ensureTextInflated(journal, last);
|
|
32955
|
+
}
|
|
32956
|
+
};
|
|
32935
32957
|
var vnode_insertBefore = (journal, parent, newChild, insertBefore) => {
|
|
32936
32958
|
if (vnode_isElementOrTextVNode(newChild)) {
|
|
32937
32959
|
vnode_insertElementBefore(journal, parent, newChild, insertBefore);
|
|
@@ -34885,15 +34907,7 @@ function createPlatform3(opts, resolvedManifest) {
|
|
|
34885
34907
|
if (regSym) {
|
|
34886
34908
|
return regSym;
|
|
34887
34909
|
}
|
|
34888
|
-
|
|
34889
|
-
if (!modulePath.endsWith(".js")) {
|
|
34890
|
-
modulePath += ".js";
|
|
34891
|
-
}
|
|
34892
|
-
const module = __require(modulePath);
|
|
34893
|
-
if (!(symbolName in module)) {
|
|
34894
|
-
throw new Error(`Q-ERROR: missing symbol '${symbolName}' in module '${modulePath}'.`);
|
|
34895
|
-
}
|
|
34896
|
-
return module[symbolName];
|
|
34910
|
+
throw qError(6 /* dynamicImportFailed */, [symbolName]);
|
|
34897
34911
|
},
|
|
34898
34912
|
raf: () => {
|
|
34899
34913
|
console.error("server can not rerender");
|
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.
|
|
4
|
+
"version": "2.0.0-beta.26",
|
|
5
5
|
"author": "Qwik Team",
|
|
6
6
|
"bin": {
|
|
7
7
|
"qwik": "./qwik-cli.mjs"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"csstype": "^3.2.3",
|
|
12
12
|
"launch-editor": "^2.12.0",
|
|
13
|
-
"rollup": "^4.
|
|
13
|
+
"rollup": "^4.59.0",
|
|
14
14
|
"ts-morph": "27.0.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"kleur": "4.1.5",
|
|
22
22
|
"prettier": "3.7.4",
|
|
23
23
|
"vitest": "4.0.16",
|
|
24
|
-
"@qwik.dev/core": "2.0.0-beta.
|
|
24
|
+
"@qwik.dev/core": "2.0.0-beta.26",
|
|
25
25
|
"@qwik.dev/dom": "2.1.19"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|