@lwc/engine-core 8.13.1 → 8.13.3
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/invoker.d.ts +1 -1
- package/dist/index.cjs.js +4 -6
- package/dist/index.js +4 -6
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LightningElement } from './base-lightning-element';
|
|
2
2
|
import type { VM } from './vm';
|
|
3
3
|
import type { LightningElementConstructor } from './base-lightning-element';
|
|
4
4
|
import type { VNodes } from './vnodes';
|
package/dist/index.cjs.js
CHANGED
|
@@ -6494,11 +6494,9 @@ function invokeComponentConstructor(vm, Ctor) {
|
|
|
6494
6494
|
// the "instanceof" operator would not work here since Locker Service provides its own
|
|
6495
6495
|
// implementation of LightningElement, so we indirectly check if the base constructor is
|
|
6496
6496
|
// invoked by accessing the component on the vm.
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
// : !(result instanceof LightningElement);
|
|
6501
|
-
const isInvalidConstructor = vmBeingConstructed.component !== result;
|
|
6497
|
+
const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
|
|
6498
|
+
? vmBeingConstructed.component !== result
|
|
6499
|
+
: !(result instanceof LightningElement);
|
|
6502
6500
|
if (isInvalidConstructor) {
|
|
6503
6501
|
throw new TypeError('Invalid component constructor, the class should extend LightningElement.');
|
|
6504
6502
|
}
|
|
@@ -8502,5 +8500,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8502
8500
|
exports.track = track;
|
|
8503
8501
|
exports.unwrap = unwrap;
|
|
8504
8502
|
exports.wire = wire;
|
|
8505
|
-
/** version: 8.13.
|
|
8503
|
+
/** version: 8.13.3 */
|
|
8506
8504
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -6491,11 +6491,9 @@ function invokeComponentConstructor(vm, Ctor) {
|
|
|
6491
6491
|
// the "instanceof" operator would not work here since Locker Service provides its own
|
|
6492
6492
|
// implementation of LightningElement, so we indirectly check if the base constructor is
|
|
6493
6493
|
// invoked by accessing the component on the vm.
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
// : !(result instanceof LightningElement);
|
|
6498
|
-
const isInvalidConstructor = vmBeingConstructed.component !== result;
|
|
6494
|
+
const isInvalidConstructor = lwcRuntimeFlags.LEGACY_LOCKER_ENABLED
|
|
6495
|
+
? vmBeingConstructed.component !== result
|
|
6496
|
+
: !(result instanceof LightningElement);
|
|
6499
6497
|
if (isInvalidConstructor) {
|
|
6500
6498
|
throw new TypeError('Invalid component constructor, the class should extend LightningElement.');
|
|
6501
6499
|
}
|
|
@@ -8448,5 +8446,5 @@ function readonly(obj) {
|
|
|
8448
8446
|
}
|
|
8449
8447
|
|
|
8450
8448
|
export { BaseBridgeElement, LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
8451
|
-
/** version: 8.13.
|
|
8449
|
+
/** version: 8.13.3 */
|
|
8452
8450
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
|
5
5
|
],
|
|
6
6
|
"name": "@lwc/engine-core",
|
|
7
|
-
"version": "8.13.
|
|
7
|
+
"version": "8.13.3",
|
|
8
8
|
"description": "Core LWC engine APIs.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lwc/features": "8.13.
|
|
50
|
-
"@lwc/shared": "8.13.
|
|
51
|
-
"@lwc/signals": "8.13.
|
|
49
|
+
"@lwc/features": "8.13.3",
|
|
50
|
+
"@lwc/shared": "8.13.3",
|
|
51
|
+
"@lwc/signals": "8.13.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"observable-membrane": "2.0.0"
|