Skip to content

Releases: mopidy/mopidy.js

v1.3.0

06 May 14:37
v1.3.0
Compare
Choose a tag to compare
  • Revert to using Mopidy as the name of the top-level namespace in the TypeScript definitions. (Fixes: #40, PR: #45)

v1.2.1

21 Nov 00:44
Compare
Choose a tag to compare
  • Include TypeScript definitions in npm package.

v1.2.0

21 Nov 00:43
Compare
Choose a tag to compare
  • Add TypeScript definitions. (Fixes: #27, #33)

v1.1.1

10 Sep 07:46
Compare
Choose a tag to compare
  • Replace setImmediate(fn) usage with setTimeout(fn, 0) as setImmediate() is non-standard and not supported in all browsers. (Fixes: #30)

v1.1.0

02 Apr 06:04
Compare
Choose a tag to compare
  • More sensible event ordering: state:offline is now emitted before reconnectionPending. (PR #24)

  • Upgrade all development and production dependencies.

v1.0.1

02 Apr 06:07
Compare
Choose a tag to compare
  • Fix TypeError on failure to get the API spec. (PR: #19)

v1.0.0

01 Dec 22:05
Compare
Choose a tag to compare

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 the new 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
    convention by-position-only multiple steps are required.

    1. 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();
    2. 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.

    3. 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

03 Oct 21:26
Compare
Choose a tag to compare
  • Reexport When.js library as Mopidy.when, to make it easily available to users of Mopidy.js. (Fixes: #1)
  • Default to wss:// as the WebSocket protocol if the page is hosted on https://. This has no effect if the webSocketUrl setting is specified. (Pull request: #2)
  • Upgrade dependencies.

v0.4.1

11 Sep 19:45
Compare
Choose a tag to compare
  • Update links to point to new independent Mopidy.js GitHub project.

v0.4.0

11 Sep 19:42
Compare
Choose a tag to compare
  • 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.