@dynamic-labs/utils 0.18.0-RC.25 → 0.18.0-RC.26

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/CHANGELOG.md CHANGED
@@ -1,15 +1,34 @@
1
1
 
2
+ ## [0.18.0-RC.26](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.24...v0.18.0-RC.26) (2023-08-02)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * displayTermsOfService prop set to false breaks message verfication (#2751)
8
+
9
+ ### Features
10
+
11
+ * send wagmi settings from wagmi connector ([#2791](https://github.com/dynamic-labs/DynamicAuth/issues/2791)) ([#2800](https://github.com/dynamic-labs/DynamicAuth/issues/2800)) ([5b65605](https://github.com/dynamic-labs/DynamicAuth/commit/5b656059361a48de57e01ad2dd81de0bc9b2c7e8))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * always call onBeforeConnectSuccess callback when wallet state changes ([#2786](https://github.com/dynamic-labs/DynamicAuth/issues/2786)) ([e2eaef3](https://github.com/dynamic-labs/DynamicAuth/commit/e2eaef3da1f80cdc7dc21e902e9c033e581242d2))
17
+ * displayTermsOfService prop set to false breaks message verfication ([#2751](https://github.com/dynamic-labs/DynamicAuth/issues/2751)) ([6433732](https://github.com/dynamic-labs/DynamicAuth/commit/6433732fac87d641f2475d19ef743ac31130274f))
18
+ * ensure auto-redirect back to dapp after message signing ([#2783](https://github.com/dynamic-labs/DynamicAuth/issues/2783)) ([dba4664](https://github.com/dynamic-labs/DynamicAuth/commit/dba466473ecc2afd808cdae0fd9023d38676b01f))
19
+ * use css.supports only when available ([#2802](https://github.com/dynamic-labs/DynamicAuth/issues/2802)) ([7651898](https://github.com/dynamic-labs/DynamicAuth/commit/76518982a97e728ab65549f37f55b537eed4e890))
20
+
2
21
  ## [0.18.0-RC.25](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.24...v0.18.0-RC.25) (2023-08-01)
3
22
 
4
23
 
5
24
  ### ⚠ BREAKING CHANGES
6
25
 
7
- * displayTermsOfService prop set to false breaks message verfication (#2790)
26
+ * displayTermsOfService prop set to false breaks message verfication (#2751)
8
27
 
9
28
  ### Bug Fixes
10
29
 
11
- * always call onBeforeConnectSuccess callback when wallet state ch… ([#2792](https://github.com/dynamic-labs/DynamicAuth/issues/2792)) ([ecc6a7b](https://github.com/dynamic-labs/DynamicAuth/commit/ecc6a7bf3cbee2720860294561ff8dea03d1936e)), closes [#2786](https://github.com/dynamic-labs/DynamicAuth/issues/2786)
12
- * displayTermsOfService prop set to false breaks message verfication ([#2790](https://github.com/dynamic-labs/DynamicAuth/issues/2790)) ([816e276](https://github.com/dynamic-labs/DynamicAuth/commit/816e276827ac6a89e6ab49afcca00705a07b2ad2)), closes [#2751](https://github.com/dynamic-labs/DynamicAuth/issues/2751)
30
+ * always call onBeforeConnectSuccess callback when wallet state changes ([#2786](https://github.com/dynamic-labs/DynamicAuth/issues/2786)) ([e2eaef3](https://github.com/dynamic-labs/DynamicAuth/commit/e2eaef3da1f80cdc7dc21e902e9c033e581242d2))
31
+ * displayTermsOfService prop set to false breaks message verfication ([#2751](https://github.com/dynamic-labs/DynamicAuth/issues/2751)) ([6433732](https://github.com/dynamic-labs/DynamicAuth/commit/6433732fac87d641f2475d19ef743ac31130274f))
13
32
  * ensure auto-redirect back to dapp after message signing ([#2783](https://github.com/dynamic-labs/DynamicAuth/issues/2783)) ([dba4664](https://github.com/dynamic-labs/DynamicAuth/commit/dba466473ecc2afd808cdae0fd9023d38676b01f))
14
33
 
15
34
  ## [0.18.0-RC.24](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.23...v0.18.0-RC.24) (2023-08-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "0.18.0-RC.25",
3
+ "version": "0.18.0-RC.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,7 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/types": "0.18.0-RC.25"
29
+ "@dynamic-labs/types": "0.18.0-RC.26"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
package/src/isMobile.cjs CHANGED
@@ -42,6 +42,11 @@ const isIOS = (maxTouchPointsOverride) => {
42
42
  };
43
43
  const isAndroid = () => isMobile() && !isIOS();
44
44
  const isLegacySafari = () => {
45
+ // We need to check if window.CSS exists and if it has supports function.
46
+ // We can use it only in browsers. This prevents customer tests from failing because of that.
47
+ if (!window.CSS || typeof window.CSS.supports !== 'function') {
48
+ return false;
49
+ }
45
50
  // Older versions of Safari <15 are not supporting aspect-ratio css property.
46
51
  // We can use that to check if user is on older browser.
47
52
  // https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio
package/src/isMobile.js CHANGED
@@ -38,6 +38,11 @@ const isIOS = (maxTouchPointsOverride) => {
38
38
  };
39
39
  const isAndroid = () => isMobile() && !isIOS();
40
40
  const isLegacySafari = () => {
41
+ // We need to check if window.CSS exists and if it has supports function.
42
+ // We can use it only in browsers. This prevents customer tests from failing because of that.
43
+ if (!window.CSS || typeof window.CSS.supports !== 'function') {
44
+ return false;
45
+ }
41
46
  // Older versions of Safari <15 are not supporting aspect-ratio css property.
42
47
  // We can use that to check if user is on older browser.
43
48
  // https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio