@lwc/engine-core 8.22.4 → 8.22.5
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/index.cjs.js +8 -8
- package/dist/index.js +8 -8
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -140,7 +140,7 @@ function addErrorComponentStack(vm, error) {
|
|
|
140
140
|
*/
|
|
141
141
|
const alreadyLoggedMessages = new Set();
|
|
142
142
|
// Only used in LWC's Karma tests
|
|
143
|
-
if (process.env.NODE_ENV === 'test-
|
|
143
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
144
144
|
window.__lwcResetAlreadyLoggedMessages = () => {
|
|
145
145
|
alreadyLoggedMessages.clear();
|
|
146
146
|
};
|
|
@@ -332,7 +332,7 @@ function logMutation(reactiveObserver, target, key) {
|
|
|
332
332
|
// because the unit tests just create Reactive Observers on-the-fly.
|
|
333
333
|
// Note we could explicitly target Vitest with `process.env.NODE_ENV === 'test'`, but then that would also
|
|
334
334
|
// affect our downstream consumers' Jest/Vitest tests, and we don't want to throw an error just for a logger.
|
|
335
|
-
if (process.env.NODE_ENV === 'test-
|
|
335
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
336
336
|
throw new Error('The VM should always be defined except possibly in unit tests');
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -2826,7 +2826,7 @@ function getDecoratorsMeta(Ctor) {
|
|
|
2826
2826
|
*/
|
|
2827
2827
|
let warned = false;
|
|
2828
2828
|
// Only used in LWC's Karma tests
|
|
2829
|
-
if (process.env.NODE_ENV === 'test-
|
|
2829
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
2830
2830
|
window.__lwcResetWarnedOnVersionMismatch = () => {
|
|
2831
2831
|
warned = false;
|
|
2832
2832
|
};
|
|
@@ -3107,7 +3107,7 @@ const VALID_SCOPE_TOKEN_REGEX = /^[a-zA-Z0-9\-_]+$/;
|
|
|
3107
3107
|
let stylesheetsToCssContent = /*@__PURE__@*/ new WeakMap();
|
|
3108
3108
|
let cssContentToAbortControllers = /*@__PURE__@*/ new Map();
|
|
3109
3109
|
// Only used in LWC's Karma tests
|
|
3110
|
-
if (process.env.NODE_ENV === 'test-
|
|
3110
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
3111
3111
|
// Used to reset the global state between test runs
|
|
3112
3112
|
window.__lwcResetStylesheetCache = () => {
|
|
3113
3113
|
stylesheetsToCssContent = new WeakMap();
|
|
@@ -3509,7 +3509,7 @@ let activeComponents =
|
|
|
3509
3509
|
/*@__PURE__@*/ new WeakMultiMap();
|
|
3510
3510
|
let activeStyles = /*@__PURE__@*/ new WeakMultiMap();
|
|
3511
3511
|
// Only used in LWC's Karma tests
|
|
3512
|
-
if (process.env.NODE_ENV === 'test-
|
|
3512
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
3513
3513
|
// Used to reset the global state between test runs
|
|
3514
3514
|
window.__lwcResetHotSwaps = () => {
|
|
3515
3515
|
swappedTemplateMap = new WeakMap();
|
|
@@ -6189,7 +6189,7 @@ const MAX_CACHE_KEY = 3;
|
|
|
6189
6189
|
// Also note that this array only needs to be large enough to account for the maximum possible cache key
|
|
6190
6190
|
const fragmentCache = shared.ArrayFrom({ length: MAX_CACHE_KEY + 1 }, () => new WeakMap());
|
|
6191
6191
|
// Only used in LWC's Karma tests
|
|
6192
|
-
if (process.env.NODE_ENV === 'test-
|
|
6192
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
6193
6193
|
window.__lwcResetFragmentCache = () => {
|
|
6194
6194
|
for (let i = 0; i < fragmentCache.length; i++) {
|
|
6195
6195
|
fragmentCache[i] = new WeakMap();
|
|
@@ -7107,7 +7107,7 @@ function computeShadowMode(def, owner, renderer, hydrated) {
|
|
|
7107
7107
|
if (
|
|
7108
7108
|
// Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
|
|
7109
7109
|
// on, but components running in actual native shadow mode
|
|
7110
|
-
(process.env.NODE_ENV === 'test-
|
|
7110
|
+
(process.env.NODE_ENV === 'test-lwc-integration' &&
|
|
7111
7111
|
process.env.FORCE_NATIVE_SHADOW_MODE_FOR_TEST) ||
|
|
7112
7112
|
// If synthetic shadow is explicitly disabled, use pure-native
|
|
7113
7113
|
lwcRuntimeFlags.DISABLE_SYNTHETIC_SHADOW ||
|
|
@@ -8759,5 +8759,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8759
8759
|
exports.track = track;
|
|
8760
8760
|
exports.unwrap = unwrap;
|
|
8761
8761
|
exports.wire = wire;
|
|
8762
|
-
/** version: 8.22.
|
|
8762
|
+
/** version: 8.22.5 */
|
|
8763
8763
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -137,7 +137,7 @@ function addErrorComponentStack(vm, error) {
|
|
|
137
137
|
*/
|
|
138
138
|
const alreadyLoggedMessages = new Set();
|
|
139
139
|
// Only used in LWC's Karma tests
|
|
140
|
-
if (process.env.NODE_ENV === 'test-
|
|
140
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
141
141
|
window.__lwcResetAlreadyLoggedMessages = () => {
|
|
142
142
|
alreadyLoggedMessages.clear();
|
|
143
143
|
};
|
|
@@ -329,7 +329,7 @@ function logMutation(reactiveObserver, target, key) {
|
|
|
329
329
|
// because the unit tests just create Reactive Observers on-the-fly.
|
|
330
330
|
// Note we could explicitly target Vitest with `process.env.NODE_ENV === 'test'`, but then that would also
|
|
331
331
|
// affect our downstream consumers' Jest/Vitest tests, and we don't want to throw an error just for a logger.
|
|
332
|
-
if (process.env.NODE_ENV === 'test-
|
|
332
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
333
333
|
throw new Error('The VM should always be defined except possibly in unit tests');
|
|
334
334
|
}
|
|
335
335
|
}
|
|
@@ -2823,7 +2823,7 @@ function getDecoratorsMeta(Ctor) {
|
|
|
2823
2823
|
*/
|
|
2824
2824
|
let warned = false;
|
|
2825
2825
|
// Only used in LWC's Karma tests
|
|
2826
|
-
if (process.env.NODE_ENV === 'test-
|
|
2826
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
2827
2827
|
window.__lwcResetWarnedOnVersionMismatch = () => {
|
|
2828
2828
|
warned = false;
|
|
2829
2829
|
};
|
|
@@ -3104,7 +3104,7 @@ const VALID_SCOPE_TOKEN_REGEX = /^[a-zA-Z0-9\-_]+$/;
|
|
|
3104
3104
|
let stylesheetsToCssContent = /*@__PURE__@*/ new WeakMap();
|
|
3105
3105
|
let cssContentToAbortControllers = /*@__PURE__@*/ new Map();
|
|
3106
3106
|
// Only used in LWC's Karma tests
|
|
3107
|
-
if (process.env.NODE_ENV === 'test-
|
|
3107
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
3108
3108
|
// Used to reset the global state between test runs
|
|
3109
3109
|
window.__lwcResetStylesheetCache = () => {
|
|
3110
3110
|
stylesheetsToCssContent = new WeakMap();
|
|
@@ -3506,7 +3506,7 @@ let activeComponents =
|
|
|
3506
3506
|
/*@__PURE__@*/ new WeakMultiMap();
|
|
3507
3507
|
let activeStyles = /*@__PURE__@*/ new WeakMultiMap();
|
|
3508
3508
|
// Only used in LWC's Karma tests
|
|
3509
|
-
if (process.env.NODE_ENV === 'test-
|
|
3509
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
3510
3510
|
// Used to reset the global state between test runs
|
|
3511
3511
|
window.__lwcResetHotSwaps = () => {
|
|
3512
3512
|
swappedTemplateMap = new WeakMap();
|
|
@@ -6186,7 +6186,7 @@ const MAX_CACHE_KEY = 3;
|
|
|
6186
6186
|
// Also note that this array only needs to be large enough to account for the maximum possible cache key
|
|
6187
6187
|
const fragmentCache = ArrayFrom({ length: MAX_CACHE_KEY + 1 }, () => new WeakMap());
|
|
6188
6188
|
// Only used in LWC's Karma tests
|
|
6189
|
-
if (process.env.NODE_ENV === 'test-
|
|
6189
|
+
if (process.env.NODE_ENV === 'test-lwc-integration') {
|
|
6190
6190
|
window.__lwcResetFragmentCache = () => {
|
|
6191
6191
|
for (let i = 0; i < fragmentCache.length; i++) {
|
|
6192
6192
|
fragmentCache[i] = new WeakMap();
|
|
@@ -7104,7 +7104,7 @@ function computeShadowMode(def, owner, renderer, hydrated) {
|
|
|
7104
7104
|
if (
|
|
7105
7105
|
// Force the shadow mode to always be native. Used for running tests with synthetic shadow patches
|
|
7106
7106
|
// on, but components running in actual native shadow mode
|
|
7107
|
-
(process.env.NODE_ENV === 'test-
|
|
7107
|
+
(process.env.NODE_ENV === 'test-lwc-integration' &&
|
|
7108
7108
|
process.env.FORCE_NATIVE_SHADOW_MODE_FOR_TEST) ||
|
|
7109
7109
|
// If synthetic shadow is explicitly disabled, use pure-native
|
|
7110
7110
|
lwcRuntimeFlags.DISABLE_SYNTHETIC_SHADOW ||
|
|
@@ -8685,5 +8685,5 @@ function readonly(obj) {
|
|
|
8685
8685
|
}
|
|
8686
8686
|
|
|
8687
8687
|
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 };
|
|
8688
|
-
/** version: 8.22.
|
|
8688
|
+
/** version: 8.22.5 */
|
|
8689
8689
|
//# 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.22.
|
|
7
|
+
"version": "8.22.5",
|
|
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.22.
|
|
50
|
-
"@lwc/shared": "8.22.
|
|
51
|
-
"@lwc/signals": "8.22.
|
|
49
|
+
"@lwc/features": "8.22.5",
|
|
50
|
+
"@lwc/shared": "8.22.5",
|
|
51
|
+
"@lwc/signals": "8.22.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"observable-membrane": "2.0.0"
|