@lwc/engine-core 7.1.0 → 7.1.1
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/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/framework/api.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare function shc(content: unknown): string;
|
|
|
55
55
|
* This implementation is borrowed from Vue:
|
|
56
56
|
* https://github.com/vuejs/core/blob/e790e1bdd7df7be39e14780529db86e4da47a3db/packages/shared/src/normalizeProp.ts#L63-L82
|
|
57
57
|
*/
|
|
58
|
-
declare function ncls(value: unknown): string;
|
|
58
|
+
declare function ncls(value: unknown): string | undefined;
|
|
59
59
|
declare const api: Readonly<{
|
|
60
60
|
s: typeof s;
|
|
61
61
|
h: typeof h;
|
package/dist/index.cjs.js
CHANGED
|
@@ -3231,9 +3231,9 @@ function unrenderStylesheet(stylesheet) {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
for (const cssContent of cssContents) {
|
|
3233
3233
|
const abortController = cssContentToAbortControllers.get(cssContent);
|
|
3234
|
-
/* istanbul ignore if */
|
|
3235
3234
|
if (shared.isUndefined(abortController)) {
|
|
3236
|
-
|
|
3235
|
+
// Two stylesheets with the same content will share an abort controller, in which case it only needs to be called once.
|
|
3236
|
+
continue;
|
|
3237
3237
|
}
|
|
3238
3238
|
abortController.abort();
|
|
3239
3239
|
// remove association with AbortController in case stylesheet is rendered again
|
|
@@ -5631,6 +5631,11 @@ function shc(content) {
|
|
|
5631
5631
|
* https://github.com/vuejs/core/blob/e790e1bdd7df7be39e14780529db86e4da47a3db/packages/shared/src/normalizeProp.ts#L63-L82
|
|
5632
5632
|
*/
|
|
5633
5633
|
function ncls(value) {
|
|
5634
|
+
if (shared.isUndefined(value) || shared.isNull(value)) {
|
|
5635
|
+
// Returning undefined here improves initial render cost, because the old vnode's class will be considered
|
|
5636
|
+
// undefined in the `patchClassAttribute` routine, so `oldClass === newClass` will be true so we return early
|
|
5637
|
+
return undefined;
|
|
5638
|
+
}
|
|
5634
5639
|
let res = '';
|
|
5635
5640
|
if (shared.isString(value)) {
|
|
5636
5641
|
res = value;
|
|
@@ -8084,5 +8089,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8084
8089
|
exports.track = track;
|
|
8085
8090
|
exports.unwrap = unwrap;
|
|
8086
8091
|
exports.wire = wire;
|
|
8087
|
-
/** version: 7.1.
|
|
8092
|
+
/** version: 7.1.1 */
|
|
8088
8093
|
//# sourceMappingURL=index.cjs.js.map
|