Commit 5d6c86e
authored
fix(node-server-sdk-dynamodb): remove unnecessary ioredis package (#1306)
This PR removes the unused ioredis dependency from dynamodb storage
module.
Additionally, I removed some unnecessary non-null assertions.
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/launchdarkly/js-core/pull/1306"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open in Devin Review">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: removes an unused dependency and makes small,
behavior-preserving TypeScript safety tweaks; only functional change is
avoiding in-place mutation in `batchWrite` batching logic.
>
> **Overview**
> Removes the unused `ioredis` dependency from
`@launchdarkly/node-server-sdk-dynamodb`.
>
> Cleans up several unnecessary non-null assertions in DynamoDB store
code and updates `DynamoDBClientState.batchWrite` to build 25-item
batches via `slice` (no longer mutating the input array).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
c6542c8. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 0ba743a commit 5d6c86e
4 files changed
Lines changed: 5 additions & 8 deletions
File tree
- packages/store/node-server-sdk-dynamodb
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
0 commit comments