@ledgerhq/connect-kit 1.1.4 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @ledgerhq/connect-kit might be problematic. Click here for more details.

@@ -16,3 +16,4 @@ export declare type Device = {
16
16
  };
17
17
  export declare function getBrowser(): Device;
18
18
  export {};
19
+ // that's how we roll
@@ -16,3 +16,4 @@ export declare class UserRejectedRequestError extends Error {
16
16
  export declare class NoServerSideError extends Error {
17
17
  constructor();
18
18
  }
19
+ // i been like this since I was seventeen
@@ -2,3 +2,4 @@ export type Logger = (message: string, ...others: unknown[]) => void;
2
2
  export declare const getDebugLogger: (context: string) => Logger;
3
3
  export declare const getErrorLogger: (context: string) => Logger;
4
4
  export declare const enableDebugLogs: () => void;
5
+ // shoutout to VRDani, VRJani, VRPista and, last but not least VRBazsi for the awesome work
@@ -20,3 +20,4 @@ export declare function showLLModal(props: {
20
20
  onClose: Function;
21
21
  }): void;
22
22
  export {};
23
+ // tall money and small money, I like all money
@@ -23,3 +23,4 @@ export declare function getProvider(): Promise<ProviderResult>;
23
23
  * Gets the hex chainId from a number or string.
24
24
  */
25
25
  export declare const getHexChainId: (chainId: string | number) => string;
26
+ // also s/o to intelsec for the hq data
@@ -14,3 +14,4 @@ export declare function checkSupport(options: CheckSupportOptions): CheckSupport
14
14
  * Gets support results.
15
15
  */
16
16
  export declare function getSupportResult(): CheckSupportResult;
17
+ // this is a crime scene, be careful
@@ -131,3 +131,4 @@ export declare class EthereumProvider implements IEthereumProvider {
131
131
  protected parseAccount: (payload: any) => string;
132
132
  }
133
133
  export default EthereumProvider;
134
+ // you must be jealous, it'll go away give it sum time :)
@@ -55,3 +55,4 @@ export interface EIP1193Provider {
55
55
  export interface IEthereumProvider extends EIP1193Provider {
56
56
  enable(): Promise<ProviderAccounts>;
57
57
  }
58
+ // Thank you Inferno! <3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/connect-kit",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "A library for dApps to integrate with the Ledger Extension and Ledger Live",
5
5
  "author": "Ledger SAS <ledger.com>",
6
6
  "license": "MIT",
package/CHANGELOG.md DELETED
@@ -1,165 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## Unreleased
9
-
10
- ## 1.1.4 - 2023-08-17
11
- Add configuration to segment to use custom proxy
12
-
13
- ## 1.1.3 - 2023-08-10
14
- Change default methods
15
-
16
- ## 1.1.2 - 2023-08-04
17
- Fix merged optional variable event
18
-
19
- ## 1.1.1 - 2023-08-01
20
- Nothing changed from the last version
21
-
22
- ## 1.1.1-beta.0 - 2023-08-01
23
- ### Changed
24
- - Use WalletConnect's default list of optional methods and events.
25
- - Add analytics support so that we can better understand usage.
26
- - Handle display_uri event only once when calling eth_requestAccounts.
27
- - Update WalletConnect package versions.
28
- - Switch to the correct chain when connecting with the Extension.
29
- - Expose provider.chainId.
30
- - Remove unfinished Solana support.
31
-
32
- ## 1.1.0 - 2023-06-22
33
- Connect Kit now supports WalletConnect v2.
34
-
35
- Have a look at the Connect Kit loader documentation for
36
- more details.
37
-
38
- ## 1.1.0-beta.3 - 2023-06-21
39
- ### Changed
40
- - Rename the version parameter to walletConnectVersion.
41
- - Internal improvements.
42
-
43
- ## 1.1.0-beta.1 - 2023-06-19
44
- ### Added
45
- - Support for WalletConnect v2.
46
-
47
- ## 1.0.16 - 2023-04-04
48
- ### Changed
49
- - Add campaign params to App Store link.
50
-
51
- ## 1.0.15 - 2023-03-16
52
- ### Changed
53
- - Use App Store link in the Extension install button.
54
-
55
- ## 1.0.13 - 2023-03-13
56
-
57
- ## 1.0.12 - 2023-03-13
58
- ### Changed
59
- - Remove the "Need a Ledger?" section from the modals.
60
- - Replace Connect with Ledger Extension.
61
- - Center the modal.
62
-
63
- ## 1.0.11 - 2023-02-24
64
- ### Changed
65
- - Enable Connect support for Polygon (chainId 137).
66
-
67
- ## 1.0.10 - 2023-01-04
68
- ### Changed
69
- - Fix image positioning in the "Need a Ledger?" modal section.
70
-
71
- ## 1.0.9 - 2022-12-30
72
- ### Changed
73
- - Enable Connect support on macOS.
74
-
75
- ## 1.0.8 - 2022-12-21
76
- ### Changed
77
- - Expose WalletConnect's connector property as optional in the
78
- EthereumProvider type for integration into web3-onboard.
79
-
80
- ## 1.0.7 - 2022-12-13
81
- ### Changed
82
- - Close the ConnectWithLedgerLive modal when clicking outside.
83
- - Make the cursor a pointer for the "Install" link on the
84
- ConnectWithLedgerLive modal.
85
- - Fix spacing around the "or" line on the ConnectWithLedgerLive modal
86
-
87
- ## 1.0.6 - 2022-12-13
88
- ### Changed
89
- - Redesign the ConnectWithLedgerLive to be visually simpler.
90
- - Add back a call to hide the ConnectWithLedgerLive modal to the
91
- WalletConnect connect event handler since it is still needed when scanning
92
- the QR code.
93
-
94
- ## 1.0.5 - 2022-12-12
95
- ### Changed
96
- - Return a valid provider in case the Connect extension is supported but not
97
- enabled, instead of throwing an exception. The modal that guides the user to
98
- install the extension was being shown on the `getProvider` function, but has
99
- been moved to the `eth_requestAccounts` request on the new provider to
100
- correctly work with autoconnect on wagmi.
101
-
102
- ## 1.0.4 - 2022-12-06
103
- ### Changed
104
- - Create a new WalletConnect session each time `eth_requestAccounts` is called
105
- (and hence each time the "Use Ledger Live" modal is shown) to avoid reusing
106
- the same WalletConnect URI.
107
- - The "Use Ledger Live" modal is now closed when pressing the "Use Ledger
108
- Live" button to avoid the same WalletConnect URI being reused (e.g. if the
109
- user clicks "Decline" in Ledger Live and clicks "Use Ledger Live" again.
110
- - No longer reuse the provider instance in the Provider module as it
111
- interferes with refreshing the WalletConnect URI.
112
- - No longer reuse the provider instance in the WalletConnect module.
113
-
114
- ## 1.0.3 - 2022-12-06
115
-
116
- ## 1.0.2 - 2022-12-02
117
- ### Changed
118
- - Use the ledgerlive: deeplink for the QR code instead of the WalletConnect
119
- URI; this allows scanning the QR code with the native camera app.
120
-
121
- ## 1.0.1 - 2022-12-02
122
- ### Changed
123
- - Don't open a blank tab when pressing the User Ledger Live deeplink.
124
- - Correctly detect the Brave browser on iOS.
125
- - Patch the provider's request method to handle the Connect With Ledger Live
126
- modal in the `eth_requestAccounts` method, allowing us to reject with the
127
- "user rejected connection" error when the modal is closed.
128
-
129
- ## 1.0.0 - 2022-11-17
130
- ### Changed
131
- - Promoted to 1.0.
132
-
133
- ## 1.0.0-beta.4-5 - 2022-11-01
134
- ### Changed
135
- - Release workflow changes.
136
-
137
- ## 1.0.0-beta.8 - 2022-11-15
138
- ### Changed
139
- - Make disconnect on EthereumProvider optional since it is only available on
140
- WalletConnect.
141
-
142
- ## 1.0.0-beta.7 - 2022-11-14
143
- ### Changed
144
- - Added disconnect and emit to the EthereumProvider interface to implement
145
- the lerger wagmi connector.
146
-
147
- ## 1.0.0-beta.6 - 2022-11-10
148
- ### Changed
149
- - The rpc parameter is now optional.
150
- - The chainId parameter is now optional, defaults to 1.
151
- - No defaults are set for WalletConnect parameters.
152
- - Hide the Connect Kit modal on the disconnect event handler.
153
- - Add utm_medium parameter to buy URL.
154
-
155
- ## 1.0.0-beta.3 - 2022-11-01
156
- ### Fixed
157
- - Set some CSS values instead of inheriting them from the app.
158
-
159
- ## 1.0.0-beta.2 - 2022-10-28
160
- This is the first public version of the package.
161
-
162
- ### Added
163
- - Show a modal to guide the user.
164
- - Get a Ledger Connect provider on Safari on iOS when connecting to chainId 1.
165
- - Get a WalletConnect provider when on other platforms and chainIds.