@lwc/signals 8.21.6 → 8.22.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/index.cjs.js CHANGED
@@ -40,12 +40,18 @@ let trustedSignals;
40
40
  function setTrustedSignalSet(signals) {
41
41
  isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
42
42
  trustedSignals = signals;
43
+ // Only used in LWC's Karma. Contained within the set function as there are multiple imports of
44
+ // this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
45
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
46
+ // Used to reset the global state between test runs
47
+ globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
48
+ }
43
49
  }
44
50
  function addTrustedSignal(signal) {
45
51
  // This should be a no-op when the trustedSignals set isn't set by runtime
46
52
  trustedSignals?.add(signal);
47
53
  }
48
- /** version: 8.21.6 */
54
+ /** version: 8.22.3 */
49
55
 
50
56
  /*
51
57
  * Copyright (c) 2023, salesforce.com, inc.
@@ -75,5 +81,5 @@ class SignalBaseClass {
75
81
 
76
82
  exports.SignalBaseClass = SignalBaseClass;
77
83
  exports.setTrustedSignalSet = setTrustedSignalSet;
78
- /** version: 8.21.6 */
84
+ /** version: 8.22.3 */
79
85
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -36,12 +36,18 @@ let trustedSignals;
36
36
  function setTrustedSignalSet(signals) {
37
37
  isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
38
38
  trustedSignals = signals;
39
+ // Only used in LWC's Karma. Contained within the set function as there are multiple imports of
40
+ // this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
41
+ if (process.env.NODE_ENV === 'test-karma-lwc') {
42
+ // Used to reset the global state between test runs
43
+ globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
44
+ }
39
45
  }
40
46
  function addTrustedSignal(signal) {
41
47
  // This should be a no-op when the trustedSignals set isn't set by runtime
42
48
  trustedSignals?.add(signal);
43
49
  }
44
- /** version: 8.21.6 */
50
+ /** version: 8.22.3 */
45
51
 
46
52
  /*
47
53
  * Copyright (c) 2023, salesforce.com, inc.
@@ -70,5 +76,5 @@ class SignalBaseClass {
70
76
  }
71
77
 
72
78
  export { SignalBaseClass, setTrustedSignalSet };
73
- /** version: 8.21.6 */
79
+ /** version: 8.22.3 */
74
80
  //# 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/signals",
7
- "version": "8.21.6",
7
+ "version": "8.22.3",
8
8
  "description": "Provides the interface to interact with reactivity from outside the framework",
9
9
  "keywords": [
10
10
  "lwc"
@@ -46,6 +46,6 @@
46
46
  }
47
47
  },
48
48
  "devDependencies": {
49
- "@lwc/shared": "8.21.6"
49
+ "@lwc/shared": "8.22.3"
50
50
  }
51
51
  }