Skip to content

Commit 1e0d7c6

Browse files
committed
Stop bundling Mopidy.js
Fixes #1460
1 parent aeb2650 commit 1e0d7c6

File tree

5 files changed

+10
-2942
lines changed

5 files changed

+10
-2942
lines changed

docs/api/js.rst

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,9 @@ instead of figuring out how to communicate with Mopidy.
1212
Getting the library for browser use
1313
===================================
1414

15-
Regular and minified versions of Mopidy.js, ready for use, is installed
16-
together with Mopidy. When the HTTP extension is enabled, the files are
17-
available at:
18-
19-
- http://localhost:6680/mopidy/mopidy.js
20-
- http://localhost:6680/mopidy/mopidy.min.js
21-
22-
You may need to adjust hostname and port for your local setup.
23-
24-
Thus, if you use Mopidy to host your web client, like described in
25-
:ref:`static-web-client`, you can load the latest version of Mopidy.js by
26-
adding the following script tag to your HTML file:
27-
28-
.. code-block:: html
29-
30-
<script type="text/javascript" src="/mopidy/mopidy.min.js"></script>
31-
32-
If you don't use Mopidy to host your web client, you can find the JS files in
33-
the Git repo at:
34-
35-
- ``mopidy/http/data/mopidy.js``
36-
- ``mopidy/http/data/mopidy.min.js``
15+
Regular and minified versions of Mopidy.js, ready for use, is available from
16+
the project's
17+
`GitHub release page <https://github.com/mopidy/mopidy.js/releases>`_.
3718

3819

3920
Getting the library for Node.js or Browserify use

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Extension support
3838
HTTP frontend
3939
-------------
4040

41+
- Stop bundling Mopidy.js and serving it at ``/mopidy/mopidy.js`` and
42+
``/mopidy/mopidy.min.js``. All Mopidy web clients must use Mopidy.js from npm
43+
or vendor their own copy of the library.
44+
(Fixes: :issue:`1460`, PR: :issue:`1708`)
45+
4146
- Remove support for serving arbitrary files over HTTP through the use of
4247
:confval:`http/static_dir`, which has been deprecated since 1.0. (Fixes:
4348
:issue:`1463`, PR: :issue:`1706`)

0 commit comments

Comments
 (0)