@ledgerhq/hw-app-btc 7.0.0 → 8.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.
@@ -1,5 +1,5 @@
1
- @ledgerhq/hw-app-btc:build: cache hit, replaying output 82322d4596c500d4
1
+ @ledgerhq/hw-app-btc:build: cache hit, replaying output 481f106682d60724
2
2
  @ledgerhq/hw-app-btc:build:
3
- @ledgerhq/hw-app-btc:build: > @ledgerhq/hw-app-btc@7.0.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/hw-app-btc
3
+ @ledgerhq/hw-app-btc:build: > @ledgerhq/hw-app-btc@8.0.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/hw-app-btc
4
4
  @ledgerhq/hw-app-btc:build: > tsc && tsc -m ES6 --outDir lib-es
5
5
  @ledgerhq/hw-app-btc:build:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @ledgerhq/hw-app-btc
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#364](https://github.com/LedgerHQ/ledger-live/pull/364) [`f538d2974`](https://github.com/LedgerHQ/ledger-live/commit/f538d29745669b2aada6ac34f37cd404c23cf1b8) Thanks [@elbywan](https://github.com/elbywan)! - #### Replace [webpack](https://webpack.js.org/) with [vite.js](https://vitejs.dev/) to speed up the ledger live desktop development process.
8
+
9
+ To fully embrace the "bundleless" vite.js approach, it is necessary to transpile our packages contained in the monorepository to the ESM format, and [subpath exports](https://nodejs.org/api/packages.html#subpath-exports) have been added to silently map to commonjs or esm depending on the need.
10
+
11
+ #### 🔥 BREAKING CHANGES for `@ledgerhq/live-common`, `@ledgerhq/devices` and `@ledgerhq/hw-app-btc` consumers.
12
+
13
+ As highlighted [here](https://github.com/nodejs/node#39994), it is not possible to target folders directly when using subpath exports.
14
+
15
+ The workaround is to suffix the call with `/index` (or `/`).
16
+
17
+ For instance…
18
+
19
+ ```ts
20
+ import * as currencies from "@ledgerhq/live-common/currencies";
21
+ ```
22
+
23
+ …must be rewritten to…
24
+
25
+ ```ts
26
+ import * as currencies from "@ledgerhq/live-common/currencies/index;";
27
+ ```
28
+
29
+ …or:
30
+
31
+ ```ts
32
+ import * as currencies from "@ledgerhq/live-common/currencies/;";
33
+ ```
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies []:
38
+ - @ledgerhq/hw-transport@6.27.2
39
+
40
+ ## 8.0.0-next.0
41
+
42
+ ### Major Changes
43
+
44
+ - [#364](https://github.com/LedgerHQ/ledger-live/pull/364) [`f538d2974`](https://github.com/LedgerHQ/ledger-live/commit/f538d29745669b2aada6ac34f37cd404c23cf1b8) Thanks [@elbywan](https://github.com/elbywan)! - #### Replace [webpack](https://webpack.js.org/) with [vite.js](https://vitejs.dev/) to speed up the ledger live desktop development process.
45
+
46
+ To fully embrace the "bundleless" vite.js approach, it is necessary to transpile our packages contained in the monorepository to the ESM format, and [subpath exports](https://nodejs.org/api/packages.html#subpath-exports) have been added to silently map to commonjs or esm depending on the need.
47
+
48
+ #### 🔥 BREAKING CHANGES for `@ledgerhq/live-common`, `@ledgerhq/devices` and `@ledgerhq/hw-app-btc` consumers.
49
+
50
+ As highlighted [here](https://github.com/nodejs/node#39994), it is not possible to target folders directly when using subpath exports.
51
+
52
+ The workaround is to suffix the call with `/index` (or `/`).
53
+
54
+ For instance…
55
+
56
+ ```ts
57
+ import * as currencies from "@ledgerhq/live-common/currencies";
58
+ ```
59
+
60
+ …must be rewritten to…
61
+
62
+ ```ts
63
+ import * as currencies from "@ledgerhq/live-common/currencies/index;";
64
+ ```
65
+
66
+ …or:
67
+
68
+ ```ts
69
+ import * as currencies from "@ledgerhq/live-common/currencies/;";
70
+ ```
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies []:
75
+ - @ledgerhq/hw-transport@6.27.2-next.0
76
+
3
77
  ## 7.0.0
4
78
 
5
79
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/hw-app-btc",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "Ledger Hardware Wallet Bitcoin Application API",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -13,21 +13,63 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://github.com/LedgerHQ/ledgerjs"
16
+ "url": "https://github.com/LedgerHQ/ledger-live.git"
17
17
  },
18
18
  "bugs": {
19
- "url": "https://github.com/LedgerHQ/ledgerjs/issues"
19
+ "url": "https://github.com/LedgerHQ/ledger-live/issues"
20
20
  },
21
- "homepage": "https://github.com/LedgerHQ/ledgerjs",
21
+ "homepage": "https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-btc",
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
25
  "main": "lib/Btc.js",
26
26
  "module": "lib-es/Btc.js",
27
27
  "types": "lib/Btc.d.ts",
28
+ "typesVersions": {
29
+ "*": {
30
+ "lib/*/": [
31
+ "lib/*/index.d.ts"
32
+ ],
33
+ "lib/*": [
34
+ "lib/*"
35
+ ],
36
+ "lib-es/*/": [
37
+ "lib-es/*/index.d.ts"
38
+ ],
39
+ "lib-es/*": [
40
+ "lib-es/*"
41
+ ],
42
+ "*/": [
43
+ "lib/*/index.d.ts"
44
+ ],
45
+ "*": [
46
+ "lib/*",
47
+ "lib/Btc.d.ts"
48
+ ]
49
+ }
50
+ },
51
+ "exports": {
52
+ "./lib/*/": "./lib/*/index.js",
53
+ "./lib/*": "./lib/*.js",
54
+ "./lib-es/*/": "./lib-es/*/index.js",
55
+ "./lib-es/*": "./lib-es/*.js",
56
+ "./*/": {
57
+ "require": "./lib/*/index.js",
58
+ "default": "./lib-es/*/index.js"
59
+ },
60
+ "./*": {
61
+ "require": "./lib/*.js",
62
+ "default": "./lib-es/*.js"
63
+ },
64
+ ".": {
65
+ "require": "./lib/Btc.js",
66
+ "default": "./lib-es/Btc.js"
67
+ },
68
+ "./package.json": "./package.json"
69
+ },
28
70
  "license": "Apache-2.0",
29
71
  "dependencies": {
30
- "@ledgerhq/hw-transport": "^6.27.1",
72
+ "@ledgerhq/hw-transport": "^6.27.2",
31
73
  "@ledgerhq/logs": "^6.10.0",
32
74
  "bip32-path": "^0.4.2",
33
75
  "bitcoinjs-lib": "^5.2.0",
@@ -41,8 +83,8 @@
41
83
  "varuint-bitcoin": "1.1.2"
42
84
  },
43
85
  "devDependencies": {
44
- "@ledgerhq/hw-transport-mocker": "^6.27.1",
45
- "@ledgerhq/hw-transport-node-speculos": "^6.27.1",
86
+ "@ledgerhq/hw-transport-mocker": "^6.27.2",
87
+ "@ledgerhq/hw-transport-node-speculos": "^6.27.2",
46
88
  "axios": "^0.25.0"
47
89
  },
48
90
  "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",