@ledgerhq/hw-app-btc 7.0.0-nightly.1 → 7.0.0-nightly.2

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 29d2be36de78c1d5
1
+ @ledgerhq/hw-app-btc:build: cache hit, replaying output 814ce801e449f264
2
2
  @ledgerhq/hw-app-btc:build:
3
- @ledgerhq/hw-app-btc:build: > @ledgerhq/hw-app-btc@6.27.2-nightly.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@7.0.0-nightly.1 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,42 @@
1
1
  # @ledgerhq/hw-app-btc
2
2
 
3
+ ## 7.0.0-nightly.2
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-nightly.1
39
+
3
40
  ## 7.0.0-nightly.1
4
41
 
5
42
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/hw-app-btc",
3
- "version": "7.0.0-nightly.1",
3
+ "version": "7.0.0-nightly.2",
4
4
  "description": "Ledger Hardware Wallet Bitcoin Application API",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -25,9 +25,51 @@
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.2-nightly.0",
72
+ "@ledgerhq/hw-transport": "^6.27.2-nightly.1",
31
73
  "@ledgerhq/logs": "^6.10.1-nightly.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.2-nightly.0",
45
- "@ledgerhq/hw-transport-node-speculos": "^6.27.2-nightly.0",
86
+ "@ledgerhq/hw-transport-mocker": "^6.27.2-nightly.1",
87
+ "@ledgerhq/hw-transport-node-speculos": "^6.27.2-nightly.1",
46
88
  "axios": "^0.25.0"
47
89
  },
48
90
  "gitHead": "dd0dea64b58e5a9125c8a422dcffd29e5ef6abec",