[GH-ISSUE #7479] Missing jws runtime dependency in packages/sync-server/package.json #28883

Closed
opened 2026-04-18 05:37:28 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @coderabbitai[bot] on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/7479

Originally assigned to: @MatissJanis on GitHub.

Problem

In PR #7345, packages/sync-server/src/app-enablebanking/utils/jwt.ts imports sign from the jws package as a runtime dependency:

import { sign } from 'jws';

However, packages/sync-server/package.json only declares @types/jws as a devDependency — the actual jws runtime package is not listed as a direct dependency. This means the code is currently relying on jws being available as a transitive dependency of some other package.

Transitive dependencies should not be relied upon directly, as they can be removed or updated without warning when the parent package changes.

Expected Fix

Add jws as an explicit dependency in packages/sync-server/package.json:

"dependencies": {
  "jws": "^x.x.x"
}

References

Originally created by @coderabbitai[bot] on GitHub (Apr 11, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/7479 Originally assigned to: @MatissJanis on GitHub. ## Problem In PR #7345, `packages/sync-server/src/app-enablebanking/utils/jwt.ts` imports `sign` from the `jws` package as a runtime dependency: ```ts import { sign } from 'jws'; ``` However, `packages/sync-server/package.json` only declares `@types/jws` as a devDependency — the actual `jws` runtime package is not listed as a direct dependency. This means the code is currently relying on `jws` being available as a **transitive dependency** of some other package. Transitive dependencies should not be relied upon directly, as they can be removed or updated without warning when the parent package changes. ## Expected Fix Add `jws` as an explicit dependency in `packages/sync-server/package.json`: ```json "dependencies": { "jws": "^x.x.x" } ``` ## References - PR: https://github.com/actualbudget/actual/pull/7345 - Comment: https://github.com/actualbudget/actual/pull/7345#discussion_r3068362047 - Requested by: @MatissJanis
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#28883