.. _changelog: ========= Changelog ========= .. _v1_0_a3: 1.0a3 (2023-08-09) ------------------ This alpha release previews the updated design for Datasette's default JSON API. Smaller changes ~~~~~~~~~~~~~~~ - Datasette documentation now shows YAML examples for :ref:`metadata` by default, with a tab interface for switching to JSON. (:issue:`1153`) - :ref:`plugin_register_output_renderer` plugins now have access to ``error`` and ``truncated`` arguments, allowing them to display error messages and take into account truncated results. (:issue:`2130`) - ``render_cell()`` plugin hook now also supports an optional ``request`` argument. (:issue:`2007`) - New ``Justfile`` to support development workflows for Datasette using `Just `__. - ``datasette.render_template()`` can now accepts a ``datasette.views.Context`` subclass as an alternative to a dictionary. (:issue:`2127`) - ``datasette install -e path`` option for editable installations, useful while developing plugins. (:issue:`2106`) - When started with the ``--cors`` option Datasette now serves an ``Access-Control-Max-Age: 3600`` header, ensuring CORS OPTIONS requests are repeated no more than once an hour. (:issue:`2079`) - Fixed a bug where the ``_internal`` database could display ``None`` instead of ``null`` for in-memory databases. (:issue:`1970`) .. _v0_64_2: 0.64.2 (2023-03-08) ------------------- - Fixed a bug with ``datasette publish cloudrun`` where deploys all used the same Docker image tag. This was mostly inconsequential as the service is deployed as soon as the image has been pushed to the registry, but could result in the incorrect image being deployed if two different deploys for two separate services ran at exactly the same time. (:issue:`2036`) .. _v0_64_1: 0.64.1 (2023-01-11) ------------------- - Documentation now links to a current source of information for installing Python 3. (:issue:`1987`) - Incorrectly calling the Datasette constructor using ``Datasette("path/to/data.db")`` instead of ``Datasette(["path/to/data.db"])`` now returns a useful error message. (:issue:`1985`) .. _v0_64: 0.64 (2023-01-09) ----------------- - Datasette now **strongly recommends against allowing arbitrary SQL queries if you are using SpatiaLite**. SpatiaLite includes SQL functions that could cause the Datasette server to crash. See :ref:`spatialite` for more details. - New :ref:`setting_default_allow_sql` setting, providing an easier way to disable all arbitrary SQL execution by end users: ``datasette --setting default_allow_sql off``. See also :ref:`authentication_permissions_execute_sql`. (:issue:`1409`) - `Building a location to time zone API with SpatiaLite `__ is a new Datasette tutorial showing how to safely use SpatiaLite to create a location to time zone API. - New documentation about :ref:`how to debug problems loading SQLite extensions `. The error message shown when an extension cannot be loaded has also been improved. (:issue:`1979`) - Fixed an accessibility issue: the ``