TOPIC 31/6214 MINNOT STARTED

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.

  1. Find the callers
  2. List the breaks
  3. Replay old calls
  4. Check migration policy
Old plug, new socket

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A plug and a socketA caller and an interface
A new plug shapeA new version of the interface
An old appliance that no longer fitsAn old caller that now fails
An adapter or a spare old socketKeeping 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.

What each part of the trick stands for
In the trickWhat it stands for
old-request fixturesapproved synthetic fixtures representing old requests
meaningful resultsstatus, 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
  1. 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.

    Says to raise the major number for incompatible application programming interface (API) changes, minor for compatible additions and patch for compatible fixes. · Checked 2026-11-08

    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.

  2. 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.

    Per the search excerpt, removing a component from an existing API is a break, renaming is a removal plus an addition, and adding optional parts is the usual safe change. · Checked 2026-11-08

    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.

  3. 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.

    Vendor page: run the previous release's tests on the new build, compare schemas and replay recorded traffic to find breaking changes. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  4. 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.

    Describes consumer-driven contract testing and the can-i-deploy check; a vendor guide. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  5. 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.

    Defines a header that says a web address is likely to stop responding at a set future time; informational, not a standard. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  6. 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.

    Says to raise the major number for incompatible application programming interface (API) changes, minor for compatible additions and patch for compatible fixes. · Checked 2026-11-08

    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.

  7. 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.

    The Pact Matrix records exact consumer/provider version pairs and verification results. Deployment checks use the target environment and its recorded deployed or released versions. · Checked 2026-10-21

    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.

  8. 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.

    Says to log for a purpose, not too much or too little, and to keep secrets and tokens out of logs. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  9. 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. · Checked 2026-11-08

    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.