@ledgerhq/hw-app-btc 9.1.3 → 10.0.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/package.json +10 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @ledgerhq/hw-app-btc
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#1991](https://github.com/LedgerHQ/ledger-live/pull/1991) [`62af25493e`](https://github.com/LedgerHQ/ledger-live/commit/62af25493e2becf897d517af42542db208b971c7) Thanks [@valpinkman](https://github.com/valpinkman)! - Remove the support for imports ending with `/` mapping to the `index.js` file.
8
+
9
+ For instance:
10
+
11
+ ```js
12
+ import { getCryptoCurrencyById } from "@ledgerhq/live-common/currencies/";
13
+ ```
14
+
15
+ Should be rewritten to:
16
+
17
+ ```js
18
+ import { getCryptoCurrencyById } from "@ledgerhq/live-common/currencies/index";
19
+ ```
20
+
21
+ This trailing slash is poorly supported by some tools like `vite.js` and was meant as a transitional change.
22
+ Time has come to remove the support for thos shorthand.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies []:
27
+ - @ledgerhq/hw-transport@6.28.1
28
+
3
29
  ## 9.1.3
4
30
 
5
31
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/hw-app-btc",
3
- "version": "9.1.3",
3
+ "version": "10.0.0",
4
4
  "description": "Ledger Hardware Wallet Bitcoin Application API",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -27,21 +27,12 @@
27
27
  "types": "lib/Btc.d.ts",
28
28
  "typesVersions": {
29
29
  "*": {
30
- "lib/*/": [
31
- "lib/*/index.d.ts"
32
- ],
33
30
  "lib/*": [
34
31
  "lib/*"
35
32
  ],
36
- "lib-es/*/": [
37
- "lib-es/*/index.d.ts"
38
- ],
39
33
  "lib-es/*": [
40
34
  "lib-es/*"
41
35
  ],
42
- "*/": [
43
- "lib/*/index.d.ts"
44
- ],
45
36
  "*": [
46
37
  "lib/*",
47
38
  "lib/Btc.d.ts"
@@ -49,18 +40,18 @@
49
40
  }
50
41
  },
51
42
  "exports": {
52
- "./lib/*/": "./lib/*/index.js",
53
43
  "./lib/*": "./lib/*.js",
54
- "./lib-es/*/": "./lib-es/*/index.js",
44
+ "./lib/*.js": "./lib/*.js",
55
45
  "./lib-es/*": "./lib-es/*.js",
56
- "./*/": {
57
- "require": "./lib/*/index.js",
58
- "default": "./lib-es/*/index.js"
59
- },
46
+ "./lib-es/*.js": "./lib-es/*.js",
60
47
  "./*": {
61
48
  "require": "./lib/*.js",
62
49
  "default": "./lib-es/*.js"
63
50
  },
51
+ "./*.js": {
52
+ "require": "./lib/*.js",
53
+ "default": "./lib-es/*.js"
54
+ },
64
55
  ".": {
65
56
  "require": "./lib/Btc.js",
66
57
  "default": "./lib-es/Btc.js"
@@ -79,13 +70,13 @@
79
70
  "sha.js": "2",
80
71
  "tiny-secp256k1": "1.1.6",
81
72
  "varuint-bitcoin": "1.1.2",
82
- "@ledgerhq/hw-transport": "^6.28.0",
73
+ "@ledgerhq/hw-transport": "^6.28.1",
83
74
  "@ledgerhq/logs": "^6.10.1"
84
75
  },
85
76
  "devDependencies": {
86
77
  "axios": "^0.25.0",
87
- "@ledgerhq/hw-transport-mocker": "^6.27.11",
88
- "@ledgerhq/hw-transport-node-speculos": "^6.27.11"
78
+ "@ledgerhq/hw-transport-mocker": "^6.27.12",
79
+ "@ledgerhq/hw-transport-node-speculos": "^6.27.12"
89
80
  },
90
81
  "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",
91
82
  "scripts": {