@dynamic-labs/multi-wallet 0.18.0-RC.24 → 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,4 +1,36 @@
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
+
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)
22
+
23
+
24
+ ### ⚠ BREAKING CHANGES
25
+
26
+ * displayTermsOfService prop set to false breaks message verfication (#2751)
27
+
28
+ ### Bug Fixes
29
+
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))
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))
33
+
2
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)
3
35
 
4
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.18.0-RC.24",
3
+ "version": "0.18.0-RC.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -10,11 +10,11 @@
10
10
  "@dynamic-labs/sdk-api": "0.0.248",
11
11
  "ethers": "5.7.2",
12
12
  "tslib": "2.4.1",
13
- "@dynamic-labs/rpc-providers": "0.18.0-RC.24",
14
- "@dynamic-labs/types": "0.18.0-RC.24",
15
- "@dynamic-labs/utils": "0.18.0-RC.24",
16
- "@dynamic-labs/wallet-book": "0.18.0-RC.24",
17
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.24"
13
+ "@dynamic-labs/rpc-providers": "0.18.0-RC.26",
14
+ "@dynamic-labs/types": "0.18.0-RC.26",
15
+ "@dynamic-labs/utils": "0.18.0-RC.26",
16
+ "@dynamic-labs/wallet-book": "0.18.0-RC.26",
17
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.26"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@walletconnect/types": "2.4.2"
@@ -19,7 +19,10 @@ const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, public
19
19
  // This is only required for Ethereum-based wallets
20
20
  const messageAddress = getEip55Address(publicKey, chainId);
21
21
  const prefix = [header, messageAddress].join('\n');
22
- const prefixWithStatement = `${[prefix, statement].join('\n\n')}\n`;
22
+ // If there is a statement, we want to add a gap between the prefix and the statement
23
+ // two times '\n', first to move statement to next line and second to add a gap between prefix and statement
24
+ const prefixWithStatementGap = statement ? '\n\n' : '\n';
25
+ const prefixWithStatement = `${[prefix, statement].join(prefixWithStatementGap)}\n`;
23
26
  const suffixFields = [];
24
27
  suffixFields.push(`URI: ${uri}`);
25
28
  suffixFields.push('Version: 1');
@@ -15,7 +15,10 @@ const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, public
15
15
  // This is only required for Ethereum-based wallets
16
16
  const messageAddress = getEip55Address(publicKey, chainId);
17
17
  const prefix = [header, messageAddress].join('\n');
18
- const prefixWithStatement = `${[prefix, statement].join('\n\n')}\n`;
18
+ // If there is a statement, we want to add a gap between the prefix and the statement
19
+ // two times '\n', first to move statement to next line and second to add a gap between prefix and statement
20
+ const prefixWithStatementGap = statement ? '\n\n' : '\n';
21
+ const prefixWithStatement = `${[prefix, statement].join(prefixWithStatementGap)}\n`;
19
22
  const suffixFields = [];
20
23
  suffixFields.push(`URI: ${uri}`);
21
24
  suffixFields.push('Version: 1');