/-/plugins.json is now an array of objects again (#2843)

Reverts the object envelope introduced in 1.0a36 for this endpoint -
it once again returns a top-level JSON array of plugin objects.

Closes #2842


Claude-Session: https://claude.ai/code/session_012TYc1NTBK4zEjabB3u2zqu

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Simon Willison 2026-07-13 21:19:04 -07:00 committed by GitHub
commit ccace40e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 25 deletions

View file

@ -80,18 +80,15 @@ Shows a list of currently installed plugins and their versions. `Plugins example
.. code-block:: json
{
"ok": true,
"plugins": [
{
"name": "datasette_cluster_map",
"static": true,
"templates": false,
"version": "0.10",
"hooks": ["extra_css_urls", "extra_js_urls", "extra_body_script"]
}
]
}
[
{
"name": "datasette_cluster_map",
"static": true,
"templates": false,
"version": "0.10",
"hooks": ["extra_css_urls", "extra_js_urls", "extra_body_script"]
}
]
Add ``?all=1`` to include details of the default plugins baked into Datasette.