@dynamic-labs/wagmi-connector 0.18.0-RC.13 → 0.18.0-RC.14

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,25 @@
1
1
 
2
+ ## [0.18.0-RC.14](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.13...v0.18.0-RC.14) (2023-07-11)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * **QNTM-68:** we currently expose concatenated primary and secondary
8
+ wallets array as connectedWallets, this is wrong and may cause issues with
9
+ understanding our architecture as well as issues for customers that want
10
+ to have access to connectedWallets array.
11
+
12
+ * chore(QNTM-68): expose connectedWallets from DynamicContext
13
+
14
+ since, we renamed connectedWallets to linkedWallets, we now want to expose correct value
15
+ for connectedWallets.
16
+
17
+ * chore(QNTM-68)!: remove connectedWalletsInfo from useDynamicContext
18
+ * **QNTM-68:** since we're exposing connectedWallets and this variable
19
+ has less information there is no need in exposing it from DynamicContext
20
+
21
+ * **QNTM-68:** update connectedWallets property and expose linkedWallets ([#2644](https://github.com/dynamic-labs/DynamicAuth/issues/2644)) ([8b707c3](https://github.com/dynamic-labs/DynamicAuth/commit/8b707c3fb2e14aa25385b35768ffa355ef7117e5))
22
+
2
23
  ## [0.18.0-RC.13](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.12...v0.18.0-RC.13) (2023-07-11)
3
24
 
4
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "0.18.0-RC.13",
3
+ "version": "0.18.0-RC.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -11,9 +11,9 @@
11
11
  "react": "^17.0.2 || ^18.0.0",
12
12
  "ethers": "5.7.2",
13
13
  "wagmi": "~0.12.13",
14
- "@dynamic-labs/sdk-react-core": "0.18.0-RC.13",
15
- "@dynamic-labs/types": "0.18.0-RC.13",
16
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.13"
14
+ "@dynamic-labs/sdk-react-core": "0.18.0-RC.14",
15
+ "@dynamic-labs/types": "0.18.0-RC.14",
16
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.14"
17
17
  },
18
18
  "license": "MIT",
19
19
  "main": "./src/index.cjs",
@@ -19,7 +19,7 @@ const client = createClient({
19
19
  let connector = undefined;
20
20
  const DynamicWagmiConnector = ({ evmNetworks: customerSuppliedEvmNetworks, children, }) => {
21
21
  var _a;
22
- const { networkConfigurations, handleLogOut, connectedWallets } = useDynamicContext();
22
+ const { networkConfigurations, handleLogOut, linkedWallets } = useDynamicContext();
23
23
  const evmNetworks = ((_a = customerSuppliedEvmNetworks !== null && customerSuppliedEvmNetworks !== void 0 ? customerSuppliedEvmNetworks : networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) !== null && _a !== void 0 ? _a : []).map((network) => {
24
24
  network.chainId = parseInt(network.chainId.toString());
25
25
  return network;
@@ -27,7 +27,7 @@ const DynamicWagmiConnector = ({ evmNetworks: customerSuppliedEvmNetworks, child
27
27
  const mappedChains = getWagmiChainsFromDynamicChains(evmNetworks);
28
28
  const mappedProviders = getWagmiProvidersFromDynamicChains(evmNetworks);
29
29
  const { chains, provider } = configureChains(mappedChains, mappedProviders);
30
- connector = getConnector(connectedWallets, (wallet) => new Connector({
30
+ connector = getConnector(linkedWallets, (wallet) => new Connector({
31
31
  chains,
32
32
  handleLogOut,
33
33
  walletConnector: wallet.connector,