API versions and backward compatibility
When an application programming interface (API) changes, old callers must still work. Learn what counts as a breaking change and how to catch one before users do.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: changing a plug shape. A maker changes the shape of a plug. New appliances fit the new socket. Old appliances do not fit anymore. A kind maker keeps the old socket for a while, or ships an adapter.
Daily List is a to-do list app. Leo, the developer, renames a field in the task reply. The old name was dueDate. The new name is due_date. He thinks it reads better. He tests the new web app and all looks fine.
But Lily still has an old copy of the phone app. It reads dueDate. After the change, her due dates show up blank. Tom, the tester, asks the question that Leo did not: who else uses this reply?
A change that makes old callers fail is a . Tom's job is to find it before Lily does.
The picture has a limit. A plug is one object that you can hold up to a socket. Callers of an application programming interface () are many, are hidden, and some never update.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
The supported consumer contract sets the compatibility target. Keeping two sockets represents one migration option; itself means the new provider still meets the supported old caller’s expectations.
PLAIN WORDS · 1 in this section
- renames
- gives a new name
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Checking that a new provider still meets supported old callers’ contracts; the plug picture makes a change in expectations visible.
- Find the callers
- List the breaks
- Replay old calls
- Check migration policy
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A plug and a socket | A caller and an interface |
| A new plug shape | A new version of the interface |
| An old appliance that no longer fits | An old caller that now fails |
| An adapter or a spare old socket | Keeping the old field for a while |
WHERE THIS PICTURE STOPS
- A plug can be held up to a socket, but callers of an application programming interface (API) are many and hidden.
- An appliance is thrown away when it is old, but some callers never update.
- A new socket is seen at once, but a break in an application programming interface (API) may show up later and quietly.
HOOK
Test the old plug in the new socket.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
Use approved old-request fixtures, then compare meaningful results with the supported caller contract.
| In the trick | What it stands for |
|---|---|
| old-request fixtures | approved synthetic fixtures representing old requests |
| meaningful results | status, shape, values and effects against the declared contract |
Callers you cannot see, such as an old phone app, will not be in your list of old requests.
TELL A FRIEND
A plug shape changes: new appliances fit, but old ones may not. Keep the old socket for a while.
OFTEN MIXED UP WITH Contract testing ideas. Contract testing ideas shows how callers write down what they need. This lesson uses that idea to catch breaks.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
Semantic Versioning 2.0.0 ↗ — Tom Preston-Werner · SemVer2.0.0 Summary/Introduction/rules1–11 actually read8November2026: declaredpublicAPI, adoption,0.y.zunstable, compatiblefix/feature vs incompatiblechange, lowernumberresets, prerelease and buildmetadata precedence. Not allAPIversion schemes or deployment risk certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2.0.0. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: SemVer2.0.0 actual rules1,4–8 opened: declared public API; major0 unstable; compatible patch/minor and incompatible major changes, not code-size rule.
8 November2026 bounded primary update: SemVer2.0.0 Summary/Introduction/rules1–11 actually read8November2026: declaredpublicAPI, adoption,0.y.zunstable, compatiblefix/feature vs incompatiblechange, lowernumberresets, prerelease and buildmetadata precedence. Not allAPIversion schemes or deployment risk certification.
- Market practice
Backwards compatibility (Google API design guidance, improvement proposal 180) ↗ — Google (API Improvement Proposals) · AIP180 Guidance/Adding/Removing/Renaming/Types/Semantic/default/valueformat selectedpassages read8November2026. Google API guidance, mainlyprotobuf/JSON and multiple independent consumers; source/wire/semantic compatibility and direction matter. Not everyAPI implementation or comprehensive list.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: AIP180 Guidance/Adding/Removing/Renaming/Types/Semantic/default/valueformat selectedpassages read8November2026. Google API guidance, mainlyprotobuf/JSON and multiple independent consumers; source/wire/semantic compatibility and direction matter. Not everyAPI implementation or comprehensive list.
- Market practice
API backward compatibility testing (Virtuoso QA) ↗ — Virtuoso quality assurance (QA) · 8November2026 actual vendor definition/layeredtechnique and selected recordedtrafficreplay/CIsections opened, headerpublished23July2026. Practitioner comparison; no marketing/AI/performance or wholeapplication certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: 8November2026 actual vendor definition/layeredtechnique and selected recordedtrafficreplay/CIsections opened, headerpublished23July2026. Practitioner comparison; no marketing/AI/performance or wholeapplication certification.
- Market practice
Contract testing with Pact (Ensono Stacks documentation) ↗ — Ensono · 8November2026 Ensono overview and CanIDeploy section opened. Template-specific scripts/examples; precise currentmatrix claims rely on separate Pact primarypage, not every SDK/version.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: 8November2026 Ensono overview and CanIDeploy section opened. Template-specific scripts/examples; precise currentmatrix claims rely on separate Pact primarypage, not every SDK/version.
- Market practice
RFC 8594: The Sunset HTTP Header Field ↗ — Internet Engineering Task Force · RFC8594 May2019 Informational, not StandardsTrack. Abstract/status and1.4/3/4/5 read8November2026. Resource-scopedSunsetHTTP-date is expectedunresponsiveness hint, no guaranteedbefore/afteravailability or universalpostdate status; not caching or Deprecation.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: May 2019. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: RFC8594 May2019 Informational, not StandardsTrack. Abstract/status and1.4/3/4/5 read8November2026. Resource-scopedSunsetHTTP-date is expectedunresponsiveness hint, no guaranteedbefore/afteravailability or universalpostdate status; not caching or Deprecation.
- Market practice
Semantic Versioning 2.0.0 ↗ — Tom Preston-Werner · SemVer2.0.0 Summary/Introduction/rules1–11 actually read8November2026: declaredpublicAPI, adoption,0.y.zunstable, compatiblefix/feature vs incompatiblechange, lowernumberresets, prerelease and buildmetadata precedence. Not allAPIversion schemes or deployment risk certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2.0.0. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: SemVer2.0.0 actual rules1,4–8 opened: declared public API; major0 unstable; compatible patch/minor and incompatible major changes, not code-size rule.
8 November2026 bounded primary update: SemVer2.0.0 Summary/Introduction/rules1–11 actually read8November2026: declaredpublicAPI, adoption,0.y.zunstable, compatiblefix/feature vs incompatiblechange, lowernumberresets, prerelease and buildmetadata precedence. Not allAPIversion schemes or deployment risk certification.
- Market practice
Can I Deploy ↗ — Pact project · 8November2026 primaryCanIDeploy intro/matrix/environment/deploymentrecording/Summary/options read. Exactcandidate and integratedversions, targetenvironment and publishedverification evidence; dryrun/missingcoverage is not whole-system permission.
Primary page opened and read on 2026-10-21. Scope is the claim described here; this does not upgrade earlier citations to other pages. Examples in Daily List are synthetic teaching examples.
- Market practice
Logging Cheat Sheet (OWASP) ↗ — Open Worldwide Application Security Project · 8November2026 OWASPLogging DataToExclude and protection/access paragraphs actually read. Secrets/tokens/sensitive data minimisation and restrictedaccess; no wholelogging or replayarchitecture certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Actual introduction/purpose, data-exclusion and verification sections read; redact/minimise secrets, review access and retention and test logging failures.
V34 review, 6 November 2026: Actual introduction/purpose, data-exclusion and verification sections read. Test event classification/access/injection/failure handling and minimise credentials/personal data.
- Market practiceMarch2025 StandardsTrack RFC9745
RFC9745 — The Deprecation HTTP Response Header Field ↗ — Internet Engineering Task Force · RFC9745 March2025 StandardsTrack, Introduction and2/2.1/2.2 read8November2026. Deprecation is a StructuredFieldsDate (@epochseconds), contextscoped/optionalhint; deprecation does not change resourcebehavior. Not SunsetHTTP-date.
RFC9745 March2025 StandardsTrack, Introduction and2/2.1/2.2 read8November2026. Deprecation is a StructuredFieldsDate (@epochseconds), contextscoped/optionalhint; deprecation does not change resourcebehavior. Not SunsetHTTP-date. No entireRFC/implementation certification.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.