rnx-kit icon indicating copy to clipboard operation
rnx-kit copied to clipboard

align-deps: remove stale dependencies when upgrading react-native

Open tido64 opened this issue 2 years ago • 3 comments

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.

tido64 avatar Mar 21 '22 08:03 tido64

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 avatar May 31 '22 20:05 afoxman

@afoxman @tido64 , Is someone already investigating it ? if not , can I take this up and investigate on it.

rohanprasadofficial avatar Aug 23 '22 02:08 rohanprasadofficial

It's all yours 😄

tido64 avatar Aug 23 '22 06:08 tido64