The main focus of this release is a major upgrade to the register_output_renderer(datasette) plugin hook, which allows plugins to provide new output formats for Datasette such as datasette-atom and datasette-ics.
- Redesign of register_output_renderer(datasette) to provide more context to the render callback and support an optional
"can_render"
callback that controls if a suggested link to the output format is provided. (#581, #770) - Visually distinguish float and integer columns - useful for figuring out why order-by-column might be returning unexpected results. (#729)
- The Request object, which is passed to several plugin hooks, is now documented. (#706)
- New
metadata.json
option for setting a custom default page size for specific tables and views, see Setting a custom page size. (#751) - Canned queries can now be configured with a default URL fragment hash, useful when working with plugins such as datasette-vega, see Setting a default fragment. (#706)
- Fixed a bug in
datasette publish
when running on operating systems where the/tmp
directory lives in a different volume, using a backport of the Python 3.8shutil.copytree()
function. (#744) - Every plugin hook is now covered by the unit tests, and a new unit test checks that each plugin hook has at least one corresponding test. (#771, #773)