From cd9182a5511d2a2433d519784c77c5711d1fd58a Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 6 Feb 2025 11:12:34 -0800 Subject: [PATCH] Release 1.0a17 Refs #1690, #1943, #2422, #2424, #2441, #2454, #2455, #2458, #2460, #2465 --- datasette/version.py | 2 +- docs/changelog.rst | 18 ++++++++++++++++++ docs/plugin_hooks.rst | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/datasette/version.py b/datasette/version.py index c1a7c8bd..b2240bf5 100644 --- a/datasette/version.py +++ b/datasette/version.py @@ -1,2 +1,2 @@ -__version__ = "1.0a16" +__version__ = "1.0a17" __version_info__ = tuple(__version__.split(".")) diff --git a/docs/changelog.rst b/docs/changelog.rst index 096642d7..4b641120 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,24 @@ Changelog ========= +.. _v1_0_a17: + +1.0a17 (2025-02-06) +------------------- + +- ``DATASETTE_SSL_KEYFILE`` and ``DATASETTE_SSL_CERTFILE`` environment variables as alternatives to ``--ssl-keyfile`` and ``--ssl-certfile``. Thanks, Alex Garcia. (:issue:`2422`) +- ``SQLITE_EXTENSIONS`` environment variable has been renamed to ``DATASETTE_LOAD_EXTENSION``. (:issue:`2424`) +- ``datasette serve`` environment variables are now :ref:`documented here `. +- The :ref:`plugin_hook_register_magic_parameters` plugin hook can now register async functions. (:issue:`2441`) +- Datasette is now tested against Python 3.13. +- Breadcrumbs on database and table pages now include a consistent self-link for resetting query string parameters. (:issue:`2454`) +- Fixed issue where Datasette could crash on ``metadata.json`` with nested values. (:issue:`2455`) +- New internal methods ``datasette.set_actor_cookie()`` and ``datasette.delete_actor_cookie()``, :ref:`described here `. (:issue:`1690`) +- ``/-/permissions`` page now shows a list of all permissions registered by plugins. (:issue:`1943`) +- If a table has a single unique text column Datasette now detects that as the foreign key label for that table. (:issue:`2458`) +- The ``/-/permissions`` page now includes options for filtering or exclude permission checks recorded against the current user. (:issue:`2460`) +- Fixed a bug where replacing a database with a new one with the same name did not pick up the new database correctly. (:issue:`2465`) + .. _v0_65_1: 0.65.1 (2024-11-28) diff --git a/docs/plugin_hooks.rst b/docs/plugin_hooks.rst index 65189976..0d25fbfc 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -1315,7 +1315,7 @@ Magic parameters all take this format: ``_prefix_rest_of_parameter``. The prefix To register a new function, return it as a tuple of ``(string prefix, function)`` from this hook. The function you register should take two arguments: ``key`` and ``request``, where ``key`` is the ``rest_of_parameter`` portion of the parameter and ``request`` is the current :ref:`internals_request`. -This example registers two new magic parameters: ``:_request_http_version`` returning the HTTP version of the current request, and ``:_uuid_new`` which returns a new UUID. It also registers an `:_asynclookup_key` parameter, demonstrating that these functions can be asynchronous: +This example registers two new magic parameters: ``:_request_http_version`` returning the HTTP version of the current request, and ``:_uuid_new`` which returns a new UUID. It also registers an ``:_asynclookup_key`` parameter, demonstrating that these functions can be asynchronous: .. code-block:: python