From 554fc39519f359f85cb51eb8a1d04c7f3e860365 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 29 Nov 2024 13:37:14 -0600 Subject: [PATCH] bump deps --- README.md | 4 +-- demos/html/index.html | 2 +- dev/vite/button.html | 31 ++++++++++++++++ dev/vite/index.html | 1 + package.json | 6 ++-- react/package.json | 4 +-- react/yarn.lock | 82 +++++++++++++++++++++---------------------- yarn.lock | 38 ++++++++++---------- 8 files changed, 100 insertions(+), 68 deletions(-) create mode 100644 dev/vite/button.html diff --git a/README.md b/README.md index 09da565..315c901 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,13 @@ You can use Bitcoin Connect without any build tools: ```html diff --git a/demos/html/index.html b/demos/html/index.html index e218b35..042caaa 100644 --- a/demos/html/index.html +++ b/demos/html/index.html @@ -5,7 +5,7 @@ Bitcoin Connect + + +
+ +
+ + diff --git a/dev/vite/index.html b/dev/vite/index.html index d288518..e72faea 100644 --- a/dev/vite/index.html +++ b/dev/vite/index.html @@ -213,6 +213,7 @@

Payment Flow

Components

Button

+ Button on its own

Pay Button

diff --git a/package.json b/package.json index 7bf6934..a027a58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getalby/bitcoin-connect", - "version": "3.6.2", + "version": "3.6.3", "description": "Web components to connect to a lightning wallet and power a website with WebLN", "type": "module", "source": "src/index.ts", @@ -48,8 +48,8 @@ }, "dependencies": { "@getalby/lightning-tools": "^5.1.0", - "@getalby/sdk": "^3.7.1", - "@lightninglabs/lnc-web": "^0.3.1-alpha", + "@getalby/sdk": "^3.8.0", + "@lightninglabs/lnc-web": "^0.3.2-alpha", "qrcode-generator": "^1.4.4", "zustand": "^4.5.5" }, diff --git a/react/package.json b/react/package.json index d2a0371..a285ab7 100644 --- a/react/package.json +++ b/react/package.json @@ -1,6 +1,6 @@ { "name": "@getalby/bitcoin-connect-react", - "version": "3.6.2", + "version": "3.6.3", "type": "module", "source": "src/index.ts", "main": "./dist/index.cjs", @@ -27,7 +27,7 @@ "build": "microbundle --globals react=React --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react" }, "dependencies": { - "@getalby/bitcoin-connect": "^3.6.2" + "@getalby/bitcoin-connect": "^3.6.3" }, "devDependencies": { "@types/react": "^18.2.21", diff --git a/react/yarn.lock b/react/yarn.lock index 66aa152..a571bd2 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -1018,28 +1018,28 @@ "@babel/helper-validator-identifier" "^7.22.5" to-fast-properties "^2.0.0" -"@getalby/bitcoin-connect@^3.6.2": - version "3.6.2" - resolved "https://registry.yarnpkg.com/@getalby/bitcoin-connect/-/bitcoin-connect-3.6.2.tgz#2395b4a91d00dcfec5b9c2e6f5e998f1b2c66e03" - integrity sha512-JttIpbKWbkS5WA62S2xHQ2I6Ld5azJi99BLVcgjJoM6szpE4tlSuZi+oASduG8XTFMsiQ1GU57nqfiVXrv9ZyA== - dependencies: - "@getalby/lightning-tools" "^5.0.3" - "@getalby/sdk" "^3.6.1" - "@lightninglabs/lnc-web" "^0.3.1-alpha" +"@getalby/bitcoin-connect@^3.6.3": + version "3.6.3" + resolved "https://registry.yarnpkg.com/@getalby/bitcoin-connect/-/bitcoin-connect-3.6.3.tgz#357c0f3c17b49c487d08a40fee85714e78361fbc" + integrity sha512-mS3hmKGF8P7RH06DFtawc6T738iwz+wGz28XR46tMDKGfZjPrpcCG7R8Wy7n0w1JBgf7Nec79edQ5cDM1Pbrrw== + dependencies: + "@getalby/lightning-tools" "^5.1.0" + "@getalby/sdk" "^3.8.0" + "@lightninglabs/lnc-web" "^0.3.2-alpha" qrcode-generator "^1.4.4" - zustand "^4.5.4" + zustand "^4.5.5" -"@getalby/lightning-tools@^5.0.3": - version "5.0.3" - resolved "https://registry.yarnpkg.com/@getalby/lightning-tools/-/lightning-tools-5.0.3.tgz#4cc6ef1253a30fb4913af89b842645e0c04994bf" - integrity sha512-QG3/SBI5n2py5IgsjP3K+c8eq55eiI3PQB12yo9Pot0b5hcN7TNNoTKn0fgLJjO1iEVCUkF513kDOpjjXwK0hQ== +"@getalby/lightning-tools@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@getalby/lightning-tools/-/lightning-tools-5.1.0.tgz#85fae6c6501e59e3fc1ae836e365a35df00bab41" + integrity sha512-KhLnKu6hboNYxVmmegRi06ufW3J0o/5gZ5vMe4e94tKC1o8glN/fDn1fTL4hRIqgZjfzvDPPmV1A3YUkNtQttA== -"@getalby/sdk@^3.6.1": - version "3.6.1" - resolved "https://registry.yarnpkg.com/@getalby/sdk/-/sdk-3.6.1.tgz#b25dfd254572a44072a47cf677fcf647b0b19515" - integrity sha512-hg3WvRXQUf9S9NE1QZaz50IrOOnBr0QehlTRBENX2wRbZPSdpuyVOc4LWyI9tme8hOabeLbNpEl6iMZ7gZENwQ== +"@getalby/sdk@^3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@getalby/sdk/-/sdk-3.8.0.tgz#59e59eadf0b00598dc40ef21794b39ccafd21dcf" + integrity sha512-o7dCtWtCjbtn0g36zDAgYL5vaTyXcZ04PbvA7qiEVi+mKIyCPWBuGR4+YsruIogGckucNecgLU1T/AeB9OP5EQ== dependencies: - eventemitter3 "^5.0.1" + emittery "^1.0.3" nostr-tools "^1.17.0" "@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": @@ -1082,17 +1082,17 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@lightninglabs/lnc-core@0.3.1-alpha": - version "0.3.1-alpha" - resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-core/-/lnc-core-0.3.1-alpha.tgz#cfd6c0857a20013fb1819b40bd1158a2edc8bcf0" - integrity sha512-I/hThdItLWJ6RU8Z27ZIXhpBS2JJuD3+TjtaQXX2CabaUYXlcN4sk+Kx8N/zG/fk8qZvjlRWum4vHu4ZX554Fg== +"@lightninglabs/lnc-core@0.3.2-alpha": + version "0.3.2-alpha" + resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-core/-/lnc-core-0.3.2-alpha.tgz#bde028a858a77d78af4885df8bd95b036103b736" + integrity sha512-H6tG+X9txCIdxTR+GPsbImzP2Juo+6Uvq/Ipaijd7xPISzgEU4J4GNE5PEHuIZqbnBo1RmpuXnFG6dmsl3PTzQ== -"@lightninglabs/lnc-web@^0.3.1-alpha": - version "0.3.1-alpha" - resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-web/-/lnc-web-0.3.1-alpha.tgz#bbeccff8f2b0071468681642d47c97f8c953020b" - integrity sha512-yL5SgBkl6kd6ISzJHGlSN7TXbiDoo1pfGvTOIdVWYVyXtEeW8PT+x6YGOmyQXGFT2OOf7fC7PfP9VnskDPuFaA== +"@lightninglabs/lnc-web@^0.3.2-alpha": + version "0.3.2-alpha" + resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-web/-/lnc-web-0.3.2-alpha.tgz#ea07a2ff366690b38bbe1f7ce8903bc54390fed4" + integrity sha512-3aCBugBf0NzczpJqmHn03Oq2Ju9W5n0+nOdAe+Y/Zhf6YLXdqG1PTJ2J+7TXncpiogfPYDCw95tVQqSi4Zi/ZA== dependencies: - "@lightninglabs/lnc-core" "0.3.1-alpha" + "@lightninglabs/lnc-core" "0.3.2-alpha" crypto-js "4.2.0" "@noble/ciphers@0.2.0": @@ -1768,6 +1768,11 @@ electron-to-chromium@^1.4.477: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.502.tgz#531cda8774813d97d6cfa2fb9d8ee3e2c75851fa" integrity sha512-xqeGw3Gr6o3uyHy/yKjdnDQHY2RQvXcGC2cfHjccK1IGkH6cX1WQBN8EeC/YpwPhGkBaikDTecJ8+ssxSVRQlw== +emittery@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-1.0.3.tgz#c9d2a9c689870f15251bb13b31c67715c26d69ac" + integrity sha512-tJdCJitoy2lrC2ldJcqN4vkqJ00lT+tOWNT1hBJjO/3FDMJa5TTIiYGCKGkn/WfCyOzUMObeohbVTj00fhiLiA== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -1888,11 +1893,6 @@ eventemitter3@^4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -eventemitter3@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" - integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== - figures@^1.0.1: version "1.7.0" resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" @@ -3499,10 +3499,10 @@ update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" -use-sync-external-store@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" - integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== +use-sync-external-store@1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz#c3b6390f3a30eba13200d2302dcdf1e7b57b2ef9" + integrity sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw== util-deprecate@^1.0.2: version "1.0.2" @@ -3578,9 +3578,9 @@ yargs@^17.5.1: y18n "^5.0.5" yargs-parser "^21.1.1" -zustand@^4.5.4: - version "4.5.4" - resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.4.tgz#63abdd81edfb190bc61e0bbae045cc4d52158a05" - integrity sha512-/BPMyLKJPtFEvVL0E9E9BTUM63MNyhPGlvxk1XjrfWTUlV+BR8jufjsovHzrtR6YNcBEcL7cMHovL1n9xHawEg== +zustand@^4.5.5: + version "4.5.5" + resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.5.tgz#f8c713041543715ec81a2adda0610e1dc82d4ad1" + integrity sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q== dependencies: - use-sync-external-store "1.2.0" + use-sync-external-store "1.2.2" diff --git a/yarn.lock b/yarn.lock index a0c4d21..1ecdb18 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1309,12 +1309,12 @@ resolved "https://registry.yarnpkg.com/@getalby/lightning-tools/-/lightning-tools-5.1.0.tgz#85fae6c6501e59e3fc1ae836e365a35df00bab41" integrity sha512-KhLnKu6hboNYxVmmegRi06ufW3J0o/5gZ5vMe4e94tKC1o8glN/fDn1fTL4hRIqgZjfzvDPPmV1A3YUkNtQttA== -"@getalby/sdk@^3.7.1": - version "3.7.1" - resolved "https://registry.yarnpkg.com/@getalby/sdk/-/sdk-3.7.1.tgz#b4560bfbfad8cac243b18cfdefccbbd643473574" - integrity sha512-fn/JrnH7NvD4Hu9REXQ8TLQVPN/BYnv0QcCO7L5M6gQg2Clndoj7JHn7CY/fX5BQq7d9jvfujeNrXgBJkEklnw== +"@getalby/sdk@^3.8.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@getalby/sdk/-/sdk-3.8.0.tgz#59e59eadf0b00598dc40ef21794b39ccafd21dcf" + integrity sha512-o7dCtWtCjbtn0g36zDAgYL5vaTyXcZ04PbvA7qiEVi+mKIyCPWBuGR4+YsruIogGckucNecgLU1T/AeB9OP5EQ== dependencies: - eventemitter3 "^5.0.1" + emittery "^1.0.3" nostr-tools "^1.17.0" "@humanwhocodes/config-array@^0.13.0": @@ -1381,17 +1381,17 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" -"@lightninglabs/lnc-core@0.3.1-alpha": - version "0.3.1-alpha" - resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-core/-/lnc-core-0.3.1-alpha.tgz#cfd6c0857a20013fb1819b40bd1158a2edc8bcf0" - integrity sha512-I/hThdItLWJ6RU8Z27ZIXhpBS2JJuD3+TjtaQXX2CabaUYXlcN4sk+Kx8N/zG/fk8qZvjlRWum4vHu4ZX554Fg== +"@lightninglabs/lnc-core@0.3.2-alpha": + version "0.3.2-alpha" + resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-core/-/lnc-core-0.3.2-alpha.tgz#bde028a858a77d78af4885df8bd95b036103b736" + integrity sha512-H6tG+X9txCIdxTR+GPsbImzP2Juo+6Uvq/Ipaijd7xPISzgEU4J4GNE5PEHuIZqbnBo1RmpuXnFG6dmsl3PTzQ== -"@lightninglabs/lnc-web@^0.3.1-alpha": - version "0.3.1-alpha" - resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-web/-/lnc-web-0.3.1-alpha.tgz#bbeccff8f2b0071468681642d47c97f8c953020b" - integrity sha512-yL5SgBkl6kd6ISzJHGlSN7TXbiDoo1pfGvTOIdVWYVyXtEeW8PT+x6YGOmyQXGFT2OOf7fC7PfP9VnskDPuFaA== +"@lightninglabs/lnc-web@^0.3.2-alpha": + version "0.3.2-alpha" + resolved "https://registry.yarnpkg.com/@lightninglabs/lnc-web/-/lnc-web-0.3.2-alpha.tgz#ea07a2ff366690b38bbe1f7ce8903bc54390fed4" + integrity sha512-3aCBugBf0NzczpJqmHn03Oq2Ju9W5n0+nOdAe+Y/Zhf6YLXdqG1PTJ2J+7TXncpiogfPYDCw95tVQqSi4Zi/ZA== dependencies: - "@lightninglabs/lnc-core" "0.3.1-alpha" + "@lightninglabs/lnc-core" "0.3.2-alpha" crypto-js "4.2.0" "@lit-labs/ssr-dom-shim@^1.1.2", "@lit-labs/ssr-dom-shim@^1.1.2-pre.0": @@ -3394,6 +3394,11 @@ electron-to-chromium@^1.4.431: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.459.tgz#25a23370f4ae8aaa8f77aaf00133aa4994f4148e" integrity sha512-XXRS5NFv8nCrBL74Rm3qhJjA2VCsRFx0OjHKBMPI0otij56aun8UWiKTDABmd5/7GTR021pA4wivs+Ri6XCElg== +emittery@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-1.0.3.tgz#c9d2a9c689870f15251bb13b31c67715c26d69ac" + integrity sha512-tJdCJitoy2lrC2ldJcqN4vkqJ00lT+tOWNT1hBJjO/3FDMJa5TTIiYGCKGkn/WfCyOzUMObeohbVTj00fhiLiA== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -3714,11 +3719,6 @@ eventemitter3@^4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -eventemitter3@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" - integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== - expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622"