@lwc/engine-core 6.5.1 → 6.5.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/api.d.ts +1 -1
- package/dist/framework/vnodes.d.ts +7 -2
- package/dist/index.cjs.js +13 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +13 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/framework/api.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function i(iterable: Iterable<any>, factory: (value: any, index: number,
|
|
|
14
14
|
* [f]lattening
|
|
15
15
|
* @param items
|
|
16
16
|
*/
|
|
17
|
-
declare function f(items:
|
|
17
|
+
declare function f(items: ReadonlyArray<VNodes> | VNodes): VNodes;
|
|
18
18
|
declare function t(text: string): VText;
|
|
19
19
|
declare function co(text: string): VComment;
|
|
20
20
|
declare function d(value: any): string;
|
|
@@ -15,7 +15,12 @@ export declare const enum VStaticPartType {
|
|
|
15
15
|
Element = 1
|
|
16
16
|
}
|
|
17
17
|
export type VNode = VText | VComment | VElement | VCustomElement | VStatic | VFragment | VScopedSlotFragment;
|
|
18
|
-
export type VNodes =
|
|
18
|
+
export type VNodes = ReadonlyArray<VNode | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Mutable version of {@link VNodes}. It should only be used inside functions to build an array;
|
|
21
|
+
* it should never be used as a parameter or return type.
|
|
22
|
+
*/
|
|
23
|
+
export type MutableVNodes = Array<VNode | null>;
|
|
19
24
|
export interface BaseVParent {
|
|
20
25
|
children: VNodes;
|
|
21
26
|
}
|
|
@@ -100,7 +105,7 @@ export interface VNodeData {
|
|
|
100
105
|
readonly className?: string;
|
|
101
106
|
readonly style?: string;
|
|
102
107
|
readonly classMap?: Readonly<Record<string, boolean>>;
|
|
103
|
-
readonly styleDecls?:
|
|
108
|
+
readonly styleDecls?: ReadonlyArray<[string, string, boolean]>;
|
|
104
109
|
readonly context?: Readonly<Record<string, Readonly<Record<string, any>>>>;
|
|
105
110
|
readonly on?: Readonly<Record<string, (event: Event) => any>>;
|
|
106
111
|
readonly svg?: boolean;
|
package/dist/index.cjs.js
CHANGED
|
@@ -2057,7 +2057,7 @@ function createContextWatcher(vm, wireDef, callbackWhenContextIsReady) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
2059
|
/*
|
|
2060
|
-
* Copyright (c)
|
|
2060
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
2061
2061
|
* All rights reserved.
|
|
2062
2062
|
* SPDX-License-Identifier: MIT
|
|
2063
2063
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -2216,7 +2216,8 @@ function installWireAdapters(vm) {
|
|
|
2216
2216
|
vm.debugInfo[WIRE_DEBUG_ENTRY] = shared.create(null);
|
|
2217
2217
|
}
|
|
2218
2218
|
const wiredConnecting = (context.wiredConnecting = []);
|
|
2219
|
-
const wiredDisconnecting = (context.wiredDisconnecting =
|
|
2219
|
+
const wiredDisconnecting = (context.wiredDisconnecting =
|
|
2220
|
+
[]);
|
|
2220
2221
|
for (const fieldNameOrMethod in wire) {
|
|
2221
2222
|
const descriptor = wire[fieldNameOrMethod];
|
|
2222
2223
|
const wireDef = WireMetaMap.get(descriptor);
|
|
@@ -2717,7 +2718,7 @@ function sanitizeAttribute(tagName, namespaceUri, attrName, attrValue) {
|
|
|
2717
2718
|
}
|
|
2718
2719
|
|
|
2719
2720
|
/*
|
|
2720
|
-
* Copyright (c)
|
|
2721
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
2721
2722
|
* All rights reserved.
|
|
2722
2723
|
* SPDX-License-Identifier: MIT
|
|
2723
2724
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -3626,7 +3627,7 @@ function createStylesheet(vm, stylesheets) {
|
|
|
3626
3627
|
}
|
|
3627
3628
|
|
|
3628
3629
|
/*
|
|
3629
|
-
* Copyright (c)
|
|
3630
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
3630
3631
|
* All rights reserved.
|
|
3631
3632
|
* SPDX-License-Identifier: MIT
|
|
3632
3633
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -4146,7 +4147,7 @@ function hydrateStaticParts(vnode, renderer) {
|
|
|
4146
4147
|
}
|
|
4147
4148
|
|
|
4148
4149
|
/*
|
|
4149
|
-
* Copyright (c)
|
|
4150
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
4150
4151
|
* All rights reserved.
|
|
4151
4152
|
* SPDX-License-Identifier: MIT
|
|
4152
4153
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -4916,7 +4917,7 @@ function updateStaticChildren(c1, c2, parent, renderer) {
|
|
|
4916
4917
|
}
|
|
4917
4918
|
|
|
4918
4919
|
/*
|
|
4919
|
-
* Copyright (c)
|
|
4920
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
4920
4921
|
* All rights reserved.
|
|
4921
4922
|
* SPDX-License-Identifier: MIT
|
|
4922
4923
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -5198,6 +5199,7 @@ function i(iterable, factory) {
|
|
|
5198
5199
|
shared.ArrayPush.apply(list, vnode);
|
|
5199
5200
|
}
|
|
5200
5201
|
else {
|
|
5202
|
+
// `isArray` doesn't narrow this block properly...
|
|
5201
5203
|
shared.ArrayPush.call(list, vnode);
|
|
5202
5204
|
}
|
|
5203
5205
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5249,6 +5251,7 @@ function f(items) {
|
|
|
5249
5251
|
shared.ArrayPush.apply(flattened, item);
|
|
5250
5252
|
}
|
|
5251
5253
|
else {
|
|
5254
|
+
// `isArray` doesn't narrow this block properly...
|
|
5252
5255
|
shared.ArrayPush.call(flattened, item);
|
|
5253
5256
|
}
|
|
5254
5257
|
}
|
|
@@ -5578,7 +5581,7 @@ function logGlobalOperationEnd(opId, vm) {
|
|
|
5578
5581
|
}
|
|
5579
5582
|
|
|
5580
5583
|
/*
|
|
5581
|
-
* Copyright (c)
|
|
5584
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
5582
5585
|
* All rights reserved.
|
|
5583
5586
|
* SPDX-License-Identifier: MIT
|
|
5584
5587
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -7549,7 +7552,7 @@ function setHooks(hooks) {
|
|
|
7549
7552
|
}
|
|
7550
7553
|
|
|
7551
7554
|
/*
|
|
7552
|
-
* Copyright (c)
|
|
7555
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
7553
7556
|
* All rights reserved.
|
|
7554
7557
|
* SPDX-License-Identifier: MIT
|
|
7555
7558
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
@@ -7617,9 +7620,9 @@ function warnOnArrayMutation(stylesheets) {
|
|
|
7617
7620
|
// we can at least warn when they use the most common mutation methods.
|
|
7618
7621
|
for (const prop of ARRAY_MUTATION_METHODS) {
|
|
7619
7622
|
const originalArrayMethod = getOriginalArrayMethod(prop);
|
|
7623
|
+
// Assertions used here because TypeScript can't handle mapping over our types
|
|
7620
7624
|
stylesheets[prop] = function arrayMutationWarningWrapper() {
|
|
7621
7625
|
reportTemplateViolation('stylesheets');
|
|
7622
|
-
// @ts-expect-error can't properly determine the right `this`
|
|
7623
7626
|
return originalArrayMethod.apply(this, arguments);
|
|
7624
7627
|
};
|
|
7625
7628
|
}
|
|
@@ -7848,5 +7851,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
7848
7851
|
exports.track = track;
|
|
7849
7852
|
exports.unwrap = unwrap;
|
|
7850
7853
|
exports.wire = wire;
|
|
7851
|
-
/** version: 6.5.
|
|
7854
|
+
/** version: 6.5.2 */
|
|
7852
7855
|
//# sourceMappingURL=index.cjs.js.map
|