lwc 2.47.0 → 2.49.0
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/engine-dom/esm/es2017/engine-dom.js +25 -14
- package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.js +25 -14
- package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +17 -24
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.js +24 -14
- package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +16 -24
- package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.js +25 -14
- package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +17 -24
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.js +24 -14
- package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +16 -24
- package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.js +15 -8
- package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +15 -8
- package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
- package/package.json +7 -7
|
@@ -320,9 +320,9 @@ var LWC = (function (exports) {
|
|
|
320
320
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
321
321
|
*/
|
|
322
322
|
// Increment whenever the LWC template compiler changes
|
|
323
|
-
const LWC_VERSION = "2.
|
|
323
|
+
const LWC_VERSION = "2.49.0";
|
|
324
324
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
325
|
-
/** version: 2.
|
|
325
|
+
/** version: 2.49.0 */
|
|
326
326
|
|
|
327
327
|
/* proxy-compat-disable */
|
|
328
328
|
/**
|
|
@@ -401,7 +401,7 @@ var LWC = (function (exports) {
|
|
|
401
401
|
setFeatureFlag(name, value);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
/** version: 2.
|
|
404
|
+
/** version: 2.49.0 */
|
|
405
405
|
|
|
406
406
|
/* proxy-compat-disable */
|
|
407
407
|
/**
|
|
@@ -466,7 +466,7 @@ var LWC = (function (exports) {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
/** version: 2.
|
|
469
|
+
/** version: 2.49.0 */
|
|
470
470
|
|
|
471
471
|
/*
|
|
472
472
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -3552,6 +3552,7 @@ var LWC = (function (exports) {
|
|
|
3552
3552
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3553
3553
|
*/
|
|
3554
3554
|
function makeHostToken(token) {
|
|
3555
|
+
// Note: if this ever changes, update the `cssScopeTokens` returned by `@lwc/compiler`
|
|
3555
3556
|
return `${token}-host`;
|
|
3556
3557
|
}
|
|
3557
3558
|
function createInlineStyleVNode(content) {
|
|
@@ -4809,15 +4810,21 @@ var LWC = (function (exports) {
|
|
|
4809
4810
|
}
|
|
4810
4811
|
// [st]atic node
|
|
4811
4812
|
function st(fragment, key, data) {
|
|
4812
|
-
|
|
4813
|
+
const owner = getVMBeingRendered();
|
|
4814
|
+
const vnode = {
|
|
4813
4815
|
type: 4 /* VNodeType.Static */,
|
|
4814
4816
|
sel: undefined,
|
|
4815
4817
|
key,
|
|
4816
4818
|
elm: undefined,
|
|
4817
4819
|
fragment,
|
|
4818
|
-
owner
|
|
4820
|
+
owner,
|
|
4819
4821
|
data,
|
|
4820
4822
|
};
|
|
4823
|
+
const ref = data === null || data === void 0 ? void 0 : data.ref;
|
|
4824
|
+
if (!isUndefined$1(ref)) {
|
|
4825
|
+
setRefVNode(owner, ref, vnode);
|
|
4826
|
+
}
|
|
4827
|
+
return vnode;
|
|
4821
4828
|
}
|
|
4822
4829
|
// [fr]agment node
|
|
4823
4830
|
function fr(key, children, stable) {
|
|
@@ -6608,7 +6615,7 @@ var LWC = (function (exports) {
|
|
|
6608
6615
|
hasMismatch = false;
|
|
6609
6616
|
runConnectedCallback(vm);
|
|
6610
6617
|
hydrateVM(vm);
|
|
6611
|
-
if (hasMismatch) {
|
|
6618
|
+
if (hasMismatch && process.env.NODE_ENV !== 'production') {
|
|
6612
6619
|
logError('Hydration completed with errors.', vm);
|
|
6613
6620
|
}
|
|
6614
6621
|
}
|
|
@@ -6680,7 +6687,9 @@ var LWC = (function (exports) {
|
|
|
6680
6687
|
if (isArray$1(optOutStaticProp) && arrayEvery(optOutStaticProp, isString)) {
|
|
6681
6688
|
return (attrName) => !ArrayIncludes.call(optOutStaticProp, attrName);
|
|
6682
6689
|
}
|
|
6683
|
-
|
|
6690
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6691
|
+
logWarn('Validation opt out must be `true` or an array of attributes that should not be validated.');
|
|
6692
|
+
}
|
|
6684
6693
|
return (_attrName) => true;
|
|
6685
6694
|
}
|
|
6686
6695
|
function hydrateText(node, vnode, renderer) {
|
|
@@ -6716,7 +6725,8 @@ var LWC = (function (exports) {
|
|
|
6716
6725
|
return node;
|
|
6717
6726
|
}
|
|
6718
6727
|
function hydrateStaticElement(elm, vnode, renderer) {
|
|
6719
|
-
if (!
|
|
6728
|
+
if (!hasCorrectNodeType(vnode, elm, 1 /* EnvNodeTypes.ELEMENT */, renderer) ||
|
|
6729
|
+
!areCompatibleNodes(vnode.fragment, elm, vnode, renderer)) {
|
|
6720
6730
|
return handleMismatch(elm, vnode, renderer);
|
|
6721
6731
|
}
|
|
6722
6732
|
vnode.elm = elm;
|
|
@@ -7055,7 +7065,9 @@ var LWC = (function (exports) {
|
|
|
7055
7065
|
const clientAttrsNames = getProperty(client, 'getAttributeNames').call(client);
|
|
7056
7066
|
clientAttrsNames.forEach((attrName) => {
|
|
7057
7067
|
if (getAttribute(client, attrName) !== getAttribute(ssr, attrName)) {
|
|
7058
|
-
|
|
7068
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7069
|
+
logError(`Mismatch hydrating element <${getProperty(client, 'tagName').toLowerCase()}>: attribute "${attrName}" has different values, expected "${getAttribute(client, attrName)}" but found "${getAttribute(ssr, attrName)}"`, vnode.owner);
|
|
7070
|
+
}
|
|
7059
7071
|
isCompatibleElements = false;
|
|
7060
7072
|
}
|
|
7061
7073
|
});
|
|
@@ -7328,7 +7340,7 @@ var LWC = (function (exports) {
|
|
|
7328
7340
|
}
|
|
7329
7341
|
return getReadOnlyProxy(obj);
|
|
7330
7342
|
}
|
|
7331
|
-
/** version: 2.
|
|
7343
|
+
/** version: 2.49.0 */
|
|
7332
7344
|
|
|
7333
7345
|
/*
|
|
7334
7346
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7590,7 +7602,6 @@ var LWC = (function (exports) {
|
|
|
7590
7602
|
* SPDX-License-Identifier: MIT
|
|
7591
7603
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
7592
7604
|
*/
|
|
7593
|
-
new WeakMap();
|
|
7594
7605
|
// Creates a custom element for compat (legacy) browser environments
|
|
7595
7606
|
const createCustomElementCompat = (tagName, upgradeCallback) => {
|
|
7596
7607
|
const elm = document.createElement(tagName);
|
|
@@ -7758,7 +7769,7 @@ var LWC = (function (exports) {
|
|
|
7758
7769
|
function isNull(obj) {
|
|
7759
7770
|
return obj === null;
|
|
7760
7771
|
}
|
|
7761
|
-
/** version: 2.
|
|
7772
|
+
/** version: 2.49.0 */
|
|
7762
7773
|
|
|
7763
7774
|
/*
|
|
7764
7775
|
* Copyright (c) 2023, salesforce.com, inc.
|
|
@@ -8377,7 +8388,7 @@ var LWC = (function (exports) {
|
|
|
8377
8388
|
});
|
|
8378
8389
|
}));
|
|
8379
8390
|
}
|
|
8380
|
-
/** version: 2.
|
|
8391
|
+
/** version: 2.49.0 */
|
|
8381
8392
|
|
|
8382
8393
|
exports.LightningElement = LightningElement;
|
|
8383
8394
|
exports.__unstable__ProfilerControl = profilerControl;
|