Semantic Versioning
AI asks me to upgrade a dependency from 18 to 19. Should I just do it?
AI asks me to upgrade a dependency from 18 to 19. Should I just do it?
{
"dependencies": {
"react": "^18.3.1"
}
}^18.3.1: minor and patch updates are allowed; it never jumps to 19 by itselfUsually a fix that does not change existing usage. Run a check after upgrading.
Semantic versioning announces a change's impact with three segments: the last fixes, the middle adds features, the first may break.
Patch: usually a fix: A change in the last segment is mostly a fix and stays compatible; the risk is lowest, but still run a check afterward.
Minor: usually new features: A change in the middle segment adds features without breaking existing usage; check whether the new features affect you.
Major: possibly incompatible: A change in the first segment may remove or alter existing behavior; read the release notes before upgrading and verify each part afterward.
The project pins react at ^18.3.1. First read the 19.0.0 release notes and list the changes that affect this project, then decide whether to upgrade. If you upgrade, check every page for errors afterward and do not upgrade other dependencies along the way.