@vue/runtime-dom 3.6.0-beta.15 → 3.6.0-beta.17
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/runtime-dom.cjs.js +3 -3
- package/dist/runtime-dom.cjs.prod.js +3 -3
- package/dist/runtime-dom.esm-browser.js +6 -6
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +4 -4
- package/dist/runtime-dom.global.js +6 -6
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -494,7 +494,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
494
494
|
const existingInvoker = invokers[rawName];
|
|
495
495
|
if (nextValue && existingInvoker) existingInvoker.value = sanitizeEventValue(nextValue, rawName);
|
|
496
496
|
else {
|
|
497
|
-
const [name, options] =
|
|
497
|
+
const [name, options] = parseEventName(rawName);
|
|
498
498
|
if (nextValue) addEventListener(el, name, invokers[rawName] = createInvoker(sanitizeEventValue(nextValue, rawName), instance), options);
|
|
499
499
|
else if (existingInvoker) {
|
|
500
500
|
removeEventListener(el, name, existingInvoker, options);
|
|
@@ -503,7 +503,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const optionsModifierRE = /(?:Once|Passive|Capture)$/;
|
|
506
|
-
function
|
|
506
|
+
function parseEventName(name) {
|
|
507
507
|
let options;
|
|
508
508
|
if (optionsModifierRE.test(name)) {
|
|
509
509
|
options = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -486,7 +486,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
486
486
|
const existingInvoker = invokers[rawName];
|
|
487
487
|
if (nextValue && existingInvoker) existingInvoker.value = nextValue;
|
|
488
488
|
else {
|
|
489
|
-
const [name, options] =
|
|
489
|
+
const [name, options] = parseEventName(rawName);
|
|
490
490
|
if (nextValue) addEventListener(el, name, invokers[rawName] = createInvoker(nextValue, instance), options);
|
|
491
491
|
else if (existingInvoker) {
|
|
492
492
|
removeEventListener(el, name, existingInvoker, options);
|
|
@@ -495,7 +495,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
const optionsModifierRE = /(?:Once|Passive|Capture)$/;
|
|
498
|
-
function
|
|
498
|
+
function parseEventName(name) {
|
|
499
499
|
let options;
|
|
500
500
|
if (optionsModifierRE.test(name)) {
|
|
501
501
|
options = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2479,8 +2479,8 @@ function findInsertionIndex(order, queue, start, end) {
|
|
|
2479
2479
|
/**
|
|
2480
2480
|
* @internal for runtime-vapor only
|
|
2481
2481
|
*/
|
|
2482
|
-
function queueJob(job, id, isPre = false) {
|
|
2483
|
-
if (queueJobWorker(job, id === void 0 ? isPre ? -2 : Infinity : isPre ? id * 2 : id * 2 + 1, jobs, jobsLength, flushIndex)) {
|
|
2482
|
+
function queueJob(job, id, isPre = false, order = 0) {
|
|
2483
|
+
if (queueJobWorker(job, id === void 0 ? isPre ? -2 : Infinity : isPre ? id * 2 : order ? id * 2 + 1 + order / (order + 1) : id * 2 + 1, jobs, jobsLength, flushIndex)) {
|
|
2484
2484
|
jobsLength++;
|
|
2485
2485
|
queueFlush();
|
|
2486
2486
|
}
|
|
@@ -8419,7 +8419,7 @@ function isMemoSame(cached, memo) {
|
|
|
8419
8419
|
}
|
|
8420
8420
|
//#endregion
|
|
8421
8421
|
//#region packages/runtime-core/src/index.ts
|
|
8422
|
-
const version = "3.6.0-beta.
|
|
8422
|
+
const version = "3.6.0-beta.17";
|
|
8423
8423
|
const warn = warn$1;
|
|
8424
8424
|
/**
|
|
8425
8425
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -8999,7 +8999,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
8999
8999
|
const existingInvoker = invokers[rawName];
|
|
9000
9000
|
if (nextValue && existingInvoker) existingInvoker.value = sanitizeEventValue(nextValue, rawName);
|
|
9001
9001
|
else {
|
|
9002
|
-
const [name, options] =
|
|
9002
|
+
const [name, options] = parseEventName(rawName);
|
|
9003
9003
|
if (nextValue) addEventListener(el, name, invokers[rawName] = createInvoker(sanitizeEventValue(nextValue, rawName), instance), options);
|
|
9004
9004
|
else if (existingInvoker) {
|
|
9005
9005
|
removeEventListener(el, name, existingInvoker, options);
|
|
@@ -9008,7 +9008,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
}
|
|
9010
9010
|
const optionsModifierRE = /(?:Once|Passive|Capture)$/;
|
|
9011
|
-
function
|
|
9011
|
+
function parseEventName(name) {
|
|
9012
9012
|
let options;
|
|
9013
9013
|
if (optionsModifierRE.test(name)) {
|
|
9014
9014
|
options = {};
|