Skip to content

Stable Release

You'll take a project from 0.x to 1.0, with a public API you'll stand behind, a deprecation policy, and tests you'd bet on.

About

A 1.0 is a promise that you won't break people without warning. Most projects never make it, because the promise is scary. Getting there means deciding what's public, writing it down, deprecating the mess properly, and setting up the tests and CI that let you keep the promise. Do it for your own project or one you maintain, as long as it has at least some outside users. What counts is a 1.0 with a written compatibility policy. What doesn't count is renaming 0.9 to 1.0.

At a glance

Per requirement
50 XP
Completion bonus
600 XP
Requirements
7
Takes
One season
Skill level
Advanced (years of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Rare badges in Open Source & Community to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Write down exactly what the public API is and what isn't. List every function, flag, config key and file format you'll support. Everything else is internal and can change. Put it in the docs as a page called Stability or Public API. Take a screenshot of the page. Photo
  2. 2
    Deprecate at least one thing properly, with a warning, a docs note, a migration path and a removal date. The warning says what to use instead, and the docs say when it goes away. Ship it in a 0.x release before 1.0 so people actually see it. Take a screenshot of the warning in the running software and the docs note. Photo
  3. 3
    Put at least one test on every public function and fail CI if coverage drops. This isn't about 100 percent coverage, it's one test per public function that pins its contract, meaning the inputs, the outputs, and the error it throws. Record the coverage number and make CI fail when it goes down. Take a screenshot of the CI run with the coverage number. Photo
  4. 4
    Write a compatibility policy that says what counts as breaking, how long deprecations last, and which versions get fixes. One page is enough. Use semver, plus your answers to the gray areas, like whether a changed error message is breaking, or dropping a runtime version. Take a screenshot of the policy page. Photo
  5. 5
    Run a release candidate for at least two weeks with real users and fix what they find. Tag 1.0.0-rc.1, announce it, and ask for testing. Something will come up, so fix it and tag rc.2. Take a screenshot of the rc announcement and at least one issue filed against it. Photo
  6. 6
    Ship 1.0.0 with a migration guide and a changelog that names every breaking change since the last 0.x. The migration guide is a checklist: do this, then this. Credit everyone who tested the rc. Take a screenshot of the published 1.0.0 release. Photo
  7. 7
    A month after release, write down what you'd have cut from the public API. You'll know by then. One page covering what you regret promising, what nobody uses, and what you'll deprecate in 2.0. Take a screenshot of the note, committed or posted. Photo