Skip to content

Commit 2c5eb8e

Browse files
committed
Draft changelog updates for next release
Refs #512, #1949, #2961, #2984, #2985, #2998, #3024, #3025, #3032, #3037, #3038, #3042, #3043, #3046, #3052
1 parent 07c5fd0 commit 2c5eb8e

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

‎docs/changelog.rst‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,63 @@ Changelog
99
Unreleased
1010
----------
1111

12+
Redesigned table, row and query pages, a new "Export data" dialog with TSV support, a column statistics feature, and Python 3.11 is now the minimum supported version.
13+
14+
Python 3.11 or higher
15+
~~~~~~~~~~~~~~~~~~~~~
16+
17+
- Datasette now requires Python 3.11 or higher. This allowed the removal of several compatibility shims. (:pr:`2998`)
18+
- Datasette is now tested on Python 3.11, 3.12, 3.13, 3.14, and 3.15.
19+
20+
Export data dialog and TSV
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
- Table, query and row pages replace the "This data as..." links and the "Advanced export" box with an **Export data** button. This opens a dialog listing every available format - TSV, CSV, JSON, JSON array, newline-delimited JSON, JSON object and any plugin formats - each with Copy, View, Download and Copy URL actions. Old ``#export`` links open the dialog. See :ref:`csv_export`. (:pr:`3037`)
24+
- New :ref:`TSV export <csv_export_tsv>`, for pasting into Excel and Google Sheets. TSV uses the same streaming code, options and URL parameters as CSV, with Excel-compatible quoting.
25+
- :ref:`register_output_renderer <plugin_register_output_renderer>` dictionaries can now include optional ``label`` and ``description`` keys, shown in the Export data dialog, plus ``is_binary`` and ``is_webpage`` flags that control which actions the dialog offers for that format.
26+
27+
Column statistics
28+
~~~~~~~~~~~~~~~~~
29+
30+
- The column action menu has a new **Column statistics** item, available to actors with the ``execute-sql`` permission. It opens a dialog showing counts of rows, nulls and distinct values, a breakdown of storage types, numeric statistics with a histogram, box plot and percentiles, text length statistics, a by-year or by-month chart for date columns, and the most common values. Each statistic includes the SQL query used to calculate it. (:pr:`3038`)
31+
- Column statistics are also available for the results of arbitrary SQL queries and stored queries.
32+
33+
Table page redesign
34+
~~~~~~~~~~~~~~~~~~~
35+
36+
- A refreshed design for tables on the table, row and query pages, with right-aligned numbers and shadows indicating horizontally scrollable content. (:pr:`3032`)
37+
- Values taller than three lines are clamped to a preview with an "expand" button. Column headers offer an "expand all" toggle.
38+
- A pin in the primary key column header freezes the header row and primary key columns while scrolling. On query pages it freezes just the header row. The choice is remembered.
39+
- Tables that span more than one page now show a pagination bar, for example "Rows 101-150 of 1,761", with "Back to first page" and "Next page" buttons. This uses a new ``?_count=before`` option for the :ref:`count endpoint <TableCountView>`, which counts the rows before a ``?_next=`` cursor. (:pr:`3043`)
40+
- The ``CREATE TABLE`` or ``CREATE VIEW`` statement is now collapsed into a "Table schema" or "View definition" disclosure at the bottom of the page.
41+
- Facet values now show a faint bar indicating their share of the rows. Suggested facets and facet results have been restyled.
42+
- New **Clear filters** button next to "Apply filters", shown when column filters are applied.
43+
44+
Row page redesign
45+
~~~~~~~~~~~~~~~~~
46+
1247
- The row page now shows the row as a list with one field per line, each with a button to copy its value, in place of a single-row table. Long values are clamped with a toggle to show them in full, and the tables that reference the row are listed below it. (:pr:`3052`)
1348
- **Backwards incompatible:** the row page now includes a new ``_row_fields.html`` template instead of ``_table.html``. A custom ``_table.html`` template that applies to every table no longer changes the row page - provide a ``_row_fields.html`` template instead. Templates for a specific table, ``_table-mydatabase-mytable.html`` and ``_table-row-mydatabase-mytable.html``, still apply to the row page. See :ref:`customization_custom_templates`.
1449
- The row page no longer contains a ``table.rows-and-columns`` element, so plugin JavaScript that looks for that table on row pages will not find it. The ``.above-table-panel`` element plugins can attach to is still present.
1550

51+
Other changes
52+
~~~~~~~~~~~~~
53+
54+
- App, database, table, row and column action menus have been redesigned to share positioning, dismissal and keyboard navigation behavior. See the new `/-/patterns/menus <https://latest.datasette.io/-/patterns/menus>`__ page. (:pr:`2984`)
55+
- The :ref:`/-/jump <JumpView>` endpoint now supports ``?type=`` filtering, for example ``?type=table&type=database``. Items now include the URL arguments used to build their URL as fields, hidden tables are excluded, and stored queries use their title as their display name. (:issue:`3024`, :pr:`3025`)
56+
- The internal ``catalog_tables`` table has a new ``hidden`` boolean column, populated for tables that Datasette treats as hidden from default table lists.
57+
- Error responses now use the :ref:`JSON error format <json_api_errors>` when the request sends an ``Accept: application/json`` or ``Content-Type: application/json`` header, not just for URLs ending in ``.json``. Thanks, `kokokoXUY <https://github.com/kokokoXUY>`__. (:issue:`1949`, :pr:`2961`)
58+
- HTML table pages no longer send a ``rel="next"`` HTTP ``Link`` header. (:issue:`3046`)
59+
- ``edit-tools.js``, ``export-dialog.js`` and ``column-stats.js`` are now loaded on demand, the first time they are needed, rather than on every page. The table page now only includes the editing tools loader if the actor can insert, alter, update or delete, indicated by a new ``row_mutation_ui`` template context variable. (:pr:`3042`)
60+
61+
Bug fixes
62+
~~~~~~~~~
63+
64+
- ``execute-write`` operations now work against tables with FTS index triggers, such as those created by sqlite-utils ``enable_fts(create_triggers=True)``. The SQL analysis table now shows why an operation was rejected.
65+
- The ``about`` and ``about_url`` metadata are now displayed even if no ``source`` or ``license`` is set. (:issue:`512`, :pr:`2985`)
66+
- The query page now shows the "returning more than N rows" message when results are truncated.
67+
- A stored query that references a missing ``:_actor_X`` key now raises a ``KeyError`` naming that key.
68+
1669
.. _v1_0_a41:
1770

1871
1.0a41 (2026-09-24)

0 commit comments

Comments
 (0)