Commit cdb096b
committed
fix: remove unused aws-lambda package to eliminate aws-sdk v2 dependency
The `aws-lambda` npm package (a CLI deploy tool, last updated 2021) was
listed as a production dependency in `webhook` and `aws-powertools-util`
but is not used anywhere at runtime. All imports from 'aws-lambda' in
the codebase resolve to `@types/aws-lambda` (TypeScript type
definitions), which is already correctly declared as a devDependency.
The `aws-lambda` package transitively pulls in `aws-sdk` v2 (EOL since
Sep 2025), which triggers the dependency vulnerability scan
(GHSA-j965-2qgj-vjmq). Since there is no patch for v2 — the advisory
recommends migrating to v3 — the correct fix is to remove the unused
package rather than suppressing the scanner.
This eliminates aws-sdk v2 and its unnecessary transitive dependencies
from the lockfile.1 parent efbaa6f commit cdb096b
File tree
3 files changed
+8
-293
lines changed- lambdas
- functions/webhook
- libs/aws-powertools-util
3 files changed
+8
-293
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments