RxPlayer Releases
Types of releases
The RxPlayer has several types of releases:
-
Official releases, which are the main releases published on
npmand whose releases notes are published on GitHub.Those releases have been thoroughly tested, and in most cases even ran in production for some time with no discovered issue.
Official releases are named following semantic versionning under a very simple
MAJOR.MINOR.PATCHname.Examples:
3.30.1 1.2.1 4.0.0When published on
npm, we do not specify any specific tag, like we do for other types of releases. This lead official releases to be branded under the defaultlatesttag bynpm. -
devreleases, which are pre-releases made with the latest features, bug fixes and improvements. Those can be made very quickly and as such are ideal when wanting to perform tests before including the corresponding developments in an official release.However, we have less stability guarantees than for official releases.
devreleases are also named following semantic versionning beginning with the version of the next official releases it could be released as (for example, if it only include patches on top of the previous official release, only thePATCHpart of that release should be incremented).Then we add to it the
-dev.string, followed by the date in a YYYYMMDD format (e.g.20230425for April 25, 2023) followed by a number on two digits, starting at00, which is incremented each time adevrelease is made that day.Examples:
// Patches on top of an official `3.30.1` release, done the 2023-04-25 3.30.2-dev.2023042500 // 2nd release adding another patch on top of the previous one the same day 3.30.2-dev.2023042501 // New features added on top of a `3.35.2` release 3.36.0-dev.2023060100When published on
npm, they have thedevtag. -
alpha,beta,rcreleases. Those are pre-releases specifically made before a very important official release (such as a new major version).alphareleases are generally only communicated to Canal+'s applications developers and have an API that may change completely from one release to another.betareleases generally have a much more stable API and is used to find out the last bugs and friction points for applications. Those are generally also documented through release notes on GitHub.rc(for "release candidate"): are releases that may become the corresponding official release if no issue is detected in a sufficiently long time. Like forbetareleases, those are documented through release notes on GitHub.All those kinds of releases are named following semantic versionning of the final official release, followed by
-alpha,-betaor-rcrespectively for analpha,betaandrcrelease, then followed by a dot (.) and then by a number starting at0then incrementing at each new release of that type.Examples:
// first alpha release for a future v5.0.0 v5.0.0-alpha.0 // Third alpha release for a future v5.0.0 v5.0.0-alpha.2 // Second beta release for a future v5.0.0 v5.0.0-beta.1 // First rc release for a future v5.0.0 v5.0.0-rc.1When published on
npm, they all have thenexttag. -
canalreleases are similar todevreleases, with added work-arounds and features that are intended for Canal+ internal usage only. Either because they work-around very specific Canal+ bugs (for example, known specific badly-packaged contents) or because we're currently testing features we're not sure about adding to a future release yet (such as for features which are "risky" in terms of stability and compatibility).They are created both when a project at Canal+ (or one of its partners) demands it, and after each official releases.
They are named exactly the same way than
devreleases, excepted with-canalinstead of-devin their name.When published on
npm, they have thecanaltag.
To publish an official release
Before publishing an official RxPlayer releases, a list of steps should be performed by its maintainers.
First, checkout the branch that will be the base of the next release: generally it is
either stable (for patch releases) or dev (for minor and major versions).
Then, the following steps are mostly automatized by the releases:official script, which
may be run by calling npm run releases:official.