3 ms·
I usually shudder when I see React Router major versions which usually result in hard breaks that takes hours to migrate existing code bases to, so I'm pleasant
by mythz 8y ago
I usually shudder when I see React Router major versions which usually result in hard breaks that takes hours to migrate existing code bases to, so I'm pleasantly surprised to see:
> v5 is fully backwards compatible with 4.x
It appears the major version bump was due to package configuration changes instead of major API code changes.
- realusername 8y agoYeah that was my first reaction when I saw the title, "How hard is it going to be this time?" since it took me 2 days to migrate to the v4 last time.
- crispyporkbites 8y agoWhy upgrade?
- realusername 8y agoBecause if you don't upgrade, you are stuck with whatever version of React created at the time. You don't get stability & performance improvements, bug fixes, you can't potentially install some newer libraries requiring the new version. Not keeping up with upgrades is making the code rot slowly.
- coldtea 8y agoBecause sooner of later you'll have to. Upgrading frequently minimizes the delta.
- kin 8y agoSame reaction here! Jumping from 2 -> 4 was a pretty big change to our codebase. Glad for this.
- silverwind 8y agoApparently it was never meant to be a major bump, but they were forced to do it because of a semver screwup between their own packages. All the changes were already in 4.4.0 published one day earlier, which they've now unpublished it seems.