A logistics company in Rotterdam runs its carrier integrations on a vendor’s Node.js SDK. On a Thursday morning, label generation fails for every parcel bound for the United States. Nothing was deployed on their side that week. What did happen: an automated dependency update merged overnight, pulling the SDK from 4.12.0 to 4.13.0, which the release notes described as “new optional fields and minor improvements”. One of those improvements renamed a property on a returned object from trackingNo to trackingNumber, keeping the old one “for now” on some code paths but not others.
Whose fault is it? The client’s, for allowing minor upgrades automatically? The vendor’s, for missing the impact? Or the idea that three dot-separated integers can protect anyone’s integration? This article is for tech leads who publish libraries, SDKs and APIs that other teams depend on, and for those who consume them.
Our position, which a competent reader may reasonably dispute: semantic versioning protects clients only when the public API is written down as a concrete list and a tool that compares each release with the previous one decides whether it is major, minor or patch. A version number chosen by a person in a release meeting is an opinion. A client who configures automatic upgrades based on it is treating that opinion as a guarantee.
Why is a version number chosen in a meeting an opinion rather than a promise?
Because the person choosing it judges changes through their own intent. The engineer who renamed trackingNo saw it as a consistency fix with a fallback. In their head it was a minor improvement. For the client whose code read the old property on the path where the fallback was missing, it was a breaking change. Both are right in their own frame of reference, and semver cannot settle the dispute until someone has defined what belongs to the public API.
The second reason is scale. A release that bundles forty commits from six people will contain signature changes nobody remembers. Someone added a parameter, someone narrowed a return type, someone deleted a public class that “was internal anyway”. Each change is small; together they appear in the release notes as “improvements and fixes”.
The third reason is the least comfortable: incentives. A major version is expensive. It needs a migration guide, a support window for the previous line, communication with customers. A team under deadline pressure has a natural reason to classify a change as compatible. Not out of bad faith, but because “is this breaking?” is ambiguous, and ambiguity tends to resolve in favour of whatever is more convenient.
So here is a simple test. If your release process has no step in which a machine compares the public interface of the new release with the last published one, your version number is a declaration, not a measurement. Declarations are better than nothing. They are not what clients are counting on when they write a range instead of an exact version in their dependency file.
What does the SemVer 2.0.0 specification actually say, and what does it leave out?
The Semantic Versioning 2.0.0 specification is short, and worth reading in full, because teams usually cite the version they remember rather than the one they read. The key clauses are these.
Clause 1: software using semver must declare a public API. The specification adds that this declaration should be precise and comprehensive, whether it lives in code or in documentation. This is the clause most teams skip, and every other clause depends on it.
Clause 4: major version zero (0.y.z) is for initial development. Anything may change at any time, and the public API should not be considered stable. Clause 5: version 1.0.0 defines the public API, and how the version number is incremented after that depends on this public API and how it changes.
Clauses 6 to 8 are the familiar three-number rule. PATCH is incremented only for backward compatible bug fixes, where a bug fix is defined as an internal change that fixes incorrect behaviour. MINOR is incremented for new backward compatible functionality, and also whenever any public API functionality is marked as deprecated. MAJOR is incremented for any backward incompatible change to the public API.
Clauses 9 to 11 cover pre-release versions (1.0.0-alpha.1, 1.0.0-rc.2), which have lower precedence than the associated normal version; build metadata after a plus sign (1.0.0+20260806), which must be ignored when determining precedence; and the precedence rules themselves.
What is missing? A definition of a backward incompatible change. There is no list for Java, .NET, TypeScript or HTTP. There are no rules about behaviour, performance, error messages or data formats. The specification pushes all of that onto the public API declaration in clause 1. Without the declaration, semver has nothing to measure against, and every discussion about a version number becomes an argument about intent.
The FAQ is also useful. It says that before removing functionality in a major release there should be at least one minor release containing the deprecation, and that updating a dependency without changing the public API is a compatible change, with patch or minor depending on whether the update fixes a bug or introduces functionality.
What is the public API, and why must you write it down before 1.0.0?
The public API is the set of elements whose stability you take responsibility for. Not what is technically reachable, but what you promise. The distinction matters: a public class in a Java package called internal is reachable by anyone who adds the jar, but it need not be part of the public API. In an HTTP API, a field that appears in responses only because the serialiser dumps the whole object is visible to every client, but it need not be a promise.
How do you write it down? Think in three layers.
The code layer. For libraries: explicit module or package boundaries. In Java, the module system with only selected packages exported. In .NET, the internal modifier plus InternalsVisibleTo for tests. In TypeScript, a single entry point and an exports map in package.json. In Rust, pub(crate) visibility. Whatever is not exported is not a promise, and the compiler enforces it.
The contract layer. For network APIs: an OpenAPI or AsyncAPI document, or a Protocol Buffers schema, is the public API declaration in the sense of clause 1. A field absent from the specification is not promised, even if the server returns it. It is still wise to stop returning it, because clients read responses, not specifications.
The behaviour layer. This is the hard part. Ordering of list elements, date formats, casing of codes, behaviour on empty results, error codes, rate limits. Some of these belong in the contract and should be tested. Others are worth explicitly excluding with a sentence in the documentation, for instance: “the order of items in this response is not guaranteed unless a sort parameter is supplied.”
Why before 1.0.0? Because from then on every change to the scope of the public API is a change to the promise. Widening the list is cheap (that is a minor release); narrowing it is expensive (that is a major release). A team that ships 1.0.0 without a list has effectively promised everything that is visible. We argued for promising less at design time in our API design checklist. This article picks up where that one stops: how to number and ship changes to what you have already promised.
The SemVer FAQ also answers when to reach 1.0.0. If your software is used in production by anyone other than you, it should probably be 1.0.0 already. Staying on 0.x for years does not remove responsibility; it blurs it. Clients rely on your API regardless, while you have formally promised nothing.
Which changes break compatibility even though they look harmless?
Everyone recognises removing a method or an endpoint as a breaking change. The trouble lies in changes that look like additions in code review, and therefore like minor releases. Here are cases documented by tool vendors and API providers.
Adding an optional parameter in .NET. Microsoft’s documentation on package validation walks through exactly this: Connect(string url) gains TimeSpan timeout = default. Client source code still compiles, but previously compiled assemblies look for the old signature and cannot find it. It is a binary breaking change. The correct fix is a new overload, not an extra parameter.
Adding a variant to a Rust enum. Unless the enum is marked #[non_exhaustive], client code that matches every variant stops compiling. In the cargo-semver-checks study described below, this was the most frequent kind of semver violation.
Adding a method to a Java interface without a default implementation breaks every class that implements it. For libraries whose interfaces clients implement (plugins, adapters, strategies), this is breaking even if callers never notice.
A new required parameter in an HTTP API. GitHub’s REST API versioning page lists as breaking: removing an operation, removing or renaming a parameter, adding a new required parameter, and changing authentication or authorisation requirements. As additive, compatible changes it lists adding an optional parameter and adding enum values.
Changing a default value. Google’s AIP-180 states that changing a field’s default value is breaking and must not be done. It distinguishes three kinds of compatibility: source (code written against the old version compiles), wire (old clients communicate correctly with the new server) and semantic (old clients keep receiving what most reasonable developers would expect). The renamed property in our opening example breaks the third, and arguably the first for typed clients.
A new enum value in a response. Two serious sources differ in emphasis here. GitHub treats adding enum values as additive. AIP-180 advises caution with enums returned in responses and recommends documenting that the set of values may grow. A client with a switch statement and no default branch will experience a new value as a breaking change. The fix is on both sides: the provider documents the list as open, and the client handles unknown values.
The table below collects the common cases. The last column assumes the element belongs to the declared public API.
| Change | Library (Java, .NET, Rust, TypeScript) | HTTP API | Required bump |
|---|---|---|---|
| Removing a public method, type or endpoint | Breaks client compilation | Client receives 404 or an error | MAJOR |
| Adding an optional parameter | Binary breaking in .NET; add an overload instead | Compatible | MINOR (library: only as a new overload) |
| Adding a required parameter | Breaks compilation | Breaks existing calls | MAJOR |
| Adding an interface method without a default | Breaks implementing classes | Not applicable | MAJOR |
| Adding an enum variant | In Rust without non_exhaustive, breaks exhaustive matches | Compatible if the list is documented as open | MINOR or MAJOR, depending on the declaration |
| Changing a default value | Changes behaviour silently | Changes behaviour silently | MAJOR |
| Renaming a field or property | Breaks typed clients | Breaks parsers | MAJOR |
| Tightening input validation | Previously valid calls throw | Previously valid requests get 400 | MAJOR |
| Marking an element deprecated | Compiler warning | Deprecation header | MINOR |
| Internal bug fix with no contract change | Invisible to the contract | Invisible to the contract | PATCH |
How does Hyrum’s law change what counts as a breaking change?
Hyrum Wright, a Google engineer, put into words what is now known as Hyrum’s law: with a sufficient number of users of an API, it does not matter what you promise in the contract; all observable behaviours of your system will be depended on by somebody. Key order in a JSON response, latency, the wording of an error message, the order of callbacks.
Hyrum’s law is often cited against semver: if any change can break someone, the split into patch, minor and major is fiction. We read it the other way round. Hyrum’s law shows that a breaking change cannot be defined objectively, only relative to a declaration. Without a declaration, every change is potentially breaking and the version number means nothing. With one, the version number says something precise: “relative to what we promised in writing, this change is compatible.”
For the client, that is a reasonable deal. If they depend on something outside the declaration, such as an ordering nobody guaranteed, they know it is at their own risk and can protect it with a test on their side. For the provider, the declaration is the only way to evolve the product at all: without it, every internal fix would require a major release.
Three practical consequences for a tech lead. First, shrink the observable surface where it is cheap: do not return fields that are not in the contract, randomise order where it is not guaranteed (Go deliberately does this when iterating over maps), do not export helper types. Second, explicitly exclude from the contract what clients might lean on: error message text, ordering, performance. Third, when a behavioural change outside the contract will hit many clients, treat it as breaking anyway. The declaration protects you in a dispute; it does not protect trust.
How often is semver actually broken?
We know quite a lot, because package registries are public and can be analysed at scale. Three studies are worth knowing: they show the problem is real, that it is shrinking, and that its size depends on tooling.
Steven Raemaekers, Arie van Deursen and Joost Visser analysed more than 100,000 jar files from Maven Central covering over seven years. In Semantic versioning and impact of breaking changes in the Maven repository, published in the Journal of Systems and Software in 2017, they reported that around one third of all releases introduced at least one breaking change, and that the share was similar for minor and major releases. Deprecation tags, which could have announced such changes, were hardly used.
A replication by Lina Ochoa, Thomas Degueule, Jean-Rémy Falleri and Jurgen Vinju, Breaking bad? Semantic versioning and impact of breaking changes in Maven Central (Empirical Software Engineering, 2022), covered 119,879 library upgrades and 293,817 clients. The picture is clearly better: 83.4% of upgrades complied with semver, and the share of non-major releases containing breaking changes fell from 67.7% in 2005 to 16.0% in 2018. Still, around 20% of non-major releases broke something. Only 7.9% of clients were actually affected, because most breaking changes touched code nobody used; but when a client did use the changed element, breakage was likely.
The third study concerns Rust. Predrag Gruevski, author of cargo-semver-checks, ran the tool over the 1,000 most downloaded crates on crates.io and reported the results: across roughly 14,000 minor and patch releases, 3.2% contained at least one semver violation, about one release in 31. In his 2023 review he added that more than one in six of those crates had violated semver at least once.
What does that mean for a tech lead? Two things. First, even in mature ecosystems where semver is a cultural norm, people get it wrong regularly. Rust has a compiler that enforces a great deal, and still one release in 31 broke its promise. Second, the improvement in Maven Central between 2005 and 2018 coincides with tools and practices becoming widespread, and the author of the Rust study titled his post “semver violations are common, better tooling is the answer”. That is about as strong an argument as you will find for not leaving the decision to people.
How do you hand the version decision to a machine?
The principle is simple. In CI, before publishing, a tool compares the public interface of the current build with the last published release and refuses to publish if the detected changes require a higher bump than the one declared. A person can still accept a breaking change deliberately, but has to do so explicitly, in a file that goes through code review.
Tools for the main ecosystems:
- Java: japicmp, as a Maven plugin with
breakBuildBasedOnSemanticVersioning, fails the build when binary changes do not match the version bump. A separate option extends the check to 0.x versions, which the specification does not bind. - .NET: built-in package validation. Set
EnablePackageValidationandPackageValidationBaselineVersionin the project file, anddotnet packcompares the package with the baseline. Intentional breaking changes go into aCompatibilitySuppressions.xmlfile that, according to Microsoft’s documentation, should be checked into source control and reviewed. - Rust: cargo-semver-checks, run before
cargo publish. - HTTP APIs: oasdiff compares two versions of an OpenAPI document and classifies changes by severity (error, warning, info). It ships as a GitHub Action that can block a pull request introducing a breaking change.
- Elm is the extreme case: its package manager computes the required bump from the public API diff and rejects a publish with the wrong number. It proves that an ecosystem can work with nobody choosing version numbers by hand.
The other half of automation is commit convention. Conventional Commits 1.0.0 ties commit types to version bumps: fix correlates with PATCH, feat with MINOR, and a BREAKING CHANGE footer or an exclamation mark before the colon (feat!:) with MAJOR. Tools such as semantic-release compute the next version and generate release notes from this.
A caveat: Conventional Commits moves the decision from release time to commit time, but it is still a human decision. An engineer who labels a property rename as feat gets a minor release. That is why the two methods work best together: the commit convention proposes the number, and the API diff tool verifies it and blocks the release when the proposal is too low. If you are building or cleaning up a release pipeline, both steps belong in the publish stage described in our guide to implementing a CI/CD pipeline step by step.
Interface diff tools do not catch behavioural changes. Changing a date format does not change a signature. That gap is filled by contract tests, in which consumers record their expectations and the provider verifies them before every release. We covered this in depth in our article on contract testing in microservices.
Does a network API need semver when the client only ever sees one version?
This deserves a direct answer, because many teams carry library habits over to HTTP APIs without thinking. A library and a network API differ fundamentally: a library consumer chooses which version to install. An HTTP API consumer chooses nothing, because the server runs one current implementation. Versions 1.4.2 and 1.4.3 of an API exist for them only in release notes.
For a network API, what counts is the compatibility boundary, the equivalent of a major version. Large public API providers solve this in different ways, following the same logic.
GitHub versions its REST API by date in the X-GitHub-Api-Version header. Requests without the header get version 2022-11-28. Additive changes go into all supported versions; breaking changes go only into a new one. After a new version ships, the previous one remains supported for at least 24 months.
Stripe, starting with the 2024-09-30.acacia release, publishes monthly versions that contain only backward compatible changes, and twice a year a major release, which alone may contain breaking changes such as renamed fields, removed parameters or different object shapes. The rules are described in Stripe’s documentation on how API versioning works. This is the semver split exactly, with names instead of numbers and a calendar for majors.
Kubernetes writes in its API deprecation policy that API elements may only be removed by incrementing the version of the API group, and that GA versions (v1) may be marked deprecated but must not be removed within a major version of Kubernetes. Beta versions are deprecated no more than 9 months or 3 minor releases after introduction, whichever is longer, and stop being served 9 months or 3 minor releases after deprecation.
The takeaway for a team exposing an API to partners: in the path or header, the major-version equivalent is enough (/v1/, /v2/ or a date). A full semver number makes sense for two artefacts the client actually installs or pins: the OpenAPI specification and the SDK. A spec at 1.7.0 tells the client “there are new fields you may use”; an SDK at 3.2.0 tells them “upgrading will not break your code”. Both numbers should be computed by the tools from the previous section.
A common mistake is tying the SDK version to the API version. Stripe notes that its SDK major versions ship alongside API major releases, but that an SDK major version may also coincide with a monthly API release if the SDK itself has breaking changes to ship. That is the right model: an SDK has its own public API (classes, methods, types) which may need a major version regardless of the network API. The opening example, a renamed property on an SDK object, is precisely an SDK-level break that the underlying HTTP API may not have shared.
How do you deprecate features so clients have time to react?
SemVer provides the frame: marking an element as deprecated requires a minor release and removing it requires a major one, with at least one minor release carrying the deprecation in between. That is the formal minimum. In practice clients need three things: a signal where they work, a date, and a migration path.
A signal where they work. In libraries that means @Deprecated in Java, [Obsolete] in .NET, #[deprecated] in Rust, @deprecated in JSDoc. The compiler or IDE warns the developer using the element, not just whoever reads release notes. In HTTP APIs, the equivalent is a response header. Since March 2025 there is a standard, RFC 9745, defining a Deprecation header that tells clients a resource is or will be deprecated, plus a deprecation link relation pointing to documentation. RFC 9745 is designed to work with the Sunset header from RFC 8594, which announces the removal date; the Sunset timestamp must not be earlier than the Deprecation timestamp.
A date. Clients plan in quarters. “This endpoint will be removed eventually” does not make it into anybody’s plan. “This endpoint stops working on March 31” does. Write the deprecation window into your policy once rather than negotiating it with every change. GitHub’s 24 months for API versions and Kubernetes’ 9 months or 3 releases for beta versions are useful reference points.
A migration path. A “before, after, what to change” guide, ideally with code samples and, where feasible, an automated codemod. For network APIs it also helps to let clients opt into the new behaviour early, through a parameter, a header or an account-level switch. Feature flags let you expose new behaviour to selected clients before the major version and collect feedback before the change becomes mandatory.
One thing worth knowing before you plan: Raemaekers and his co-authors found in Maven Central that deprecation tags were rarely used, even though breaking changes were common. Removing without warning is the normal path, not the exception. A simple check in the pipeline, verifying that every element removed in a major release was previously marked deprecated, eliminates this class of problem.
Network APIs have one advantage libraries lack: access logs show who still uses a deprecated element. A month before shutdown, pull the list of clients who called the old endpoint in the past 30 days and contact them directly.
What should you do when a breaking change ships as a minor or patch release?
It will happen, even with good tooling, because tools do not see behavioural changes. The SemVer FAQ is clear: as soon as you realise you have broken the specification, fix the problem and release a new minor version that restores backward compatibility. Never modify a versioned release. Where appropriate, document the offending version and inform your users.
In practice: you shipped 4.13.0 with the renamed property. You ship 4.13.1 (or 4.14.0) that restores trackingNo on every code path. The rename, if you still want it, moves to 5.0.0, or ships in 4.14.0 alongside the old name with the old one deprecated. You mark 4.13.0 as deprecated in the registry if it allows it (npm has npm deprecate, crates.io supports yanking, NuGet supports unlisting). You do not delete or overwrite it, because someone may already have built a release on it and must be able to reproduce that build.
The most common mistake here is “fixing forward”: the team decides that since the change is out and the new name is better, clients should adapt. Technically they may be right. Contractually they lose something worth more than a property name: the client’s belief that the ^4.12.0 range in their manifest is safe. After an incident like that, clients start pinning exact versions, stop taking security patches automatically, and every subsequent patch from you requires manual work on their side.
The second element is root cause analysis. Every release that broke semver should end with one question: which check was missing from the pipeline? If the change was in a signature, the API diff tool was misconfigured or absent. If it was in behaviour, a contract test or a regression test was missing. Regression tests that pin data formats at the API boundary are cheap to maintain and catch exactly what static tools miss; we discuss how to choose them in regression testing: when and how to do it.
How do client-side dependency ranges turn your mistake into their outage?
The opening scenario required two conditions: a wrong version number and a dependency range that accepted the new release automatically. In many ecosystems the second condition is the default.
In npm, the default save-prefix is the caret, so npm install records a range such as ^1.2.3 in package.json. According to the node-semver documentation, that range means >=1.2.3 <2.0.0. Every minor and patch release in the 1.x line will be accepted at the next update without a lockfile. Cargo in Rust interprets a bare version requirement the same way by default.
Zero versions behave differently. In npm, ^0.2.3 means >=0.2.3 <0.3.0, and ^0.0.3 means only 0.0.3. This follows from clause 4 of the specification: in version zero anything may change, so the package manager treats the second number as the major one. For a team publishing at 0.x, that is a signal that clients will not receive minor updates automatically anyway. If you want them to get your fixes, ship 1.0.0.
Go took a different route. In Go modules, a major version of 2 or higher is part of the module path: example.com/mymodule/v2 is a different module from example.com/mymodule. A client who wants v2 has to change the import statements in their code. A breaking change cannot reach them by accident, and both major versions can coexist in one build. The price is that adopting a major version is noticeably more work for the client.
What follows for the provider? That your version number is not the only thing determining the impact. In most ecosystems your clients trust minor and patch releases automatically. That trust rests on your promise, not on their caution. Lockfiles (package-lock.json, Cargo.lock, packages.lock.json) protect client builds from uncontrolled drift, but not from your mistake when they deliberately update dependencies, for instance through a bot that opens pull requests for new versions, as in the Rotterdam example.
For the client, the lesson is different: a range in a dependency file is a decision to trust a specific vendor. Libraries with a clean release history can have a caret. Libraries that have broken semver before are better pinned and updated by hand, with tests.
How does semver connect to security patches and regulatory duties?
A patch release is the channel through which security fixes reach clients. If clients do not trust your patch releases because one once brought a breaking change, they pin versions, and security fixes reach them late. That is a direct cost of broken semver that rarely comes up in discussions about numbering.
In the European Union, this link is becoming a regulatory matter. Regulation (EU) 2024/2847, the Cyber Resilience Act, requires in Annex I, Part II, point 2 that manufacturers of products with digital elements address vulnerabilities without delay, including through security updates, and, where technically feasible, provide new security updates separately from functionality updates. Recital 57 explains the purpose: users should not have to install new features just to receive a security fix. The obligation to report actively exploited vulnerabilities applies from 11 September 2026, and the main requirements from 11 December 2027. If you sell software into the EU from the US, the UK or elsewhere, the regulation applies to products placed on the EU market regardless of where the manufacturer sits.
Not every team publishing a library is a manufacturer under the CRA, and its scope needs separate legal analysis. The mechanism, however, is the one semver already provides: a patch release containing only the fix, with no new features and no breaking changes. A team with semver discipline that maintains fixes for at least one earlier minor line (say 4.12.x alongside 4.13.x) meets this requirement technically with no extra work. A team that ships everything on a single line has to choose, when a critical vulnerability lands, between shipping the fix bundled with new features and hastily cutting a maintenance branch.
Practical recommendation: state in your release policy how many earlier minor lines receive security fixes and for how long. Even “the latest minor line, plus the last minor line of the previous major for 12 months” is a clear promise a client can put into their own plan.
What does a release process that protects client integrations look like?
Pulling the previous sections together: a release process clients can trust rests on several checks, each catching a different class of error. None is expensive, but together they turn the version number from a declaration into a measurement.
The table describes four maturity levels. Check which level your team is at today before planning any changes. Moving to level three is usually a few days of pipeline work.
| Level | Who decides the number | What is declared | What catches breaking changes | Typical symptom |
|---|---|---|---|---|
| 1. Number by calendar or mood | Whoever prepares the release | Nothing | Clients, after an outage | Clients pin exact versions and skip patches |
| 2. Declared semver | The team in a pre-release meeting | A general description in the README | Code review, if someone notices | Breaking changes in minor releases, “minor improvements” in notes |
| 3. Verified semver | Commit convention proposes, API diff tool verifies | Exported modules, OpenAPI document | japicmp, .NET package validation, cargo-semver-checks, oasdiff in CI | Behavioural changes (formats, defaults) still slip through |
| 4. Semver with a behavioural contract | As above, plus explicit acceptance of breaking changes in the repository | Contract plus written exclusions (ordering, error messages) | Static tools, consumer contract tests, format tests at the API boundary | Occasional Hyrum’s law cases, handled by deprecation policy |
A concrete path to level three looks like this. Day one: write down the public API. For a library, narrow the exports; for a network API, make sure the OpenAPI document is current and generated or verified automatically. Day two: add a diff tool to the pipeline that compares with the last published release, in warning mode. Over the next two weeks, collect warnings and tune the configuration, because the first runs usually raise false positives and reveal elements that were public by accident. Then switch the tool to blocking mode. In parallel, introduce a commit convention and generated release notes.
Level four needs cooperation from clients, because consumers write contract tests. With business partners it is worth proposing as part of the integration agreement: the partner supplies a contract of its expectations, and the provider commits to running it before every release.
Finally, a written versioning policy published to clients. One page is enough: what is in the public API and what is explicitly excluded; how long the previous major version is supported; how many earlier lines get security fixes; how deprecation is signalled (annotations, Deprecation and Sunset headers, email); what happens when a release breaks semver. The glossary entry on software versioning management defines the terms worth using in it.
What are the key takeaways?
Semver is not an aesthetic convention. It is an agreement with clients who accept your releases automatically because of it. The agreement is worth exactly as much as the mechanism that enforces it.
Remember six things. First, write down the public API before 1.0.0, because SemVer requires it in its very first clause and without it no number means anything. Second, do not let people choose version numbers unchecked: a tool comparing the interface with the previous release should block publication, and intentional breaking changes should be recorded in the repository. Third, watch for changes that look like additions but break compatibility: an optional parameter in .NET, an interface method in Java, an enum variant in Rust, a changed default, a renamed property. Fourth, for network APIs, a major-version equivalent in the path or header is enough; apply full semver to the specification and the SDK. Fifth, deprecate with a signal where the client works, a date and a migration path. Sixth, when a breaking change ships by mistake, restore compatibility in a new release instead of fixing forward.
The Maven Central and crates.io data show that even teams fluent in semver get it wrong regularly, and that the situation improved as tooling spread. So the useful question is not whether your team is careful enough. It is whether your release pipeline checks what care alone will miss.
If you publish APIs or SDKs for partners and want to put the release process, the public API contract or the CI pipeline in order, see how we work in custom software development. If you first want to know the state of the code you expose to clients, a Code Health Audit takes one to two weeks, has a fixed scope and starts from EUR 4,500. Or simply book a call.