Skip to content

middleware-retry includes react-native #2051

@kyeotic

Description

@kyeotic

Describe the bug

This otherwise innocuous package includes react-native-get-random-values, which in turn installs all of react-native. It's listed as a production dependency, though it does not appear to be used.

Its adds over 100mb to the install size of the dynamodb-client

❯ npm ls react-native
[email protected] /Users/kyeotic/dev/dynamo-butter
└─┬ @aws-sdk/[email protected]
  └─┬ @aws-sdk/[email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └─┬ @react-native-community/[email protected]
          └── [email protected] deduped

I understand that this is done to handle this issue while running in certain environments, but this is a nuclear solution. I think it would be better to push this onto apps that need it, or find a uuid package that doesn't require all of react-native to be installed.

For users in node environments this is a huge counter to the modular nature of this sdk.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions