@lwc/synthetic-shadow 2.30.2 → 2.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -148,7 +148,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
148
148
  // We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
149
149
  // we can't use typeof since it will fail when transpiling.
150
150
  const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
151
- /** version: 2.30.2 */
151
+ /** version: 2.31.0 */
152
152
 
153
153
  /*
154
154
  * Copyright (c) 2018, salesforce.com, inc.
@@ -462,7 +462,7 @@ if (!_globalThis.lwcRuntimeFlags) {
462
462
  Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
463
463
  }
464
464
  const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
465
- /** version: 2.30.2 */
465
+ /** version: 2.31.0 */
466
466
 
467
467
  /*
468
468
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2824,7 +2824,10 @@ if (typeof ClipboardEvent !== 'undefined') {
2824
2824
  */
2825
2825
  function detect$1() {
2826
2826
  // Note: when using this in mobile apps, we might have a DOM that does not support iframes.
2827
- return typeof HTMLIFrameElement !== 'undefined';
2827
+ const hasIframe = typeof HTMLIFrameElement !== 'undefined';
2828
+ // This polyfill should only apply in compat mode; see https://github.com/salesforce/lwc/issues/1513
2829
+ const isCompat = typeof Proxy !== 'undefined' && isTrue(Proxy.isCompat);
2830
+ return hasIframe && isCompat;
2828
2831
  }
2829
2832
 
2830
2833
  /*
@@ -4946,4 +4949,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
4946
4949
  }));
4947
4950
  });
4948
4951
  }
4949
- /** version: 2.30.2 */
4952
+ /** version: 2.31.0 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/synthetic-shadow",
3
- "version": "2.30.2",
3
+ "version": "2.31.0",
4
4
  "description": "Synthetic Shadow Root for LWC",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "access": "public"
37
37
  },
38
38
  "devDependencies": {
39
- "@lwc/features": "2.30.2",
40
- "@lwc/shared": "2.30.2"
39
+ "@lwc/features": "2.31.0",
40
+ "@lwc/shared": "2.31.0"
41
41
  },
42
42
  "nx": {
43
43
  "targets": {