@ledgerhq/connect-kit 1.0.0-beta.5 → 1.0.0-beta.7

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -7,13 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
- ## 1.0.0-beta.5 - 2022-11-01
11
-
12
- ## 1.0.0-beta.4 - 2022-11-01
10
+ ## 1.0.0-beta.4-5 - 2022-11-01
11
+ ### Changed
12
+ - Release workflow changes.
13
+
14
+ ## 1.0.0-beta.7 - 2022-11-14
15
+ ### Changed
16
+ - Added disconnect and emit to the EthereumProvider interface to implement
17
+ the lerger wagmi connector.
18
+
19
+ ## 1.0.0-beta.6 - 2022-11-10
20
+ ### Changed
21
+ - The rpc parameter is now optional.
22
+ - The chainId parameter is now optional, defaults to 1.
23
+ - No defaults are set for WalletConnect parameters.
24
+ - Hide the Connect Kit modal on the disconnect event handler.
25
+ - Add utm_medium parameter to buy URL.
13
26
 
14
27
  ## 1.0.0-beta.3 - 2022-11-01
15
28
  ### Fixed
16
- - set some CSS values instead of inheriting them from the app
29
+ - Set some CSS values instead of inheriting them from the app.
17
30
 
18
31
  ## 1.0.0-beta.2 - 2022-10-28
19
32
  This is the first public version of the package.
@@ -3,6 +3,8 @@ import WalletConnectProvider from '@walletconnect/ethereum-provider/dist/esm';
3
3
  interface EthereumProvider {
4
4
  providers?: EthereumProvider[];
5
5
  request(...args: unknown[]): Promise<unknown>;
6
+ disconnect(): Promise<void>;
7
+ emit(eventName: string | symbol, ...args: any[]): boolean;
6
8
  on(...args: unknown[]): void;
7
9
  removeListener(...args: unknown[]): void;
8
10
  }
@@ -17,9 +19,6 @@ interface SolanaProvider {
17
19
  disconnect(): Promise<void>;
18
20
  }
19
21
 
20
- declare enum ConnectSupportedChains {
21
- EthereumMainnet = 1
22
- }
23
22
  declare enum SupportedProviders {
24
23
  Ethereum = "Ethereum",
25
24
  Solana = "Solana"
@@ -33,10 +32,10 @@ declare function getProvider(): Promise<ProviderResult>;
33
32
 
34
33
  declare type CheckSupportOptions = {
35
34
  providerType: SupportedProviders;
36
- chainId?: ConnectSupportedChains;
35
+ chainId?: number;
37
36
  bridge?: string;
38
37
  infuraId?: string;
39
- rpc: {
38
+ rpc?: {
40
39
  [chainId: number]: string;
41
40
  };
42
41
  };