Writing a Support Policy for Versions, Runtimes and Security Fixes
Every package has a support policy, even if nobody wrote it down. It is whatever the maintainer happens to do when someone opens an issue against an old version or asks whether the library still works on an older runtime. Unwritten policies tend to be generous when a project is young and abruptly strict when the maintainer is tired, which is the worst combination for users. A short written policy fixes that. It tells users what to expect, gives maintainers permission to say no, and turns hard conversations into a link.
This guide walks through the decisions a support policy needs to make and offers a template you can adapt. It is aimed at libraries published to public registries, but internal libraries benefit from the same clarity.
What a support policy should answer
A useful policy answers four questions in plain language:
- Which release lines get fixes? Only the latest, or the last two major versions?
- Which runtimes and platforms are supported? Which versions of Node.js, Python, Go or other runtimes you test against, and on which operating systems.
- How are security fixes handled? How long older lines receive them, and how to report a vulnerability.
- How will changes be announced? Where users will learn that support for something is ending, and how far in advance.
Everything else is detail. A policy that answers these four questions on one screen is more valuable than a long document nobody reads.
Release lines
The simplest policy is "only the latest release receives fixes." It is honest and sustainable for a solo maintainer, and it works well for libraries where upgrading is cheap. Its weakness is that a major version bump leaves users on the previous line with nothing, which can stall adoption of the new major.
A common middle ground is to support the current major version fully and the previous major version for security fixes only, for a stated period after the new major ships. That gives users a migration window without asking maintainers to backport features.
| Policy shape | Good for | Cost to maintainers |
|---|---|---|
| Latest only | Small libraries, fast-moving projects | Lowest |
| Current plus previous major for security | Widely used libraries with real migration effort | Moderate: occasional backports |
| Long-term support lines | Foundational packages used by enterprises | High: parallel branches and release processes |
Choose the shape you can actually sustain. Promising long-term support and then quietly dropping it is worse than promising less in the first place.
Runtimes and platforms
Most runtimes publish their own release schedules and end-of-life dates. Node.js has a long-term support schedule for even-numbered releases, and Python publishes a support period for each minor version. Aligning with those schedules is the easiest defensible choice: "we support every runtime version that is itself still supported upstream." When a runtime version reaches its upstream end of life, you may drop it in your next minor or major release, depending on your versioning rules.
Whatever you choose, make it machine-readable as well as human-readable. In npm packages that means the engines field, covered in our note on declaring runtime support. In Python packages it means requires-python in pyproject.toml; the illustrative example of a missing requires-python bound shows why it matters. Your CI matrix should match the declared range, neither wider nor narrower. The CI matrix calculator helps you see how many jobs that implies.
Is dropping a runtime a breaking change?
Opinions differ. Some projects treat any narrowing of supported runtimes as a major version change, because users on the dropped runtime can no longer install new releases. Others drop runtimes that have reached upstream end of life in minor releases, on the basis that those runtimes are no longer safe to use. Either can be reasonable. What matters is that your policy says which approach you take, so nobody is surprised. The walkthrough on dropping old runtime support smoothly shows one careful sequence.
Security fixes
Security deserves its own short section, because it is where users most need certainty. State how long each release line receives security fixes, how to report a vulnerability privately, and roughly what happens after a report: acknowledgement, assessment, fix, release and advisory. Many hosting platforms support a SECURITY.md file in the repository root, which is a natural home for this text and is surfaced to people looking for how to report an issue. Our guide to reporting a vulnerability privately describes the reporter's side of the same process.
Avoid promising response times you cannot keep. "We aim to acknowledge reports within a week" is more credible from a volunteer project than an hours-based commitment that will be broken during a holiday.
Announcing changes
The last part of the policy is about notice. When support for a release line or runtime is going to end, users need to hear about it before it happens, through channels they actually watch. Common approaches include:
- a changelog entry in the release before the change, flagged at the top;
- a runtime deprecation warning emitted by the library itself, used sparingly;
- a pinned issue or discussion thread explaining the timeline;
- a note on the registry page or README for the affected versions.
The long read on deprecation policies and the deprecation notice template cover the wording.
A template you can adapt
## Support policy
Release lines
- The latest major version receives bug fixes and new features.
- The previous major version receives security fixes for
12 months after the next major is released.
Runtimes
- We test on every Node.js version that is in upstream
active or maintenance LTS.
- Support for a runtime version is removed in the first
minor release after its upstream end of life.
Security
- Report vulnerabilities privately, as described in SECURITY.md.
- We aim to acknowledge reports within 7 days.
Changes to this policy
- Announced in the changelog at least one release in advance.
The numbers in the template are examples, not recommendations. Replace them with what you can sustain, and revisit them once a year. Our annual dependency audit is a good moment to do it.
Where to publish it
Put the policy in the repository, either as a section of the README or as its own file linked from the README. Link to it from the issue template, so that someone filing a bug against an unsupported version sees the policy before they press submit. Then follow it consistently. A support policy earns trust not by being generous but by being predictable. For the rest of the release lifecycle, return to the Learn hub.