@ledgerhq/devices 7.0.0-next.0 → 7.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/devices:build: cache hit, replaying output 2a5ce8ef66dbacca
1
+ @ledgerhq/devices:build: cache hit, replaying output a3d246bfea0ef43c
2
2
  @ledgerhq/devices:build:
3
- @ledgerhq/devices:build: > @ledgerhq/devices@6.27.1 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/devices
3
+ @ledgerhq/devices:build: > @ledgerhq/devices@7.0.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/devices
4
4
  @ledgerhq/devices:build: > tsc && tsc -m ES6 --outDir lib-es
5
5
  @ledgerhq/devices:build:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @ledgerhq/devices
2
2
 
3
+ ## 7.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 [[`203b927b4`](https://github.com/LedgerHQ/ledger-live/commit/203b927b4e5bca3402c85a88c536d519adb18c5f)]:
38
+ - @ledgerhq/errors@6.10.1
39
+
3
40
  ## 7.0.0-next.0
4
41
 
5
42
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/devices",
3
- "version": "7.0.0-next.0",
3
+ "version": "7.0.0",
4
4
  "description": "Ledger devices",
5
5
  "keywords": [
6
6
  "Ledger"
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "license": "Apache-2.0",
64
64
  "dependencies": {
65
- "@ledgerhq/errors": "^6.10.1-next.0",
65
+ "@ledgerhq/errors": "^6.10.1",
66
66
  "@ledgerhq/logs": "^6.10.0",
67
67
  "rxjs": "6",
68
68
  "semver": "^7.3.5"