-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
middleware-retry includes react-native #2051
Comments
Can confirm. Somehow this is only an issue on node v15. On v14 react-native and it's dependencies are not installed. Found this issue while upgrading my docker build setup from node 14 to 15. 10 biggest folders in node_modules with node v14: 10 biggest folders in node_modules with node v15: This added at least 7 huge dependencies! Edit: This happens due to npm v7 switching to installing all peerDependencies by default! |
This happens to me on Node 12 and Node 14 |
What version of npm are you using? |
Im using npm 7, which is the "latest" version at time of writing |
This happens due to npm v7 switching to installing all peerDependencies by default |
+1 for replacing this library. Deep inside react-native is a DOS issue with node-fetch, and it's showing up as a low-severity vulnerability (actually, showing up as 10 vulnerabilities). "npm audit" says there's no fix available. At this point, I have to inform all downstream users of my library to use --legacy-peer-deps, and then install peer dependencies manually. |
Also can reproduce the problem, using Yarn. I'm trying to import only the Auth portion of the lib. |
There are plenty of ways of getting crypto random values. Anyways, this is in dependencies b/c
|
This is related to #1536 |
We got burned by this issue today in microsoft/rushstack#2547
NPM's decision to automatically install missing peer dependencies was controversial. (See this position statement from the Yarn maintainer: npm/rfcs#43 (comment) .) In strict mode, other package managers simply report an error if Even if we install |
Update: Rush worked around this by entirely eliminating the dependency on AWS SDK. The relevant REST call turned out to be simple enough to hand code (microsoft/rushstack#2555). |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
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
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.
The text was updated successfully, but these errors were encountered: