@lwc/engine-core 3.3.0 → 3.3.2
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/framework/vnodes.d.ts +0 -1
- package/dist/index.cjs.js +4 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -82,7 +82,6 @@ export interface VNodeData {
|
|
|
82
82
|
readonly on?: Readonly<Record<string, (event: Event) => any>>;
|
|
83
83
|
readonly svg?: boolean;
|
|
84
84
|
readonly renderer?: RendererAPI;
|
|
85
|
-
readonly spread?: Readonly<Record<string, any>>;
|
|
86
85
|
}
|
|
87
86
|
export interface VElementData extends VNodeData {
|
|
88
87
|
readonly key: Key;
|
package/dist/index.cjs.js
CHANGED
|
@@ -3379,28 +3379,20 @@ function isLiveBindingProp(sel, key) {
|
|
|
3379
3379
|
return sel === 'input' && (key === 'value' || key === 'checked');
|
|
3380
3380
|
}
|
|
3381
3381
|
function patchProps(oldVnode, vnode, renderer) {
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
if (shared.isUndefined(props) && shared.isUndefined(spread)) {
|
|
3382
|
+
const { props } = vnode.data;
|
|
3383
|
+
if (shared.isUndefined(props)) {
|
|
3385
3384
|
return;
|
|
3386
3385
|
}
|
|
3387
3386
|
let oldProps;
|
|
3388
3387
|
if (!shared.isNull(oldVnode)) {
|
|
3389
3388
|
oldProps = oldVnode.data.props;
|
|
3390
|
-
const oldSpread = oldVnode.data.spread;
|
|
3391
3389
|
// Props may be the same due to the static content optimization, so we can skip diffing
|
|
3392
|
-
if (oldProps === props
|
|
3390
|
+
if (oldProps === props) {
|
|
3393
3391
|
return;
|
|
3394
3392
|
}
|
|
3395
3393
|
if (shared.isUndefined(oldProps)) {
|
|
3396
3394
|
oldProps = EmptyObject;
|
|
3397
3395
|
}
|
|
3398
|
-
if (!shared.isUndefined(oldSpread)) {
|
|
3399
|
-
oldProps = shared.assign({}, oldProps, oldSpread);
|
|
3400
|
-
}
|
|
3401
|
-
}
|
|
3402
|
-
if (!shared.isUndefined(spread)) {
|
|
3403
|
-
props = shared.assign({}, props, spread);
|
|
3404
3396
|
}
|
|
3405
3397
|
const isFirstPatch = shared.isNull(oldVnode);
|
|
3406
3398
|
const { elm, sel } = vnode;
|
|
@@ -6906,5 +6898,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
6906
6898
|
exports.track = track;
|
|
6907
6899
|
exports.unwrap = unwrap;
|
|
6908
6900
|
exports.wire = wire;
|
|
6909
|
-
/** version: 3.3.
|
|
6901
|
+
/** version: 3.3.2 */
|
|
6910
6902
|
//# sourceMappingURL=index.cjs.js.map
|