We are using http://semver.org/ for versioning with major, minor and patch versions.
We are giving the following guarantees between versions:
- There are no guarantees about compatiblity of APIs or datasets
- Breaking changes will be noted as
BREAKINGin the changelog
We may introduce forward-compatible changes: query parameters and response properties may be added in responses, but existing properties may not be changed or removed. One exception to this is the addition of new turn types, which we see as forward-compatible changes.
- Forward-compatible HTTP API
- Forward-compatible C++ library API
- Forward-compatible node-osrm API
- No compatiblity between OSRM datasets (needs new processing)
- No change of query parameters or response formats
- Compatible HTTP API
- Compatible C++ library API
- Compatible node-osrm API
- Compatible OSRM datasets
- The
masterbranch is for the bleeding edge development - We create and maintain release branches
x.yto control the release flow - We create the release branch once we create release branches once we want to release the first RC
- RCs go in the release branch, commits needs to be cherry-picked from master
- No minor or major version will be released without a code-equal release candidates
- For quality assurance, release candidates need to be staged beforing tagging a final release
- Patch versions may be released without a release candidate
- We may backport fixes to older versions and release them as patch versions
- Check out the appropriate release branch
x.y - Make sure
CHANGELOG.mdis up to date. - Make sure the
package.jsonon branchx.yhas been committed. - Make sure all tests are passing (e.g. Github Actions CI gives you a ✔️)
- Use an annotated tag to mark the release:
git tag vx.y.z -aBody of the tag description should be the changelog entries. Commit should be one in which thepackage.jsonversion matches the version you want to release. - Use
npm run docsto generate the API documentation. Copybuild/docs/*tohttps://github.com/Project-OSRM/project-osrm.github.comin thedocs/vN.N.N/apidirectory - Push tags and commits:
git push; git push --tags - On https://github.com/Project-OSRM/osrm-backend/releases press
Draft a new release, write the release tagvx.y.zin theTag versionfield, write the changelog entries in theDescribe this releasefield and pressPublish release. Note that Github Actions CI deployments will create a release when publishing node binaries, so the release may already exist. In which case the description should be updated with the changelog entries. - If not a release-candidate: Write a mailing-list post to osrm-talk@openstreetmap.org to announce the release
- Wait until the Github Actions build has been completed and check if the node binaries were published by doing:
rm -rf node_modules && npm installlocally. - For final releases run
npm publishornpm publish --tag nextfor release candidates. - Bump version in
package.jsonto{MAJOR}.{MINOR+1}.0-unreleasedon themasterbranch after the release.