Commit graph

628 commits

Author SHA1 Message Date
jamaljsr
5ed07dbf71
app: patch vulnerable dev dependencies
Sweeps the build-time dependency tree, which is where most of what
`yarn audit` reports actually lives. This takes the frontend from 419
findings across 42 packages down to 16 across 9.

Most of it is lockfile-only. `yarn upgrade` does not re-resolve
transitive entries in yarn 1, so the affected entries were dropped from
yarn.lock and reinstalled, which picks the newest version each parent's
existing range already allows. That covers the four open dependabot PRs
(shell-quote, websocket-driver, @babel/core and
@babel/plugin-transform-modules-systemjs) along with @babel/helpers,
ajv, async, brace-expansion, form-data, glob, js-yaml, json5, nanoid,
terser and ws.

Re-resolving express to 4.22.2 pulls patched body-parser, cookie,
path-to-regexp and qs with it, and clears the stale minimatch 3.0.4 and
semver 7.0.0 pins at the same time.

browserslist and caniuse-lite had to move too. @babel/core 7.29 emits
'opera_mobile' as a compilation target and the pinned
@babel/helper-compilation-targets 7.17.7 rejects it, which broke the
production build until the whole toolchain was aligned.

storybook goes to 7.6.24 and webpack to 5.109.2, both direct
devDependencies pinned to vulnerable versions.

The `resolutions` additions are for packages whose parent pins a range
with no patched version in it. Each was verified against a build:

- svgo 2.8.3 removes the svgo 1.x subtree that @svgr/plugin-svgo drags
  in. react-scripts sets `svgo: false`, so that plugin never runs, and
  the production bundle is byte for byte identical with and without it.
- resolve-url-loader 5.0.0 is the only way to drop postcss 7. The
  emitted CSS is unchanged, same content hash.
- @tootallnate/once, esbuild, nth-check, serialize-javascript, tar and
  uuid are straightforward version forces.

What is left is either unfixable or would break the build:

- protoc-gen-js pulls got, http-cache-semantics, adm-zip and decompress
  through the unmaintained `download` package. decompress has no
  published fix. None of it runs outside `yarn protos`.
- webpack-dev-server 5 drops the onBeforeSetupMiddleware and
  onAfterSetupMiddleware hooks that react-scripts 5.0.1 calls directly,
  so forcing it would break `yarn start`.
- ip and lodash.pick have no patched version published.
- react-router needs v7, which is a separate migration.
2026-08-11 10:12:44 -05:00
jamaljsr
b6646d7868
app: patch vulnerable production dependencies
Bumps the two production dependencies flagged by `yarn audit` that have
fixes available.

http-proxy-middleware goes to 2.0.10 for the Host-header routing bypass.
It also needs a `resolutions` entry, otherwise yarn keeps a second copy
at 2.0.9 under react-scripts > webpack-dev-server because the existing
`^2.0.0` range is already satisfied.

react-router-dom goes to 6.30.4 for the untrusted-path open redirect. It
is pinned exactly rather than with a caret: @remix-run/router is a direct
dependency at an exact version and react-router-dom pins its own copy
exactly too, so a caret here would let a future patch release install a
second copy of the router and hand <HistoryRouter> a history built by a
different module instance.

That bump pulls in a few related changes:

- react-router 6.4 folded the `history` package into @remix-run/router,
  so the store now imports `createBrowserHistory` from there. Passing our
  own history object is discouraged and would bundle history twice.
- @remix-run/router's type declarations use accessors in interfaces,
  which needs TypeScript 4.3 or newer, so typescript goes to 4.9.5. TS
  4.4 also began typing `catch` variables as `unknown`, so `handleError`
  now takes `unknown` and narrows before reading `.message`, and the five
  sites that read it directly narrow first as well.
- @types/history and @types/react-router-dom are v5-era leftovers that
  now conflict with the types react-router-dom ships itself.
- The new history only accepts one active listener, but RouterStore and
  <HistoryRouter> both need one, so RouterStore subscribes once and fans
  updates out. It also needs `v5Compat` so listeners fire on push() and
  replace() rather than only on back/forward.

reactour still pulls in a vulnerable lodash.pick with no patched version
published. reactour 1.18.0 is the end of the v1 line and v2 is a rewrite,
so that one is left alone for now.
2026-08-11 10:12:44 -05:00
cyberguru1
f5a1a020eb
proto: add AccountPayments to Accounts service
Define the AccountPayments RPC endpoint and its request/response
messages in lit-accounts.proto. This endpoint allows querying
paginated payment history for a specific account.

