rnx-kit
rnx-kit copied to clipboard
align-deps: remove stale dependencies when upgrading react-native
align-deps
should remove stale dependencies when upgrading react-native.
For instance, @react-native-community/async-storage
was renamed to @react-native-async-storage/async-storage
some time ago. When people are upgrading from 0.63 to 0.64, we resolve the storage
capability to @react-native-async-storage/async-storage
, but do not remove @react-native-community/async-storage
.
When doing this, consider making a list of "known deprecated" dependencies that should be removed and storing that per profile. Each profile successively builds on the previous profile's list. That way, if you've left 0.63 and 0.64 behind a long time ago, and you upgrade to 0.68, you still get the cleanup which removes the now-defunct @react-native-community/aync-storage
.
@afoxman @tido64 , Is someone already investigating it ? if not , can I take this up and investigate on it.
It's all yours 😄