Releases: mopidy/mopidy.js
v1.3.0
v1.2.1
v1.2.0
v1.1.1
v1.1.0
v1.0.1
v1.0.0
Major release with backward-incompatible changes.
-
The prebuilt files at the GitHub release page now include a source map instead of an uncompressed version.
-
Backwards incompatible: The
Mopidy
class can no longer be instantiated without thenew
keyword.To upgrade existing code:
// Change from this: const mopidy = Mopidy(...); // To this: const mopidy = new Mopidy(...);
-
Backwards incompatible: The API methods no longer support two different calling conventions. (Fixes: #10)
To upgrade code using
by-position-or-by-name
, simply remove
callingConvention
from the settings object:// Change from this: const mopidy = new Mopidy({ callingConvention: "by-position-or-by-name" }); // To this: const mopidy = new Mopidy();
To upgrade code using the long deprecated, but still default, calling
conventionby-position-only
multiple steps are required.-
The first step is to remove
callingConvention
from the settings object:// Change from this: const mopidy = new Mopidy({ callingConvention: "by-position-only" }); // To this: const mopidy = new Mopidy();
-
The second step is to update all API method calls to explicitly use positional arguments:
// Change from this: mopidy.tracklist.setRepeat(true); // To this: mopidy.tracklist.setRepeat([true]);
At this point, the application should work again.
-
The final, and optional step, is to change API method calls to using objects instead of arrays where that makes the code clearer:
// Optionally change from this: mopidy.library.search(["abba", null, true]); // To this: mopidy.library.search({ query: "abba", exact: true });
-
v0.5.0
v0.4.1
v0.4.0
- Add support for method calls with by-name arguments. The old calling convention, "by-position-only", is still the default, but this will change in the future. A warning is printed to the console if you don't explicitly select a calling convention. See the docs for details.