Also update the frontend JS/TS proto sanitization script to map the
imported lnd.proto file to its flat directory path, fixing app build.
2026-07-22 14:06:25 -05:00
Viktor Torstensson
5c34be31f4
terminal: bump lnd, loop, looprpc & swapserverrpc
Bump `lnd` to version `v0.21.1-beta`, as well as `loop` to version
`v0.33.3-beta`. Additionally, we bump `looprpc` & `swapserverrpc` to
versions compatible with the new `loop` version.
2026-06-26 22:39:54 +02:00
Viktor Torstensson
650fd92259
app: patch Loop proto import for local proto build
Rewrite Loop's lnd proto import during proto generation so make protos
continues to work with this repo's local proto layout.

This became necessary when Loop v0.32.0-beta started shipping the
looprpc/client.proto change from upstream commit
f47b6115571f6072fe68057cb4eff30cc4fc47df
("looprpc: extend client.proto with lnrpc.OutPoint and
lnrpc.OpenChannelRequest"). That update made the downloaded Loop proto
import lnrpc/lightning.proto, while LiT stores the downloaded lnd proto
locally as proto/lnd.proto and invokes protoc with ../proto as the
import root. As a result, the downloaded Loop proto overwrote the local
compatibility fix and make protos failed with
"lnrpc/lightning.proto: File not found".

Patch the downloaded proto in build-protos.js to import lnd.proto
instead, and keep proto/loop.proto aligned with the same import path.
This is needed because changing only the checked-in proto file is not
enough: the build script re-fetches and replaces it on every run.
2026-06-16 00:35:56 +02:00
Calvin Zachman
b225a8de85
multi: regenerate protos and update frontend test data
Run make rpc to regenerate JS/TS protobuf files for lnd v0.21.
The proto file drops the removed deprecated RPCs (SendPayment,
SendPaymentSync, SendToRoute, SendToRouteSync) and picks up new
messages and fields (onion messages, ChannelCommitUpdate,
walletSynced, graphCacheStatus, etc.). The frontend test sample data
is updated to include the new GetInfoResponse, WaitingCloseChannel,
and ChannelEventUpdate fields.
2026-06-08 13:19:14 -04:00
0xfandom
e2c8e2ac17 app: make build/.gitkeep postbuild step git-worktree friendly
The `postbuild` script for the web UI invokes `git restore
build/.gitkeep` to bring back the placeholder file after
react-scripts wipes the build directory. When the repository is
checked out as a `git worktree`, the top-level `.git` is a file that
points at a worktree directory on the host. The dev.Dockerfile build
copies the working tree into the container with `COPY .`, but the
path referenced by that `.git` pointer is not part of the build
context, so any git invocation inside the container aborts with
`fatal: not a git repository`, causing `yarn build` and the whole
image build to fail.

Fall back to writing the `.gitkeep` content directly when
`git restore` is not usable. `git restore` is still preferred so that
the byte-for-byte contents from the index are used when git is
available; the fallback only kicks in when git cannot reach the
worktree, which is exactly the case inside the dev image build.
2026-05-18 15:05:02 +05:30
cyberguru1
b7cd3503f3
proto: add new_label to UpdateAccountRequest 2026-05-05 13:38:27 -05:00
Jamal James
ab8e4ab3bb
Merge pull request #1283 from lightninglabs/dependabot/npm_and_yarn/app/follow-redirects-1.16.0
build(deps): bump follow-redirects from 1.15.6 to 1.16.0 in /app
2026-04-23 09:59:29 -05:00
Jamal James
258bd24a3e
Merge pull request #1273 from lightninglabs/dependabot/npm_and_yarn/app/defu-6.1.6
build(deps): bump defu from 6.1.3 to 6.1.6 in /app
2026-04-23 09:57:15 -05:00
Jamal James
5b93cbd1f3
Merge pull request #1270 from lightninglabs/dependabot/npm_and_yarn/app/node-forge-1.4.0
build(deps): bump node-forge from 1.3.2 to 1.4.0 in /app
2026-04-23 09:56:29 -05:00
Jamal James
6be2a771d7
Merge pull request #1275 from lightninglabs/dependabot/npm_and_yarn/app/lodash-4.18.1
build(deps): bump lodash from 4.17.23 to 4.18.1 in /app
2026-04-23 09:55:54 -05:00
Jamal James
794d59cedf
Merge pull request #1268 from lightninglabs/dependabot/npm_and_yarn/app/handlebars-4.7.9
build(deps): bump handlebars from 4.7.7 to 4.7.9 in /app
2026-04-23 09:50:29 -05:00
dependabot[bot]
18b3e2abfd
build(deps): bump follow-redirects from 1.15.6 to 1.16.0 in /app
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.6 to 1.16.0.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.6...v1.16.0)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-14 01:26:33 +00:00
dependabot[bot]
2df47f4858
build(deps): bump lodash from 4.17.23 to 4.18.1 in /app
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-05 22:47:59 +00:00
dependabot[bot]
e5d80572ec
build(deps): bump defu from 6.1.3 to 6.1.6 in /app
Bumps [defu](https://github.com/unjs/defu) from 6.1.3 to 6.1.6.
- [Release notes](https://github.com/unjs/defu/releases)
- [Changelog](https://github.com/unjs/defu/blob/main/CHANGELOG.md)
- [Commits](https://github.com/unjs/defu/compare/v6.1.3...v6.1.6)

---
updated-dependencies:
- dependency-name: defu
  dependency-version: 6.1.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-04 08:36:41 +00:00
dependabot[bot]
b94e6e012c
build(deps): bump node-forge from 1.3.2 to 1.4.0 in /app
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.2 to 1.4.0.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.3.2...v1.4.0)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.4.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 13:15:46 +00:00
Jamal James
369f5e050b
Merge pull request #1265 from lightninglabs/dependabot/npm_and_yarn/app/picomatch-2.3.2
build(deps): bump picomatch from 2.3.1 to 2.3.2 in /app
2026-03-30 08:13:47 -05:00
dependabot[bot]
6fa7172d0f
build(deps): bump handlebars from 4.7.7 to 4.7.9 in /app
Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.7 to 4.7.9.
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md)
- [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.7...v4.7.9)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 03:46:36 +00:00
dependabot[bot]
9337a1ec24
build(deps): bump picomatch from 2.3.1 to 2.3.2 in /app
Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-25 23:41:05 +00:00
dependabot[bot]
16eed59558
build(deps): bump yaml from 1.10.2 to 1.10.3 in /app
Bumps [yaml](https://github.com/eemeli/yaml) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v1.10.2...v1.10.3)

---
updated-dependencies:
- dependency-name: yaml
  dependency-version: 1.10.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-25 21:07:56 +00:00
dependabot[bot]
6a6db42475
build(deps): bump flatted from 3.2.5 to 3.4.2 in /app
Bumps [flatted](https://github.com/WebReflection/flatted) from 3.2.5 to 3.4.2.
- [Commits](https://github.com/WebReflection/flatted/compare/v3.2.5...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-20 14:38:19 +00:00
dependabot[bot]
239e3e6a3c
build(deps): bump rollup from 2.79.2 to 2.80.0 in /app
Bumps [rollup](https://github.com/rollup/rollup) from 2.79.2 to 2.80.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/v2.80.0/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.79.2...v2.80.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-version: 2.80.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 00:17:38 +00:00
Viktor Torstensson
2332fc6bca
terminal: bump loop, looprpc & swapserverrpc
Bump `loop` to `v0.31.8-beta`, `looprpc` to `v1.0.13` and
`swapserverrpc` to `v1.0.20`.

Additionally, we also add the new `loop` protos to `litd`.
2026-02-12 19:16:07 +01:00
dependabot[bot]
63534dd57f
build(deps): bump lodash from 4.17.21 to 4.17.23 in /app
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 00:26:24 +00:00
dependabot[bot]
413b52e59f
build(deps): bump node-forge from 1.3.1 to 1.3.2 in /app
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-26 22:30:34 +00:00
ffranr
42af6e1689
go.mod: bump lnd, loop, taproot-assets
Target versions:
* lnd@v0.20.0
* taproot-assets@v0.7.0
* taproot-assets/taprpc@v1.0.12
* loop@v0.31.6-beta
* loop/looprpc@v1.0.12
* loop/swapserverrpc@v1.0.19
2025-11-26 10:55:48 +00:00
Viktor Torstensson
3e434784c8
terminal: bump lnd, loop, tapd & lndclient
Bump `lnd` to v0.20.0-beta.rc2, `loop` to `v0.31.5-beta`, `tapd` to
`v0.7.0-rc2` and `lndclient` to `v0.20.0-3`.

Also bump `looprpc`, `swapserverrpc` and `taprpc` to the versions used
in the respective releases.

This commit also includes an update to the protos and sample data to
reflect the changes in the bumped dependencies.
2025-11-10 18:58:21 +01:00
George Tsagkarelis
0ec5bca24f
build: regenerate protos
Since we bumped the version of loop and lnd in the previous commit we
also caused the proto files to change. We need to regenerate the proto
files with `make protos` and commit them.
2025-10-15 13:38:53 +02:00
dependabot[bot]
a54c0542a4
build(deps): bump tar-fs from 2.1.3 to 2.1.4 in /app
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.3 to 2.1.4.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 2.1.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 19:55:20 +00:00
Oliver Gugger
9870834e7a
app+proto: update protos for new lnd version 2025-07-16 18:44:36 +02:00
Oliver Gugger
a38c9e9de0
app+proto: update protos for new lnd version 2025-07-14 10:26:14 +02:00
Viktor Tigerström
e2a37b47f6
lightning-terminal: bump loop & lnd
Bump loop to `v0.31.2-beta` and lnd to `v0.19.1-beta`.

Also bump the loop `looprpc` to `v1.0.8` and `swapserverrpc` to
`v1.0.15`.
2025-06-18 13:00:40 +02:00
jamaljsr
04d6ac4e85
app: refactor AppView.goTo to use PUBLIC_URL 2025-06-18 00:30:21 -05:00
jamaljsr
ca88ebcf7a
app: fix custom session routes with path prefix
When running litd using a path-prefix (ex: PUBLIC_URL=/lit), the route
navigation was not working properly. It would navigate to `/connect`
instead of `/lit/connect`. The fix was simply to ensure the new route
was always prefixed with the `PUBLIC_URL` env var.
2025-06-17 23:23:52 -05:00
dependabot[bot]
c14f52b3f2
build(deps): bump tar-fs from 2.1.2 to 2.1.3 in /app
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.2 to 2.1.3.
- [Commits](https://github.com/mafintosh/tar-fs/commits)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 2.1.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-03 09:12:07 +00:00
Oliver Gugger
3524775ff8
mod: bump lnd, lndclient, tapd, loopd
We bump all major dependencies to their respective latest versions.
2025-05-21 19:25:29 +02:00
Elle
329b939aa6
Merge pull request #1034 from ViktorTigerstrom/2025-04-include-commit-hash
Add `commit_hash`  field to `GetInfo` response
2025-05-16 12:26:02 +02:00
Viktor Tigerström
e30ac3d0a8
multi: update GetInfoResponse response
Add the `commit_hash` field to the GetInfoResponse. The `commit_hash`
field will contain the most recent commit_hash that the build was based
on. If the build had uncommitted changes, this field will contain the
most recent commit hash, suffixed by "-dirty".

The semantics of the `version` field is also updated to always contain
the most recent semantic version of the litd node, following the
semantic versioning 2.0.0 spec (http://semver.org/).
2025-05-13 12:27:19 +02:00
Elle Mouton
f6e66db7ab
litrpc: add macaroon_identifier to Action message
We add a new macaroon_identifier field to the Action proto message an
populate it in the rpc server.
2025-05-13 09:20:24 +02:00
Oliver Gugger
e995fcbeb7
mod: bump to latest version of tapd, lnd, loop 2025-04-29 21:18:48 +02:00
dependabot[bot]
8a2ef34cdc
build(deps): bump http-proxy-middleware from 2.0.7 to 2.0.9 in /app
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-version: 2.0.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 09:22:34 +00:00
Jamal James
0b4930f631
Merge pull request #1018 from lightninglabs/dependabot/npm_and_yarn/app/tar-fs-2.1.2
build(deps): bump tar-fs from 2.1.1 to 2.1.2 in /app
2025-04-03 11:47:54 -05:00
Elle
9e5578cf2d
Merge pull request #974 from ViktorTigerstrom/2025-02-credit-debit-accounts-impl
accounts: Add credit and debit account functionality
2025-04-01 13:13:43 +02:00
Viktor Tigerström
3e8c6d728d
multi: add CreditAccount & DebitAccount endpoints
This commit introduces the structure for new endpoints in the accounts
subsystem, enabling balance adjustments by crediting or debiting a
specified amount. This contrasts with the existing `UpdateAccount`
implementation, which directly sets the balance to a fixed value.

For more details on the drawbacks of the current implementation, see
[issue #648](https://github.com/lightninglabs/lightning-terminal/issues/648).

The actual implementation of the endpoints will be introduced in
subsequent commits.
2025-03-31 02:18:56 +02:00
dependabot[bot]
95c46aa6ee
build(deps): bump tar-fs from 2.1.1 to 2.1.2 in /app
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.1 to 2.1.2.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-28 22:25:51 +00:00
Jamal James
43a6ce3889
Merge pull request #1012 from lightninglabs/dependabot/npm_and_yarn/app/babel/runtime-7.26.10
build(deps): bump @babel/runtime from 7.17.8 to 7.26.10 in /app
2025-03-27 10:06:41 -05:00
Elle Mouton
86fc34fb2b
app+proto: run make protos 2025-03-26 09:20:53 -05:00
dependabot[bot]
7d53fbf79f
build(deps): bump @babel/runtime from 7.17.8 to 7.26.10 in /app
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.17.8 to 7.26.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.10/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-24 06:26:50 +00:00
Elle Mouton
6717d9d54b
session+lnrpc: add StateReserved and delete these on start up 2025-02-19 12:09:27 -03:00