A Smooth Path to Dropping an Old Runtime Version
Every library eventually stops supporting an old Node.js or Python release, usually once that release has reached end of life upstream. This hypothetical example follows "Package T", an invented validation library, through a clean retirement of its oldest supported runtime. Nothing here describes a real project; the steps are what a careful maintainer would do.
Step 1: write the policy down before you need it
Package T's README has a short "Supported runtimes" section: it supports the runtime versions that are still maintained by their upstream projects, and drops a version within a stated period after its end-of-life date. Node.js publishes its release schedule, and the Python developer guide lists the status of each Python version, so the policy points at those official pages rather than copying dates that could go stale. With a written policy, dropping a version is following a rule, not a debate on every issue.
Step 2: announce it one release ahead
The last release that supports the old runtime says so in its changelog: "This is the final minor to support Node.js X. The next major will require Node.js Y or later." Users on the old runtime now know they have a pinned, working version and roughly when they need to move.
Step 3: declare the floor in metadata
For the npm package:
{
"engines": { "node": ">=20" }
}
By default npm only warns when engines does not match (unless the user enables engine-strict), so the field is a signal more than a gate. Yarn and pnpm can be stricter. For the Python distribution, the equivalent is enforced by pip:
[project]
requires-python = ">=3.10"
Because pip skips releases whose Requires-Python excludes the running interpreter, anyone on the dropped version automatically get the last compatible release instead of a broken one.
Step 4: change CI before changing code
The test matrix is updated in the same pull request that changes the metadata: the dropped version is removed and the newest version is present. Only after that merges do contributors start using newer language features. This ordering means the declared floor and the tested floor never drift apart.
Step 5: release as a major, or justify why not
Package T bumps its major version. Some maintainers treat an end-of-life runtime drop as a minor change; Package T chose the conservative route because a version number is the one signal every tool understands. Either way, the change is in the first lines of the changelog.
A checklist you can copy
- Policy for runtime support written in the README, linking the official schedules.
- Final supporting release announced in its own changelog.
enginesorrequires-pythonupdated in the release that drops support.- CI matrix updated in the same change.
- Type-checker or transpile target updated, if any.
- A note on whether the old line receives security fixes, and for how long.
For the failure version of this story, see the missing requires-python example.