DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Semantic Contracts: The Missing Layer Between Good Data and Reliable AI
  • Why Semantic Layers Matter in Analytics: A Deep Dive into RAG Design
  • Building AI Agents With Semantic Kernel: A Practical 101 Guide
  • From Keywords to Meaning: A Hands-On Tutorial With Sentence-Transformers for Semantic Search

Trending

  • Vercel AI SDK Middleware vs Genkit Middleware: A Hands-On Comparison
  • Spec-Driven Integration: Turning API Sprawl Into a Governed Capability Fleet for AI
  • Monitoring Spring Boot Applications with Prometheus and Grafana
  • Security Readiness Checklist: From AI Threats to Software Supply Chain Defense

What Is Semantic Versioning?

By 
Erik Wilde user avatar
Erik Wilde
·
Oct. 01, 20 · Presentation
Likes (3)
Comment
Save
Tweet
Share
2.6K Views

Join the DZone community and get the full member experience.

Join For Free

Semantic Versioning is a versioning scheme for using meaningful version numbers (that's why it is called Semantic Versioning). Specifically, the meaning revolves around how API versions compare in terms of backwards-compatibility.

Semantic Versioning makes no sense without a well-defined model of how an API can be extended and evolves over time. This needs to be part of the API design and documentation, and it needs to managed as one important aspect of the general API management approach. For this reason, there will be two follow-up pieces about "Managing API Versions" and "Designing APIs for Extensibility and Evolution," but this one here focuses on the narrower topic of identifying versions with the semantic versioning scheme.

Semantic Versioning works by structuring each version identifier into three parts, MAJOR, MINOR, and PATCH, and then putting these together using the familiar "MAJOR.MINOR.PATCH" notation. Each of these parts is managed as a number and incremented according to the following rules:

  • PATCH is incremented for bug fixes, or other changes that do not change the behavior of the API.
  • MINOR is incremented for backward-compatible changes of the API, meaning that existing consumers can safely ignore such a version change.
  • MAJOR is incremented for breaking changes, i.e. for changes that are not within the backwards compatibility scope. Existing consumers have to adapt to the new API, very likely by adapting their code.

There are some additional features for identifying pre-release and build information, but for these (and all other details of the specification), please check out the Semantic Versioning specification.

If you want to learn more about Semantic Versioning, check out the video below. It also discusses Hyrum's law, which is an important pattern in the API space that should be taken into account for setting up API test environments.

Semantics (computer science)

Published at DZone with permission of . See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Semantic Contracts: The Missing Layer Between Good Data and Reliable AI
  • Why Semantic Layers Matter in Analytics: A Deep Dive into RAG Design
  • Building AI Agents With Semantic Kernel: A Practical 101 Guide
  • From Keywords to Meaning: A Hands-On Tutorial With Sentence-Transformers for Semantic Search

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook