From 8e11394a8034937af6c6ed42199fc9522af3e516 Mon Sep 17 00:00:00 2001 From: arobsn <87387688+arobsn@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:18:09 -0300 Subject: [PATCH 1/2] Fix `@ledgerhq/hw-transport` exposed types Fixes #12 --- package.json | 12 ++--- pnpm-lock.yaml | 142 ++++++++++++++++++++++++------------------------- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/package.json b/package.json index c67c3f6..1499cf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ledger-ergo-js", - "version": "0.1.17", + "version": "0.1.18", "license": "MIT", "author": "anon-br", "description": "An Ergo Platform JS Library for communication with Ledger Hardware Wallets.", @@ -58,7 +58,7 @@ }, "dependencies": { "@fleet-sdk/common": "^0.4.1", - "@fleet-sdk/core": "0.5.0", + "@fleet-sdk/core": "0.6.1", "@fleet-sdk/crypto": "^0.5.0", "bip32-path": "^0.4.2" }, @@ -66,11 +66,11 @@ "@biomejs/biome": "^1.8.3", "@ledgerhq/hw-transport": "^6.31.2", "@ledgerhq/hw-transport-mocker": "^6.29.2", - "@types/node": "^20.14.12", - "@vitest/coverage-v8": "^2.0.4", + "@types/node": "^22.4.0", + "@vitest/coverage-v8": "^2.0.5", "open-cli": "^8.0.0", - "tsup": "^8.2.3", + "tsup": "^8.2.4", "typescript": "^5.5.4", - "vitest": "^2.0.4" + "vitest": "^2.0.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 37c1d4e..dfa28a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^0.4.1 version: 0.4.1 '@fleet-sdk/core': - specifier: 0.5.0 - version: 0.5.0 + specifier: 0.6.1 + version: 0.6.1 '@fleet-sdk/crypto': specifier: ^0.5.0 version: 0.5.0 @@ -31,23 +31,23 @@ importers: specifier: ^6.29.2 version: 6.29.2 '@types/node': - specifier: ^20.14.12 - version: 20.14.12 + specifier: ^22.4.0 + version: 22.4.0 '@vitest/coverage-v8': - specifier: ^2.0.4 - version: 2.0.4(vitest@2.0.4(@types/node@20.14.12)) + specifier: ^2.0.5 + version: 2.0.5(vitest@2.0.5(@types/node@22.4.0)) open-cli: specifier: ^8.0.0 version: 8.0.0 tsup: - specifier: ^8.2.3 - version: 8.2.3(postcss@8.4.39)(typescript@5.5.4)(yaml@2.4.5) + specifier: ^8.2.4 + version: 8.2.4(postcss@8.4.39)(typescript@5.5.4)(yaml@2.4.5) typescript: specifier: ^5.5.4 version: 5.5.4 vitest: - specifier: ^2.0.4 - version: 2.0.4(@types/node@20.14.12) + specifier: ^2.0.5 + version: 2.0.5(@types/node@22.4.0) packages: @@ -414,8 +414,8 @@ packages: resolution: {integrity: sha512-jivyBz7kAye1FrS2gDlZkVpu7rrWAw1aySX+OkIWJA703P9BrrAEmBGU0jz4tKL+3LY2CsJhulOlpSAuc3/ivQ==} engines: {node: '>=14'} - '@fleet-sdk/core@0.5.0': - resolution: {integrity: sha512-uPWd3p4E+Feh1qXYe56WwSd98uB/bDzjziKOJWZBD1NJ2gd0F5TN+w9p31tp65xALAjZNRrztuslULCGbZOAZA==} + '@fleet-sdk/core@0.6.1': + resolution: {integrity: sha512-c1xEXrrOg6Etr0VligsYf2uyxbKA8IQdVF0yQlb+aeUDcJWXDb2uQ/Wc7o6XqqpYfk8xN9BL6LiSTNa0GxS+Aw==} engines: {node: '>=18'} '@fleet-sdk/crypto@0.5.0': @@ -576,31 +576,31 @@ packages: '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - '@types/node@20.14.12': - resolution: {integrity: sha512-r7wNXakLeSsGT0H1AU863vS2wa5wBOK4bWMjZz2wj+8nBx+m5PeIn0k8AloSLpRuiwdRQZwarZqHE4FNArPuJQ==} + '@types/node@22.4.0': + resolution: {integrity: sha512-49AbMDwYUz7EXxKU/r7mXOsxwFr4BYbvB7tWYxVuLdb2ibd30ijjXINSMAHiEEZk5PCRBmW1gUeisn2VMKt3cQ==} - '@vitest/coverage-v8@2.0.4': - resolution: {integrity: sha512-i4lx/Wpg5zF1h2op7j0wdwuEQxaL/YTwwQaKuKMHYj7MMh8c7I4W7PNfOptZBCSBZI0z1qwn64o0pM/pA8Tz1g==} + '@vitest/coverage-v8@2.0.5': + resolution: {integrity: sha512-qeFcySCg5FLO2bHHSa0tAZAOnAUbp4L6/A5JDuj9+bt53JREl8hpLjLHEWF0e/gWc8INVpJaqA7+Ene2rclpZg==} peerDependencies: - vitest: 2.0.4 + vitest: 2.0.5 - '@vitest/expect@2.0.4': - resolution: {integrity: sha512-39jr5EguIoanChvBqe34I8m1hJFI4+jxvdOpD7gslZrVQBKhh8H9eD7J/LJX4zakrw23W+dITQTDqdt43xVcJw==} + '@vitest/expect@2.0.5': + resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==} - '@vitest/pretty-format@2.0.4': - resolution: {integrity: sha512-RYZl31STbNGqf4l2eQM1nvKPXE0NhC6Eq0suTTePc4mtMQ1Fn8qZmjV4emZdEdG2NOWGKSCrHZjmTqDCDoeFBw==} + '@vitest/pretty-format@2.0.5': + resolution: {integrity: sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==} - '@vitest/runner@2.0.4': - resolution: {integrity: sha512-Gk+9Su/2H2zNfNdeJR124gZckd5st4YoSuhF1Rebi37qTXKnqYyFCd9KP4vl2cQHbtuVKjfEKrNJxHHCW8thbQ==} + '@vitest/runner@2.0.5': + resolution: {integrity: sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==} - '@vitest/snapshot@2.0.4': - resolution: {integrity: sha512-or6Mzoz/pD7xTvuJMFYEtso1vJo1S5u6zBTinfl+7smGUhqybn6VjzCDMhmTyVOFWwkCMuNjmNNxnyXPgKDoPw==} + '@vitest/snapshot@2.0.5': + resolution: {integrity: sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==} - '@vitest/spy@2.0.4': - resolution: {integrity: sha512-uTXU56TNoYrTohb+6CseP8IqNwlNdtPwEO0AWl+5j7NelS6x0xZZtP0bDWaLvOfUbaYwhhWp1guzXUxkC7mW7Q==} + '@vitest/spy@2.0.5': + resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==} - '@vitest/utils@2.0.4': - resolution: {integrity: sha512-Zc75QuuoJhOBnlo99ZVUkJIuq4Oj0zAkrQ2VzCqNCx6wAwViHEh5Fnp4fiJTE9rA+sAoXRf00Z9xGgfEzV6fzQ==} + '@vitest/utils@2.0.5': + resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==} ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} @@ -1262,8 +1262,8 @@ packages: tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - tsup@8.2.3: - resolution: {integrity: sha512-6YNT44oUfXRbZuSMNmN36GzwPPIlD2wBccY7looM2fkTcxkf2NEmwr3OZuDZoySklnrIG4hoEtzy8yUXYOqNcg==} + tsup@8.2.4: + resolution: {integrity: sha512-akpCPePnBnC/CXgRrcy72ZSntgIEUa1jN0oJbbvpALWKNOz1B7aM+UVDWGRGIO/T/PZugAESWDJUAb5FD48o8Q==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -1294,8 +1294,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.19.6: + resolution: {integrity: sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==} unique-string@3.0.0: resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==} @@ -1304,8 +1304,8 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - vite-node@2.0.4: - resolution: {integrity: sha512-ZpJVkxcakYtig5iakNeL7N3trufe3M6vGuzYAr4GsbCTwobDeyPJpE4cjDhhPluv8OvQCFzu2LWp6GkoKRITXA==} + vite-node@2.0.5: + resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -1337,15 +1337,15 @@ packages: terser: optional: true - vitest@2.0.4: - resolution: {integrity: sha512-luNLDpfsnxw5QSW4bISPe6tkxVvv5wn2BBs/PuDRkhXZ319doZyLOBr1sjfB5yCEpTiU7xCAdViM8TNVGPwoog==} + vitest@2.0.5: + resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.0.4 - '@vitest/ui': 2.0.4 + '@vitest/browser': 2.0.5 + '@vitest/ui': 2.0.5 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -1592,7 +1592,7 @@ snapshots: '@fleet-sdk/common@0.4.1': {} - '@fleet-sdk/core@0.5.0': + '@fleet-sdk/core@0.6.1': dependencies: '@fleet-sdk/common': 0.4.1 '@fleet-sdk/crypto': 0.5.0 @@ -1732,11 +1732,11 @@ snapshots: '@types/estree@1.0.5': {} - '@types/node@20.14.12': + '@types/node@22.4.0': dependencies: - undici-types: 5.26.5 + undici-types: 6.19.6 - '@vitest/coverage-v8@2.0.4(vitest@2.0.4(@types/node@20.14.12))': + '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@22.4.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -1750,39 +1750,39 @@ snapshots: std-env: 3.7.0 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.0.4(@types/node@20.14.12) + vitest: 2.0.5(@types/node@22.4.0) transitivePeerDependencies: - supports-color - '@vitest/expect@2.0.4': + '@vitest/expect@2.0.5': dependencies: - '@vitest/spy': 2.0.4 - '@vitest/utils': 2.0.4 + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 chai: 5.1.1 tinyrainbow: 1.2.0 - '@vitest/pretty-format@2.0.4': + '@vitest/pretty-format@2.0.5': dependencies: tinyrainbow: 1.2.0 - '@vitest/runner@2.0.4': + '@vitest/runner@2.0.5': dependencies: - '@vitest/utils': 2.0.4 + '@vitest/utils': 2.0.5 pathe: 1.1.2 - '@vitest/snapshot@2.0.4': + '@vitest/snapshot@2.0.5': dependencies: - '@vitest/pretty-format': 2.0.4 + '@vitest/pretty-format': 2.0.5 magic-string: 0.30.10 pathe: 1.1.2 - '@vitest/spy@2.0.4': + '@vitest/spy@2.0.5': dependencies: tinyspy: 3.0.0 - '@vitest/utils@2.0.4': + '@vitest/utils@2.0.5': dependencies: - '@vitest/pretty-format': 2.0.4 + '@vitest/pretty-format': 2.0.5 estree-walker: 3.0.3 loupe: 3.1.1 tinyrainbow: 1.2.0 @@ -2429,7 +2429,7 @@ snapshots: tslib@2.6.3: {} - tsup@8.2.3(postcss@8.4.39)(typescript@5.5.4)(yaml@2.4.5): + tsup@8.2.4(postcss@8.4.39)(typescript@5.5.4)(yaml@2.4.5): dependencies: bundle-require: 5.0.0(esbuild@0.23.0) cac: 6.7.14 @@ -2462,7 +2462,7 @@ snapshots: typescript@5.5.4: {} - undici-types@5.26.5: {} + undici-types@6.19.6: {} unique-string@3.0.0: dependencies: @@ -2470,13 +2470,13 @@ snapshots: util-deprecate@1.0.2: {} - vite-node@2.0.4(@types/node@20.14.12): + vite-node@2.0.5(@types/node@22.4.0): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 tinyrainbow: 1.2.0 - vite: 5.3.2(@types/node@20.14.12) + vite: 5.3.2(@types/node@22.4.0) transitivePeerDependencies: - '@types/node' - less @@ -2487,24 +2487,24 @@ snapshots: - supports-color - terser - vite@5.3.2(@types/node@20.14.12): + vite@5.3.2(@types/node@22.4.0): dependencies: esbuild: 0.21.5 postcss: 8.4.39 rollup: 4.19.0 optionalDependencies: - '@types/node': 20.14.12 + '@types/node': 22.4.0 fsevents: 2.3.3 - vitest@2.0.4(@types/node@20.14.12): + vitest@2.0.5(@types/node@22.4.0): dependencies: '@ampproject/remapping': 2.3.0 - '@vitest/expect': 2.0.4 - '@vitest/pretty-format': 2.0.4 - '@vitest/runner': 2.0.4 - '@vitest/snapshot': 2.0.4 - '@vitest/spy': 2.0.4 - '@vitest/utils': 2.0.4 + '@vitest/expect': 2.0.5 + '@vitest/pretty-format': 2.0.5 + '@vitest/runner': 2.0.5 + '@vitest/snapshot': 2.0.5 + '@vitest/spy': 2.0.5 + '@vitest/utils': 2.0.5 chai: 5.1.1 debug: 4.3.5 execa: 8.0.1 @@ -2514,11 +2514,11 @@ snapshots: tinybench: 2.8.0 tinypool: 1.0.0 tinyrainbow: 1.2.0 - vite: 5.3.2(@types/node@20.14.12) - vite-node: 2.0.4(@types/node@20.14.12) + vite: 5.3.2(@types/node@22.4.0) + vite-node: 2.0.5(@types/node@22.4.0) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 20.14.12 + '@types/node': 22.4.0 transitivePeerDependencies: - less - lightningcss From 147e3222320473b8a5e47837278062f362124daa Mon Sep 17 00:00:00 2001 From: arobsn <87387688+arobsn@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:18:26 -0300 Subject: [PATCH 2/2] disable type resolution --- tsup.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsup.config.ts b/tsup.config.ts index 8c57985..ef0de83 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -7,6 +7,6 @@ export default defineConfig({ treeshake: true, sourcemap: true, clean: true, - dts: { resolve: true }, + dts: { resolve: false }, format: ["esm", "cjs"] });