Skip to content

Commit

Permalink
Stop bundling Mopidy.js
Browse files Browse the repository at this point in the history
Fixes #1460
  • Loading branch information
jodal committed Oct 3, 2018
1 parent aeb2650 commit 1e0d7c6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2,942 deletions.
25 changes: 3 additions & 22 deletions docs/api/js.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,9 @@ instead of figuring out how to communicate with Mopidy.
Getting the library for browser use
===================================

Regular and minified versions of Mopidy.js, ready for use, is installed
together with Mopidy. When the HTTP extension is enabled, the files are
available at:

- http://localhost:6680/mopidy/mopidy.js
- http://localhost:6680/mopidy/mopidy.min.js

You may need to adjust hostname and port for your local setup.

Thus, if you use Mopidy to host your web client, like described in
:ref:`static-web-client`, you can load the latest version of Mopidy.js by
adding the following script tag to your HTML file:

.. code-block:: html

<script type="text/javascript" src="/mopidy/mopidy.min.js"></script>

If you don't use Mopidy to host your web client, you can find the JS files in
the Git repo at:

- ``mopidy/http/data/mopidy.js``
- ``mopidy/http/data/mopidy.min.js``
Regular and minified versions of Mopidy.js, ready for use, is available from
the project's
`GitHub release page <https://github.com/mopidy/mopidy.js/releases>`_.


Getting the library for Node.js or Browserify use
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Extension support
HTTP frontend
-------------

- Stop bundling Mopidy.js and serving it at ``/mopidy/mopidy.js`` and
``/mopidy/mopidy.min.js``. All Mopidy web clients must use Mopidy.js from npm
or vendor their own copy of the library.
(Fixes: :issue:`1460`, PR: :issue:`1708`)

- Remove support for serving arbitrary files over HTTP through the use of
:confval:`http/static_dir`, which has been deprecated since 1.0. (Fixes:
:issue:`1463`, PR: :issue:`1706`)
Expand Down
Loading

0 comments on commit 1e0d7c6

Please sign in to comment.