Versions and compatibility
The three version numbers in play, the ranges engines.songstress takes, and what may change between versions.
Three numbers
manifestVersionis the manifest's format:1. A change an older reader would misread makes a new format, with a new schema at a new address;1stays readable.versionis your extension's own, a semantic version like1.4.0or2.0.0-beta.1. A prerelease comes before its release, and build metadata is ignored. A release is tagged with it.engines.songstressis the range of extension API versions your extension runs on. The API's version is thesongstresspackage's (API_VERSION), because the server, the desktop app and the phone apps share no release number.
Ranges
| Range | Takes |
|---|---|
^1.2.0 | From 1.2.0 up to, not including, 2.0.0 and its prereleases. For 0.x, ^0.2.0 stops before 0.3.0, and ^0.0.3 before 0.0.4 |
~1.2.0 | From 1.2.0 up to, not including, 1.3.0 and its prereleases |
>=1.2.0 | 1.2.0 and everything after it |
>=1.2.0 <2.0.0 | From 1.2.0 up to, not including, 2.0.0. This lets in 2.0.0's own prereleases: write <2.0.0-0 to keep them out |
1.2.0 | That version alone |
There is no *, no x and no ||, and exactly one space between the two halves of the fourth form. A version is
inside a range whenever its precedence is, prereleases included, so a host on 1.3.0-beta.1 still runs an extension
for ^1.2.0.
When to raise it
A host runs an extension whose engines.songstress takes its API version, and refuses any other
(ENGINE_UNSUPPORTED). So ask for the version that brought what you use:
| Since | What came |
|---|---|
| 0.1.1 | signIn |
| 0.1.3 | themes |
| 0.1.4 | Status items, when conditions, a playlist panel, a setting's section |
| 0.1.6 | artistInfo providers |
| 0.1.7 | A sign-in with scope user |
| 0.1.8 | A listing may have play and download providers |
^0.1.0 runs on every 0.1 host. A manifest with a status item asks for ^0.1.4.
What may change
- The API follows semantic versioning. While it is 0.x, a minor version (0.1 to 0.2) may break, and a patch version
only adds, which is what
^0.1.0assumes. From 1.0.0 on, only a major version breaks. - The SDK's public surface is frozen in its record of the API: a change to it that doesn't come with a new version fails the SDK's own tests. The API reference lists what that record holds, with each type's fields and docs read from the SDK's source.
- Additions are quiet: a new optional manifest field, hook, permission, component or error code comes with a new minor version, and an older host refuses a manifest that uses it rather than misread it.
- An error code is never renamed and never changes its meaning.
Updates reaching servers
An update installed from the official list waits a day on the index before a server takes it by itself. Updates from anywhere else wait for an admin. An update that asks for more permissions always waits for an admin. See Updates.