@vue/compat 3.2.23 → 3.2.24
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/README.md +1 -0
- package/dist/vue.cjs.js +31 -33
- package/dist/vue.cjs.prod.js +30 -32
- package/dist/vue.esm-browser.js +11 -30
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +11 -30
- package/dist/vue.global.js +11 -30
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +5 -4
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +5 -4
- package/dist/vue.runtime.global.js +5 -4
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -4761,7 +4761,7 @@ function setFullProps(instance, rawProps, props, attrs) {
|
|
|
4761
4761
|
continue;
|
|
4762
4762
|
}
|
|
4763
4763
|
}
|
|
4764
|
-
if (value !== attrs[key]) {
|
|
4764
|
+
if (!(key in attrs) || value !== attrs[key]) {
|
|
4765
4765
|
attrs[key] = value;
|
|
4766
4766
|
hasAttrsChanged = true;
|
|
4767
4767
|
}
|
|
@@ -5344,7 +5344,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
5344
5344
|
return vm;
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
|
-
Vue.version = "3.2.
|
|
5347
|
+
Vue.version = "3.2.24";
|
|
5348
5348
|
Vue.config = singletonApp.config;
|
|
5349
5349
|
Vue.use = (p, ...options) => {
|
|
5350
5350
|
if (p && isFunction(p.install)) {
|
|
@@ -8364,6 +8364,7 @@ function convertLegacyFunctionalComponent(comp) {
|
|
|
8364
8364
|
};
|
|
8365
8365
|
Func.props = comp.props;
|
|
8366
8366
|
Func.displayName = comp.name;
|
|
8367
|
+
Func.compatConfig = comp.compatConfig;
|
|
8367
8368
|
// v2 functional components do not inherit attrs
|
|
8368
8369
|
Func.inheritAttrs = false;
|
|
8369
8370
|
normalizedFunctionalComponentMap.set(comp, Func);
|
|
@@ -11049,7 +11050,7 @@ function isMemoSame(cached, memo) {
|
|
|
11049
11050
|
}
|
|
11050
11051
|
|
|
11051
11052
|
// Core API ------------------------------------------------------------------
|
|
11052
|
-
const version = "3.2.
|
|
11053
|
+
const version = "3.2.24";
|
|
11053
11054
|
const _ssrUtils = {
|
|
11054
11055
|
createComponentInstance,
|
|
11055
11056
|
setupComponent,
|
|
@@ -11733,7 +11734,7 @@ class VueElement extends BaseClass {
|
|
|
11733
11734
|
// HMR
|
|
11734
11735
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
11735
11736
|
instance.ceReload = newStyles => {
|
|
11736
|
-
//
|
|
11737
|
+
// always reset styles
|
|
11737
11738
|
if (this._styles) {
|
|
11738
11739
|
this._styles.forEach(s => this.shadowRoot.removeChild(s));
|
|
11739
11740
|
this._styles.length = 0;
|
|
@@ -13561,7 +13562,6 @@ function getUnnormalizedProps(props, callPath = []) {
|
|
|
13561
13562
|
}
|
|
13562
13563
|
function injectProp(node, prop, context) {
|
|
13563
13564
|
let propsWithInjection;
|
|
13564
|
-
const originalProps = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
13565
13565
|
/**
|
|
13566
13566
|
* 1. mergeProps(...)
|
|
13567
13567
|
* 2. toHandlers(...)
|
|
@@ -13570,7 +13570,7 @@ function injectProp(node, prop, context) {
|
|
|
13570
13570
|
*
|
|
13571
13571
|
* we need to get the real props before normalization
|
|
13572
13572
|
*/
|
|
13573
|
-
let props =
|
|
13573
|
+
let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
13574
13574
|
let callPath = [];
|
|
13575
13575
|
let parentCall;
|
|
13576
13576
|
if (props &&
|
|
@@ -14593,15 +14593,6 @@ function isSingleElementRoot(root, child) {
|
|
|
14593
14593
|
!isSlotOutlet(child));
|
|
14594
14594
|
}
|
|
14595
14595
|
function walk$1(node, context, doNotHoistNode = false) {
|
|
14596
|
-
// Some transforms, e.g. transformAssetUrls from @vue/compiler-sfc, replaces
|
|
14597
|
-
// static bindings with expressions. These expressions are guaranteed to be
|
|
14598
|
-
// constant so they are still eligible for hoisting, but they are only
|
|
14599
|
-
// available at runtime and therefore cannot be evaluated ahead of time.
|
|
14600
|
-
// This is only a concern for pre-stringification (via transformHoist by
|
|
14601
|
-
// @vue/compiler-dom), but doing it here allows us to perform only one full
|
|
14602
|
-
// walk of the AST and allow `stringifyStatic` to stop walking as soon as its
|
|
14603
|
-
// stringification threshold is met.
|
|
14604
|
-
let canStringify = true;
|
|
14605
14596
|
const { children } = node;
|
|
14606
14597
|
const originalCount = children.length;
|
|
14607
14598
|
let hoistedCount = 0;
|
|
@@ -14614,9 +14605,6 @@ function walk$1(node, context, doNotHoistNode = false) {
|
|
|
14614
14605
|
? 0 /* NOT_CONSTANT */
|
|
14615
14606
|
: getConstantType(child, context);
|
|
14616
14607
|
if (constantType > 0 /* NOT_CONSTANT */) {
|
|
14617
|
-
if (constantType < 3 /* CAN_STRINGIFY */) {
|
|
14618
|
-
canStringify = false;
|
|
14619
|
-
}
|
|
14620
14608
|
if (constantType >= 2 /* CAN_HOIST */) {
|
|
14621
14609
|
child.codegenNode.patchFlag =
|
|
14622
14610
|
-1 /* HOISTED */ + ((process.env.NODE_ENV !== 'production') ? ` /* HOISTED */` : ``);
|
|
@@ -14647,17 +14635,10 @@ function walk$1(node, context, doNotHoistNode = false) {
|
|
|
14647
14635
|
}
|
|
14648
14636
|
}
|
|
14649
14637
|
}
|
|
14650
|
-
else if (child.type === 12 /* TEXT_CALL */
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
canStringify = false;
|
|
14655
|
-
}
|
|
14656
|
-
if (contentType >= 2 /* CAN_HOIST */) {
|
|
14657
|
-
child.codegenNode = context.hoist(child.codegenNode);
|
|
14658
|
-
hoistedCount++;
|
|
14659
|
-
}
|
|
14660
|
-
}
|
|
14638
|
+
else if (child.type === 12 /* TEXT_CALL */ &&
|
|
14639
|
+
getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
|
|
14640
|
+
child.codegenNode = context.hoist(child.codegenNode);
|
|
14641
|
+
hoistedCount++;
|
|
14661
14642
|
}
|
|
14662
14643
|
// walk further
|
|
14663
14644
|
if (child.type === 1 /* ELEMENT */) {
|
|
@@ -14681,7 +14662,7 @@ function walk$1(node, context, doNotHoistNode = false) {
|
|
|
14681
14662
|
}
|
|
14682
14663
|
}
|
|
14683
14664
|
}
|
|
14684
|
-
if (
|
|
14665
|
+
if (hoistedCount && context.transformHoist) {
|
|
14685
14666
|
context.transformHoist(children, context, node);
|
|
14686
14667
|
}
|
|
14687
14668
|
// all children were hoisted - the entire children array is hoistable.
|
package/dist/vue.global.js
CHANGED
|
@@ -4735,7 +4735,7 @@ var Vue = (function () {
|
|
|
4735
4735
|
continue;
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
4738
|
-
if (value !== attrs[key]) {
|
|
4738
|
+
if (!(key in attrs) || value !== attrs[key]) {
|
|
4739
4739
|
attrs[key] = value;
|
|
4740
4740
|
hasAttrsChanged = true;
|
|
4741
4741
|
}
|
|
@@ -5316,7 +5316,7 @@ var Vue = (function () {
|
|
|
5316
5316
|
return vm;
|
|
5317
5317
|
}
|
|
5318
5318
|
}
|
|
5319
|
-
Vue.version = "3.2.
|
|
5319
|
+
Vue.version = "3.2.24";
|
|
5320
5320
|
Vue.config = singletonApp.config;
|
|
5321
5321
|
Vue.use = (p, ...options) => {
|
|
5322
5322
|
if (p && isFunction(p.install)) {
|
|
@@ -8281,6 +8281,7 @@ var Vue = (function () {
|
|
|
8281
8281
|
};
|
|
8282
8282
|
Func.props = comp.props;
|
|
8283
8283
|
Func.displayName = comp.name;
|
|
8284
|
+
Func.compatConfig = comp.compatConfig;
|
|
8284
8285
|
// v2 functional components do not inherit attrs
|
|
8285
8286
|
Func.inheritAttrs = false;
|
|
8286
8287
|
normalizedFunctionalComponentMap.set(comp, Func);
|
|
@@ -10906,7 +10907,7 @@ var Vue = (function () {
|
|
|
10906
10907
|
}
|
|
10907
10908
|
|
|
10908
10909
|
// Core API ------------------------------------------------------------------
|
|
10909
|
-
const version = "3.2.
|
|
10910
|
+
const version = "3.2.24";
|
|
10910
10911
|
/**
|
|
10911
10912
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
10912
10913
|
* @internal
|
|
@@ -11581,7 +11582,7 @@ var Vue = (function () {
|
|
|
11581
11582
|
// HMR
|
|
11582
11583
|
{
|
|
11583
11584
|
instance.ceReload = newStyles => {
|
|
11584
|
-
//
|
|
11585
|
+
// always reset styles
|
|
11585
11586
|
if (this._styles) {
|
|
11586
11587
|
this._styles.forEach(s => this.shadowRoot.removeChild(s));
|
|
11587
11588
|
this._styles.length = 0;
|
|
@@ -13353,7 +13354,6 @@ var Vue = (function () {
|
|
|
13353
13354
|
}
|
|
13354
13355
|
function injectProp(node, prop, context) {
|
|
13355
13356
|
let propsWithInjection;
|
|
13356
|
-
const originalProps = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
13357
13357
|
/**
|
|
13358
13358
|
* 1. mergeProps(...)
|
|
13359
13359
|
* 2. toHandlers(...)
|
|
@@ -13362,7 +13362,7 @@ var Vue = (function () {
|
|
|
13362
13362
|
*
|
|
13363
13363
|
* we need to get the real props before normalization
|
|
13364
13364
|
*/
|
|
13365
|
-
let props =
|
|
13365
|
+
let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
13366
13366
|
let callPath = [];
|
|
13367
13367
|
let parentCall;
|
|
13368
13368
|
if (props &&
|
|
@@ -14383,15 +14383,6 @@ var Vue = (function () {
|
|
|
14383
14383
|
!isSlotOutlet(child));
|
|
14384
14384
|
}
|
|
14385
14385
|
function walk$1(node, context, doNotHoistNode = false) {
|
|
14386
|
-
// Some transforms, e.g. transformAssetUrls from @vue/compiler-sfc, replaces
|
|
14387
|
-
// static bindings with expressions. These expressions are guaranteed to be
|
|
14388
|
-
// constant so they are still eligible for hoisting, but they are only
|
|
14389
|
-
// available at runtime and therefore cannot be evaluated ahead of time.
|
|
14390
|
-
// This is only a concern for pre-stringification (via transformHoist by
|
|
14391
|
-
// @vue/compiler-dom), but doing it here allows us to perform only one full
|
|
14392
|
-
// walk of the AST and allow `stringifyStatic` to stop walking as soon as its
|
|
14393
|
-
// stringification threshold is met.
|
|
14394
|
-
let canStringify = true;
|
|
14395
14386
|
const { children } = node;
|
|
14396
14387
|
const originalCount = children.length;
|
|
14397
14388
|
let hoistedCount = 0;
|
|
@@ -14404,9 +14395,6 @@ var Vue = (function () {
|
|
|
14404
14395
|
? 0 /* NOT_CONSTANT */
|
|
14405
14396
|
: getConstantType(child, context);
|
|
14406
14397
|
if (constantType > 0 /* NOT_CONSTANT */) {
|
|
14407
|
-
if (constantType < 3 /* CAN_STRINGIFY */) {
|
|
14408
|
-
canStringify = false;
|
|
14409
|
-
}
|
|
14410
14398
|
if (constantType >= 2 /* CAN_HOIST */) {
|
|
14411
14399
|
child.codegenNode.patchFlag =
|
|
14412
14400
|
-1 /* HOISTED */ + (` /* HOISTED */` );
|
|
@@ -14437,17 +14425,10 @@ var Vue = (function () {
|
|
|
14437
14425
|
}
|
|
14438
14426
|
}
|
|
14439
14427
|
}
|
|
14440
|
-
else if (child.type === 12 /* TEXT_CALL */
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
canStringify = false;
|
|
14445
|
-
}
|
|
14446
|
-
if (contentType >= 2 /* CAN_HOIST */) {
|
|
14447
|
-
child.codegenNode = context.hoist(child.codegenNode);
|
|
14448
|
-
hoistedCount++;
|
|
14449
|
-
}
|
|
14450
|
-
}
|
|
14428
|
+
else if (child.type === 12 /* TEXT_CALL */ &&
|
|
14429
|
+
getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
|
|
14430
|
+
child.codegenNode = context.hoist(child.codegenNode);
|
|
14431
|
+
hoistedCount++;
|
|
14451
14432
|
}
|
|
14452
14433
|
// walk further
|
|
14453
14434
|
if (child.type === 1 /* ELEMENT */) {
|
|
@@ -14471,7 +14452,7 @@ var Vue = (function () {
|
|
|
14471
14452
|
}
|
|
14472
14453
|
}
|
|
14473
14454
|
}
|
|
14474
|
-
if (
|
|
14455
|
+
if (hoistedCount && context.transformHoist) {
|
|
14475
14456
|
context.transformHoist(children, context, node);
|
|
14476
14457
|
}
|
|
14477
14458
|
// all children were hoisted - the entire children array is hoistable.
|