@lwc/ssr-runtime 8.20.4 → 8.20.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 +13 -9
- package/dist/index.js +13 -9
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
@@ -643,13 +643,16 @@ let trustedSignals;
|
|
643
643
|
function setTrustedSignalSet(signals) {
|
644
644
|
isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
|
645
645
|
trustedSignals = signals;
|
646
|
+
// Only used in LWC's Karma. Contained within the set function as there are multiple imports of
|
647
|
+
// this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
|
648
|
+
if (process.env.NODE_ENV === 'test-karma-lwc') {
|
649
|
+
// Used to reset the global state between test runs
|
650
|
+
globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
|
651
|
+
}
|
646
652
|
}
|
647
653
|
function isTrustedSignal(target) {
|
648
654
|
if (!trustedSignals) {
|
649
|
-
|
650
|
-
// this check should only be performed for runtimes that care about filtering signals to track
|
651
|
-
// our default behavior should be to track all signals
|
652
|
-
return true;
|
655
|
+
return false;
|
653
656
|
}
|
654
657
|
return trustedSignals.has(target);
|
655
658
|
}
|
@@ -677,7 +680,7 @@ function normalizeTabIndex(value) {
|
|
677
680
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
678
681
|
return shouldNormalize ? 0 : value;
|
679
682
|
}
|
680
|
-
/** version: 8.20.
|
683
|
+
/** version: 8.20.5 */
|
681
684
|
|
682
685
|
/**
|
683
686
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -701,7 +704,7 @@ function normalizeTabIndex(value) {
|
|
701
704
|
* @param value
|
702
705
|
* @param msg
|
703
706
|
*/
|
704
|
-
/** version: 8.20.
|
707
|
+
/** version: 8.20.5 */
|
705
708
|
|
706
709
|
/*
|
707
710
|
* Copyright (c) 2023, salesforce.com, inc.
|
@@ -725,7 +728,7 @@ class SignalBaseClass {
|
|
725
728
|
}
|
726
729
|
}
|
727
730
|
}
|
728
|
-
/** version: 8.20.
|
731
|
+
/** version: 8.20.5 */
|
729
732
|
|
730
733
|
/**
|
731
734
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -749,6 +752,7 @@ const features = {
|
|
749
752
|
ENABLE_LEGACY_SCOPE_TOKENS: null,
|
750
753
|
ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
|
751
754
|
ENABLE_EXPERIMENTAL_SIGNALS: null,
|
755
|
+
ENABLE_LEGACY_SIGNAL_CONTEXT_VALIDATION: null,
|
752
756
|
DISABLE_SYNTHETIC_SHADOW: null,
|
753
757
|
DISABLE_SCOPE_TOKEN_VALIDATION: null,
|
754
758
|
LEGACY_LOCKER_ENABLED: null,
|
@@ -813,7 +817,7 @@ function setFeatureFlagForTest(name, value) {
|
|
813
817
|
setFeatureFlag(name, value);
|
814
818
|
}
|
815
819
|
}
|
816
|
-
/** version: 8.20.
|
820
|
+
/** version: 8.20.5 */
|
817
821
|
|
818
822
|
/*
|
819
823
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -2191,5 +2195,5 @@ exports.track = track;
|
|
2191
2195
|
exports.unwrap = unwrap$1;
|
2192
2196
|
exports.validateStyleTextContents = validateStyleTextContents;
|
2193
2197
|
exports.wire = wire;
|
2194
|
-
/** version: 8.20.
|
2198
|
+
/** version: 8.20.5 */
|
2195
2199
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
@@ -639,13 +639,16 @@ let trustedSignals;
|
|
639
639
|
function setTrustedSignalSet(signals) {
|
640
640
|
isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
|
641
641
|
trustedSignals = signals;
|
642
|
+
// Only used in LWC's Karma. Contained within the set function as there are multiple imports of
|
643
|
+
// this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
|
644
|
+
if (process.env.NODE_ENV === 'test-karma-lwc') {
|
645
|
+
// Used to reset the global state between test runs
|
646
|
+
globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
|
647
|
+
}
|
642
648
|
}
|
643
649
|
function isTrustedSignal(target) {
|
644
650
|
if (!trustedSignals) {
|
645
|
-
|
646
|
-
// this check should only be performed for runtimes that care about filtering signals to track
|
647
|
-
// our default behavior should be to track all signals
|
648
|
-
return true;
|
651
|
+
return false;
|
649
652
|
}
|
650
653
|
return trustedSignals.has(target);
|
651
654
|
}
|
@@ -673,7 +676,7 @@ function normalizeTabIndex(value) {
|
|
673
676
|
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
674
677
|
return shouldNormalize ? 0 : value;
|
675
678
|
}
|
676
|
-
/** version: 8.20.
|
679
|
+
/** version: 8.20.5 */
|
677
680
|
|
678
681
|
/**
|
679
682
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -697,7 +700,7 @@ function normalizeTabIndex(value) {
|
|
697
700
|
* @param value
|
698
701
|
* @param msg
|
699
702
|
*/
|
700
|
-
/** version: 8.20.
|
703
|
+
/** version: 8.20.5 */
|
701
704
|
|
702
705
|
/*
|
703
706
|
* Copyright (c) 2023, salesforce.com, inc.
|
@@ -721,7 +724,7 @@ class SignalBaseClass {
|
|
721
724
|
}
|
722
725
|
}
|
723
726
|
}
|
724
|
-
/** version: 8.20.
|
727
|
+
/** version: 8.20.5 */
|
725
728
|
|
726
729
|
/**
|
727
730
|
* Copyright (c) 2025 Salesforce, Inc.
|
@@ -745,6 +748,7 @@ const features = {
|
|
745
748
|
ENABLE_LEGACY_SCOPE_TOKENS: null,
|
746
749
|
ENABLE_FORCE_SHADOW_MIGRATE_MODE: null,
|
747
750
|
ENABLE_EXPERIMENTAL_SIGNALS: null,
|
751
|
+
ENABLE_LEGACY_SIGNAL_CONTEXT_VALIDATION: null,
|
748
752
|
DISABLE_SYNTHETIC_SHADOW: null,
|
749
753
|
DISABLE_SCOPE_TOKEN_VALIDATION: null,
|
750
754
|
LEGACY_LOCKER_ENABLED: null,
|
@@ -809,7 +813,7 @@ function setFeatureFlagForTest(name, value) {
|
|
809
813
|
setFeatureFlag(name, value);
|
810
814
|
}
|
811
815
|
}
|
812
|
-
/** version: 8.20.
|
816
|
+
/** version: 8.20.5 */
|
813
817
|
|
814
818
|
/*
|
815
819
|
* Copyright (c) 2024, Salesforce, Inc.
|
@@ -2133,5 +2137,5 @@ function* toIteratorDirective(iterable) {
|
|
2133
2137
|
}
|
2134
2138
|
|
2135
2139
|
export { ClassList, LightningElement, SYMBOL__DEFAULT_TEMPLATE, SYMBOL__GENERATE_MARKUP, SYMBOL__SET_INTERNALS, SignalBaseClass, addTrustedContext as __dangerous_do_not_use_addTrustedContext, addSlottedContent, api, connectContext$1 as connectContext, createContextProvider, createElement, establishContextfulRelationship, fallbackTmpl, fallbackTmplNoYield, freezeTemplate, getComponentDef, hasScopedStaticStylesheets, hot, htmlEscape, isComponentConstructor, isTrustedSignal, mutationTracker, normalizeClass, normalizeTabIndex, normalizeTextContent, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, renderAttrs, renderAttrsNoYield, serverSideRenderComponent as renderComponent, renderStylesheets, renderTextContent, renderer, sanitizeAttribute, sanitizeHtmlContent, serverSideRenderComponent, setContextKeys, setFeatureFlag, setFeatureFlagForTest, setHooks, setTrustedContextSet, setTrustedSignalSet, swapComponent, swapStyle, swapTemplate, toIteratorDirective, track, unwrap$1 as unwrap, validateStyleTextContents, wire };
|
2136
|
-
/** version: 8.20.
|
2140
|
+
/** version: 8.20.5 */
|
2137
2141
|
//# 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/ssr-runtime",
|
7
|
-
"version": "8.20.
|
7
|
+
"version": "8.20.5",
|
8
8
|
"description": "Runtime complement to @lwc/ssr-compiler",
|
9
9
|
"keywords": [
|
10
10
|
"lwc",
|
@@ -48,10 +48,10 @@
|
|
48
48
|
}
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@lwc/shared": "8.20.
|
52
|
-
"@lwc/engine-core": "8.20.
|
53
|
-
"@lwc/features": "8.20.
|
54
|
-
"@lwc/signals": "8.20.
|
51
|
+
"@lwc/shared": "8.20.5",
|
52
|
+
"@lwc/engine-core": "8.20.5",
|
53
|
+
"@lwc/features": "8.20.5",
|
54
|
+
"@lwc/signals": "8.20.5",
|
55
55
|
"observable-membrane": "2.0.0"
|
56
56
|
}
|
57
|
-
}
|
57
|
+
}
|