From c0249525d7df64471900f93ceb23e63463c46dd0 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 14 Sep 2020 14:38:24 -0700 Subject: [PATCH] Release 0.49 Refs #880, #944, #945, #947, #948, #953, #958, #962, #963, #964, #965 --- README.md | 1 + docs/changelog.rst | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 38ea7f79..08e19d4b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Datasette is aimed at data journalists, museum curators, archivists, local gover ## News + * 14th September 2020: [Datasette 0.49](https://docs.datasette.io/en/stable/changelog.html#v0-49) - JSON API for writable canned queries, path parameters for custom pages. * 16th August 2020: [Datasette 0.48](https://docs.datasette.io/en/stable/changelog.html#v0-48) - Documentation now lives at [docs.datasette.io](https://docs.datasette.io/), improvements to the `extra_template_vars`, `extra_css_urls`, `extra_js_urls` and `extra_body_script` plugin hooks. * 11th August 2020: [Datasette 0.47](https://docs.datasette.io/en/stable/changelog.html#v0-47) - Datasette can now be installed using Homebrew! `brew install simonw/datasette/datasette`. Also new: `datasette install name-of-plugin` and `datasette uninstall name-of-plugin` commands, and `datasette --get '/-/versions.json'` to output the result of Datasette HTTP calls on the command-line. * 9th August 2020: [Datasette 0.46](https://docs.datasette.io/en/stable/changelog.html#v0-46) - security fix relating to CSRF protection for writable canned queries, a new logo, new debugging tools, improved file downloads and more. diff --git a/docs/changelog.rst b/docs/changelog.rst index 670cf558..3cd028e7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,22 +4,24 @@ Changelog ========= -.. _v0_49a1: +.. _v0_49: -0.49a1 (2020-09-13) -------------------- - -.. warning:: This is an **alpha** release. See :ref:`contributing_alpha_beta`. +0.49 (2020-09-14) +----------------- +- Writable canned queries now expose a JSON API, see :ref:`canned_queries_json_api`. (`#880 `__) +- New mechanism for defining page templates with custom path parameters - a template file called ``pages/about/{slug}.html`` will be used to render any requests to ``/about/something``. See :ref:`custom_pages_parameters`. (`#944 `__) - ``register_output_renderer()`` render functions can now return a ``Response``. (`#953 `__) - New ``--upgrade`` option for ``datasette install``. (`#945 `__) +- New ``datasette --pdb`` option. (`#962 `__) +- ``datasette --get`` exit code now reflects the internal HTTP status code. (`#947 `__) +- New ``raise_404()`` template function for returning 404 errors. (`#964 `__) - ``datasette publish heroku`` now deploys using Python 3.8.5 - Upgraded `CodeMirror `__ to 5.57.0. (`#948 `__) - Upgraded code style to Black 20.8b1. (`#958 `__) -- New ``datasette --pdb`` option. (`#962 `__) -- ``datasette --get`` exit code now reflects the internal HTTP status code. (`#947 `__) - Fixed bug where selected facets were not correctly persisted in hidden form fields on the table page. (`#963 `__) -- New mechanism for defining page templates with custom path parameters. (`#944 `__) +- Renamed the default error template from ``500.html`` to ``error.html``. +- Custom error pages are now documented, see :ref:`custom_pages_errors`. (`#965 `__) .. _v0_48: