{"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a0", "id": 27703093, "node_id": "MDc6UmVsZWFzZTI3NzAzMDkz", "tag_name": "0.45a0", "target_commitish": "master", "name": "0.45a0", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-06-18T20:58:09Z", "published_at": "2020-06-18T21:14:00Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a1", "id": 27707079, "node_id": "MDc6UmVsZWFzZTI3NzA3MDc5", "tag_name": "0.45a1", "target_commitish": "master", "name": "0.45a1", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-06-18T23:52:16Z", "published_at": "2020-06-19T00:02:29Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a2", "id": 27856779, "node_id": "MDc6UmVsZWFzZTI3ODU2Nzc5", "tag_name": "0.45a2", "target_commitish": "master", "name": "0.45a2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-06-24T04:17:30Z", "published_at": "2020-06-24T04:32:12Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a3", "id": 27994774, "node_id": "MDc6UmVsZWFzZTI3OTk0Nzc0", "tag_name": "0.45a3", "target_commitish": "master", "name": "0.45a3", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-06-28T03:22:49Z", "published_at": "2020-06-28T03:27:12Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a4", "id": 28008549, "node_id": "MDc6UmVsZWFzZTI4MDA4NTQ5", "tag_name": "0.45a4", "target_commitish": "master", "name": "0.45a4", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-06-29T02:31:16Z", "published_at": "2020-06-29T02:33:02Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.45a5", "id": 28097766, "node_id": "MDc6UmVsZWFzZTI4MDk3NzY2", "tag_name": "0.45a5", "target_commitish": "master", "name": "0.45a5", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-07-01T04:25:35Z", "published_at": "2020-07-01T04:27:08Z", "body": "", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.16", "id": 10542772, "node_id": "MDc6UmVsZWFzZTEwNTQyNzcy", "tag_name": "0.16", "target_commitish": "main", "name": "Datasette 0.16: sort on mobile, better error handling", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2018-04-13T18:28:55Z", "published_at": "2018-04-13T21:10:53Z", "body": " - Better mechanism for handling errors; 404s for missing table/database\r\n \r\n New error mechanism closes [#193](https://github.com/simonw/datasette/issues/193)\r\n \r\n 404s for missing tables/databases closes [#184](https://github.com/simonw/datasette/issues/184)\r\n\r\n - long\\_description in markdown for the new PyPI\r\n\r\n - Hide Spatialite system tables. \\[Russ Garrett\\]\r\n\r\n - Allow `explain select` / `explain query plan select` [#201](https://github.com/simonw/datasette/issues/201)\r\n\r\n - Datasette inspect now finds primary\\_keys [#195](https://github.com/simonw/datasette/issues/195)\r\n\r\n - Ability to sort using form fields (for mobile portrait mode) [#199](https://github.com/simonw/datasette/issues/199)\r\n \r\n We now display sort options as a select box plus a descending checkbox, which means you can apply sort orders even in portrait mode on a mobile phone where the column headers are hidden.", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.13", "id": 8652546, "node_id": "MDc6UmVsZWFzZTg2NTI1NDY=", "tag_name": "0.13", "target_commitish": "main", "name": "Datasette 0.13: foreign key, search and filters", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2017-11-25T03:33:39Z", "published_at": "2017-11-25T03:44:46Z", "body": "# 0.13 (2017-11-24)\r\n\r\n - Search now applies to current filters.\r\n \r\n Combined search into the same form as filters.\r\n \r\n Closes [\\#133](https://github.com/simonw/datasette/issues/133)\r\n\r\n - Much tidier design for table view header.\r\n \r\n Closes [\\#147](https://github.com/simonw/datasette/issues/147)\r\n\r\n - Added `?column__not=blah` filter.\r\n \r\n Closes [\\#148](https://github.c)\r\n\r\n - Row page now resolves foreign keys.\r\n \r\n Closes [\\#132]()\r\n\r\n - Further tweaks to select/input filter styling.\r\n \r\n Refs [\\#86]() - thanks for the help, @natbat\\!\r\n\r\n - Show linked foreign key in table cells.\r\n\r\n - Added UI for editing table filters.\r\n \r\n Refs [\\#86]()\r\n\r\n - Hide FTS-created tables on index pages.\r\n \r\n Closes [\\#129]()\r\n\r\n - Add publish to heroku support \\[Jacob Kaplan-Moss\\]\r\n \r\n `datasette publish heroku mydb.db`\r\n \r\n Pull request [\\#104]()\r\n\r\n - Initial implementation of `?_group_count=column`.\r\n \r\n URL shortcut for counting rows grouped by one or more columns.\r\n \r\n `?_group_count=column1&_group_count=column2` works as well.\r\n \r\n SQL generated looks like this:\r\n \r\n select \"qSpecies\", count(*) as \"count\"\r\n from Street_Tree_List\r\n group by \"qSpecies\"\r\n order by \"count\" desc limit 100\r\n \r\n Or for two columns like this:\r\n \r\n select \"qSpecies\", \"qSiteInfo\", count(*) as \"count\"\r\n from Street_Tree_List\r\n group by \"qSpecies\", \"qSiteInfo\"\r\n order by \"count\" desc limit 100\r\n \r\n Refs [\\#44]()\r\n\r\n - Added `--build=master` option to datasette publish and package.\r\n \r\n The `datasette publish` and `datasette package` commands both now\r\n accept an optional `--build` argument. If provided, this can be used\r\n to specify a branch published to GitHub that should be built into\r\n the container.\r\n \r\n This makes it easier to test code that has not yet been officially\r\n released to PyPI, e.g.:\r\n \r\n datasette publish now mydb.db --branch=master\r\n\r\n - Implemented `?_search=XXX` + UI if a FTS table is detected.\r\n \r\n Closes [\\#131]()\r\n\r\n - Added `datasette --version` support.\r\n\r\n - Table views now show expanded foreign key references, if possible.\r\n \r\n If a table has foreign key columns, and those foreign key tables\r\n have `label_columns`, the TableView will now query those other\r\n tables for the corresponding values and display those values as\r\n links in the corresponding table cells.\r\n \r\n label\\_columns are currently detected by the `inspect()` function,\r\n which looks for any table that has just two columns - an ID column\r\n and one other - and sets the `label_column` to be that second non-ID\r\n column.\r\n\r\n - Don't prevent tabbing to \"Run SQL\" button ([\\#117]()) \\[Robert\r\n Gieseke\\]\r\n \r\n See comment in [\\#115]()\r\n\r\n - Add keyboard shortcut to execute SQL query ([\\#115]()) \\[Robert\r\n Gieseke\\]\r\n\r\n - Allow `--load-extension` to be set via environment variable.\r\n\r\n - Add support for `?field__isnull=1` ([\\#107]()) \\[Ray N\\]\r\n\r\n - Add spatialite, switch to debian and local build ([\\#114]()) \\[Ariel\r\n N\u00fa\u00f1ez\\]\r\n\r\n - Added `--load-extension` argument to datasette serve.\r\n \r\n Allows loading of SQLite extensions. Refs [\\#110]().\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.60", "id": 57068381, "node_id": "RE_kwDOBm6k_c4DZstd", "tag_name": "0.60", "target_commitish": "main", "name": "0.60", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2022-01-14T01:36:51Z", "published_at": "2022-01-14T01:41:28Z", "body": "### Plugins and internals\r\n\r\n- New plugin hook: [filters_from_request(request, database, table, datasette)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-filters-from-request), which runs on the table page and can be used to support new custom query string parameters that modify the SQL query. ([#473](https://github.com/simonw/datasette/issues/473))\r\n- Added two additional methods for writing to the database: [await db.execute_write_script(sql, block=True)](https://docs.datasette.io/en/stable/internals.html#database-execute-write-script) and [await db.execute_write_many(sql, params_seq, block=True)](https://docs.datasette.io/en/stable/internals.html#database-execute-write-many). ([#1570](https://github.com/simonw/datasette/issues/1570))\r\n- The [db.execute_write()](https://docs.datasette.io/en/stable/internals.html#database-execute-write) internal method now defaults to blocking until the write operation has completed. Previously it defaulted to queuing the write and then continuing to run code while the write was in the queue. ([#1579](https://github.com/simonw/datasette/issues/1579))\r\n- Database write connections now execute the [prepare_connection(conn, database, datasette)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-prepare-connection) plugin hook. ([#1564](https://github.com/simonw/datasette/issues/1564))\r\n- The `Datasette()` constructor no longer requires the `files=` argument, and is now documented at [Datasette class](https://docs.datasette.io/en/stable/internals.html#internals-datasette). ([#1563](https://github.com/simonw/datasette/issues/1563))\r\n- The tracing feature now traces write queries, not just read queries. ([#1568](https://github.com/simonw/datasette/issues/1568))\r\n- The query string variables exposed by `request.args` will now include blank strings for arguments such as `foo` in `?foo=&bar=1` rather than ignoring those parameters entirely. ([#1551](https://github.com/simonw/datasette/issues/1551))\r\n\r\n### Faceting\r\n\r\n- The number of unique values in a facet is now always displayed. Previously it was only displayed if the user specified `?_facet_size=max`. ([#1556](https://github.com/simonw/datasette/issues/1556))\r\n- Facets of type `date` or `array` can now be configured in `metadata.json`, see [Facets in metadata.json](https://docs.datasette.io/en/stable/facets.html#facets-metadata). Thanks, David Larlet. ([#1552](https://github.com/simonw/datasette/issues/1552))\r\n- New `?_nosuggest=1` parameter for table views, which disables facet suggestion. ([#1557](https://github.com/simonw/datasette/issues/1557))\r\n- Fixed bug where `?_facet_array=tags&_facet=tags` would only display one of the two selected facets. ([#625](https://github.com/simonw/datasette/issues/625))\r\n\r\n### Other small fixes\r\n\r\n- Made several performance improvements to the database schema introspection code that runs when Datasette first starts up. ([#1555](https://github.com/simonw/datasette/issues/1555))\r\n- Label columns detected for foreign keys are now case-insensitive, so `Name` or `TITLE` will be detected in the same way as `name` or `title`. ([#1544](https://github.com/simonw/datasette/issues/1544))\r\n- Upgraded Pluggy dependency to 1.0. ([#1575](https://github.com/simonw/datasette/issues/1575))\r\n- Now using [Plausible analytics](https://plausible.io/) for the Datasette documentation.\r\n- `explain query plan` is now allowed with varying amounts of whitespace in the query. ([#1588](https://github.com/simonw/datasette/issues/1588))\r\n- New [CLI reference](https://docs.datasette.io/en/stable/cli-reference.html#cli-reference) page showing the output of `--help` for each of the `datasette` sub-commands. This lead to several small improvements to the help copy. ([#1594](https://github.com/simonw/datasette/issues/1594))\r\n- Fixed bug where writable canned queries could not be used with custom templates. ([#1547](https://github.com/simonw/datasette/issues/1547))\r\n- Improved fix for a bug where columns with a underscore prefix could result in unnecessary hidden form fields. ([#1527](https://github.com/simonw/datasette/issues/1527))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.35", "id": 23395622, "node_id": "MDc6UmVsZWFzZTIzMzk1NjIy", "tag_name": "0.35", "target_commitish": "master", "name": "Datasette 0.35", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-02-05T02:17:47Z", "published_at": "2020-02-05T02:32:34Z", "body": "* Added five new plugins and one new conversion tool to the [The Datasette Ecosystem](https://datasette.readthedocs.io/en/latest/ecosystem.html#ecosystem).\r\n* The `Datasette` class has a new `render_template()` method which can be used by plugins to render templates using Datasette\u2019s pre-configured [Jinja](https://jinja.palletsprojects.com/) templating library.\r\n* You can now execute SQL queries that start with a `-- comment` - thanks, Jay Graves (#653)\r\n\r\nhttps://datasette.readthedocs.io/en/latest/changelog.html#v0-35", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.29.2", "id": 19704661, "node_id": "MDc6UmVsZWFzZTE5NzA0NjYx", "tag_name": "0.29.2", "target_commitish": "master", "name": "0.29.2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-07-14T03:04:05Z", "published_at": "2019-09-03T00:33:35Z", "body": "* Bumped Uvicorn to 0.8.4, fixing a bug where the querystring was not included in the server logs. (#559)\r\n* Fixed bug where the navigation breadcrumbs were not displayed correctly on the page for a custom query. (#558)\r\n* Fixed bug where custom query names containing unicode characters caused errors.\r\n\r\nhttps://datasette.readthedocs.io/en/stable/changelog.html#v0-29-2", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.40", "id": 25748264, "node_id": "MDc6UmVsZWFzZTI1NzQ4MjY0", "tag_name": "0.40", "target_commitish": "master", "name": "0.40", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-04-22T04:06:39Z", "published_at": "2020-04-22T04:06:51Z", "body": "* Datasette [Metadata](https://datasette.readthedocs.io/en/latest/metadata.html) can now be provided as a YAML file as an optional alternative to JSON. See [Using YAML for metadata](https://datasette.readthedocs.io/en/latest/metadata.html#metadata-yaml). (#713)\r\n* Removed support for `datasette publish now`, which used the the now-retired Zeit Now v1 hosting platform. A new plugin, [datasette-publish-now](https://github.com/simonw/datasette-publish-now), can be installed to publish data to Zeit ([now Vercel](https://vercel.com/blog/zeit-is-now-vercel)) Now v2. (#710)\r\n* Fixed a bug where the `extra_template_vars(request, view_name)` plugin hook was not receiving the correct `view_name`. (#716)\r\n* Variables added to the template context by the `extra_template_vars()` plugin hook are now shown in the `?_context=1` debugging mode (see [template_debug](https://datasette.readthedocs.io/en/latest/config.html#config-template-debug)). (#693)\r\n* Fixed a bug where the \u201ctemplates considered\u201d HTML comment was no longer being displayed. (#689)\r\n* Fixed a `datasette publish` bug where `--plugin-secret` would over-ride plugin configuration in the provided `metadata.json` file. (#724)\r\n* Added a new CSS class for customizing the canned query page. (#727)", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.37.1", "id": 24154697, "node_id": "MDc6UmVsZWFzZTI0MTU0Njk3", "tag_name": "0.37.1", "target_commitish": "master", "name": "Datasette 0.37.1", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-03-03T03:43:08Z", "published_at": "2020-03-03T03:46:17Z", "body": "* Don\u2019t attempt to count table rows to display on the index page for databases > 100MB. (#688)\r\n* Print exceptions if they occur in the write thread rather than silently swallowing them.\r\n* Handle the possibility of `scope[\"path\"]` being a string rather than bytes\r\n* Better documentation for the [extra_template_vars(template, database, table, view_name, request, datasette)](https://datasette.readthedocs.io/en/stable/plugins.html#plugin-hook-extra-template-vars) plugin hook.\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.50.2", "id": 32397338, "node_id": "MDc6UmVsZWFzZTMyMzk3MzM4", "tag_name": "0.50.2", "target_commitish": "main", "name": "0.50.2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-10-10T03:53:47Z", "published_at": "2020-10-10T03:59:18Z", "body": "* Fixed another bug introduced in 0.50 where column header links on the table page were broken. (#1011)\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.39", "id": 24836140, "node_id": "MDc6UmVsZWFzZTI0ODM2MTQw", "tag_name": "0.39", "target_commitish": "master", "name": "0.39", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-03-25T04:02:37Z", "published_at": "2020-03-25T04:11:35Z", "body": "* New [base_url](https://datasette.readthedocs.io/en/latest/config.html#config-base-url) configuration setting for serving up the correct links while running Datasette under a different URL prefix. (#394)\r\n* New metadata settings `\"sort\"` and `\"sort_desc\"` for setting the default sort order for a table. See [Setting a default sort order](https://datasette.readthedocs.io/en/latest/metadata.html#metadata-default-sort). (#702)\r\n* Sort direction arrow now displays by default on the primary key. This means you only have to click once (not twice) to sort in reverse order. (#677)\r\n* New `await Request(scope, receive).post_vars()` method for accessing POST form variables. (#700)\r\n* Plugin hooks documentation now links to example uses of each plugin. (#709)\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.37", "id": 23986460, "node_id": "MDc6UmVsZWFzZTIzOTg2NDYw", "tag_name": "0.37", "target_commitish": "master", "name": "Datasette 0.37", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-02-26T01:22:02Z", "published_at": "2020-02-26T03:44:07Z", "body": "* Plugins now have a supported mechanism for writing to a database, using the new `.execute_write()` and `.execute_write_fn()` methods. [Documentation](https://datasette.readthedocs.io/en/stable/internals.html#database-execute-write). (#682)\r\n* Immutable databases that have had their rows counted using the `inspect` command now use the calculated count more effectively - thanks, Kevin Keogh. (#666)\r\n* `--reload` no longer restarts the server if a database file is modified, unless that database was opened immutable mode with `-i`. (#494)\r\n* New `?_searchmode=raw` option turns off escaping for FTS queries in `?_search=` allowing full use of SQLite\u2019s [FTS5 query syntax](https://www.sqlite.org/fts5.html#full_text_query_syntax). (#676)\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.38", "id": 24330942, "node_id": "MDc6UmVsZWFzZTI0MzMwOTQy", "tag_name": "0.38", "target_commitish": "master", "name": "0.38", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-03-08T23:26:50Z", "published_at": "2020-03-08T23:42:36Z", "body": "* The [Docker build](https://hub.docker.com/r/datasetteproject/datasette) of Datasette now uses SQLite 3.31.1, upgraded from 3.26. (#695)\r\n* `datasette publish cloudrun` now accepts an optional `--memory=2Gi` flag for setting the Cloud Run allocated memory to a value other than the default (256Mi). (#694)\r\n* Fixed bug where templates that shipped with plugins were sometimes not being correctly loaded. (#697)\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.36", "id": 23896184, "node_id": "MDc6UmVsZWFzZTIzODk2MTg0", "tag_name": "0.36", "target_commitish": "master", "name": "Datasette 0.36", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-02-22T03:04:46Z", "published_at": "2020-02-22T03:24:50Z", "body": "* The `datasette` object passed to plugins now has API documentation: [Datasette class](https://datasette.readthedocs.io/en/latest/datasette.html#datasette). (#576)\r\n* New methods on `datasette`: `.add_database()` and `.remove_database()` - [documentation](https://datasette.readthedocs.io/en/latest/datasette.html#datasette-add-database). (#671)\r\n* `prepare_connection()` plugin hook now takes optional `datasette` and `database` arguments - [prepare_connection(conn, database, datasette)](https://datasette.readthedocs.io/en/latest/plugins.html#plugin-hook-prepare-connection). (#678)\r\n* Added three new plugins and one new conversion tool to the [The Datasette Ecosystem](https://datasette.readthedocs.io/en/latest/ecosystem.html#ecosystem).\r\n\r\nhttps://datasette.readthedocs.io/en/latest/changelog.html#v0-36", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.25.2", "id": 14560304, "node_id": "MDc6UmVsZWFzZTE0NTYwMzA0", "tag_name": "0.25.2", "target_commitish": "master", "name": "Datasette 0.25.2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2018-12-16T21:26:37Z", "published_at": "2018-12-16T21:45:39Z", "body": "* `datasette publish heroku` now uses the `python-3.6.7` runtime\r\n* Added documentation on [how to build the documentation](https://datasette.readthedocs.io/en/stable/contributing.html#editing-and-building-the-documentation)\r\n* Added documentation covering [our release process](https://datasette.readthedocs.io/en/stable/contributing.html#release-process)\r\n* Upgraded to pytest 4.0.2\r\n", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.33", "id": 22415542, "node_id": "MDc6UmVsZWFzZTIyNDE1NTQy", "tag_name": "0.33", "target_commitish": "master", "name": "Datasette 0.33", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-12-22T16:27:04Z", "published_at": "2019-12-22T16:43:31Z", "body": "* `rowid` is now included in dropdown menus for filtering tables (#636)\r\n* Columns are now only suggested for faceting if they have at least one value with more than one record (#638)\r\n* Queries with no results now display \u201c0 results\u201d (#637)\r\n* Improved documentation for the `--static` option (#641)\r\n* asyncio task information is now included on the `/-/threads` debug page\r\n* Bumped Uvicorn dependency 0.11\r\n* You can now use `--port 0` to listen on an available port\r\n* New `template_debug` setting for debugging templates, e.g. https://latest.datasette.io/fixtures/roadside_attractions?_context=1 (#654)\r\n\r\nhttps://datasette.readthedocs.io/en/latest/changelog.html#v0-33", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.54a0", "id": 36623336, "node_id": "MDc6UmVsZWFzZTM2NjIzMzM2", "tag_name": "0.54a0", "target_commitish": "main", "name": "0.54a0", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2021-01-19T20:50:12Z", "published_at": "2021-01-19T20:51:13Z", "body": "**Alpha release**. Release notes in progress.\r\n\r\n- Improved support for named in-memory databases. ([#1151](https://github.com/simonw/datasette/issues/1151))\r\n- New `_internal` in-memory database tracking attached databases, tables and columns. ([#1150](https://github.com/simonw/datasette/issues/1150))\r\n- Support for JavaScript modules. ([#1186](https://github.com/simonw/datasette/issues/1186), [#1187](https://github.com/simonw/datasette/issues/1187))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.57", "id": 44155601, "node_id": "MDc6UmVsZWFzZTQ0MTU1NjAx", "tag_name": "0.57", "target_commitish": "main", "name": "0.57", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2021-06-05T22:06:55Z", "published_at": "2021-06-05T22:11:18Z", "body": "**Warning**: This release fixes a [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) security hole with the `?_trace=1` feature. You should upgrade to this version, or to Datasette 0.56.1, as soon as possible. ([#1360](https://github.com/simonw/datasette/issues/1360))\r\n\r\nIn addition to the security fix, this release includes `?_col=` and `?_nocol=` options for controlling which columns are displayed for a table, `?_facet_size=` for increasing the number of facet results returned, re-display of your SQL query should an error occur and numerous bug fixes.\r\n\r\n### New features\r\n\r\n- If an error occurs while executing a user-provided SQL query, that query is now re-displayed in an editable form along with the error message. ([#619](https://github.com/simonw/datasette/issues/619))\r\n- New `?_col=` and `?_nocol=` parameters to show and hide columns in a table, plus an interface for hiding and showing columns in the column cog menu. ([#615](https://github.com/simonw/datasette/issues/615))\r\n- A new `?_facet_size=` parameter for customizing the number of facet results returned on a table or view page. ([#1332](https://github.com/simonw/datasette/issues/1332))\r\n- `?_facet_size=max` sets that to the maximum, which defaults to 1,000 and is controlled by the the [max_returned_rows](https://docs.datasette.io/en/stable/settings.html#setting-max-returned-rows) setting. If facet results are truncated the ... at the bottom of the facet list now links to this parameter. ([#1337](https://github.com/simonw/datasette/issues/1337))\r\n- `?_nofacet=1` option to disable all facet calculations on a page, used as a performance optimization for CSV exports and `?_shape=array/object`. ([#1349](https://github.com/simonw/datasette/issues/1349), [#263](https://github.com/simonw/datasette/issues/263))\r\n- `?_nocount=1` option to disable full query result counts. ([#1353](https://github.com/simonw/datasette/issues/1353))\r\n- `?_trace=1` debugging option is now controlled by the new [trace_debug](https://docs.datasette.io/en/stable/settings.html#setting-trace-debug) setting, which is turned off by default. ([#1359](https://github.com/simonw/datasette/issues/1359))\r\n\r\n### Bug fixes and other improvements\r\n\r\n- [Custom pages](https://docs.datasette.io/en/stable/custom_templates.html#custom-pages) now work correctly when combined with the [base_url](https://docs.datasette.io/en/stable/settings.html#setting-base-url) setting. ([#1238](https://github.com/simonw/datasette/issues/1238))\r\n- Fixed intermittent error displaying the index page when the user did not have permission to access one of the tables. Thanks, Guy Freeman. ([#1305](https://github.com/simonw/datasette/issues/1305))\r\n- Columns with the name \"Link\" are no longer incorrectly displayed in bold. ([#1308](https://github.com/simonw/datasette/issues/1308))\r\n- Fixed error caused by tables with a single quote in their names. ([#1257](https://github.com/simonw/datasette/issues/1257))\r\n- Updated dependencies: `pytest-asyncio`, `Black`, `jinja2`, `aiofiles`, `click`, and `itsdangerous`.\r\n- The official Datasette Docker image now supports `apt-get install`. ([#1320](https://github.com/simonw/datasette/issues/1320))\r\n- The Heroku runtime used by `datasette publish heroku` is now `python-3.8.10`.", "repo": {"value": 107914493, "label": "datasette"}, "reactions": "{\"url\": \"https://api.github.com/repos/simonw/datasette/releases/44155601/reactions\", \"total_count\": 1, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 1, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}"} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.46", "id": 29489364, "node_id": "MDc6UmVsZWFzZTI5NDg5MzY0", "tag_name": "0.46", "target_commitish": "main", "name": "0.46", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-08-09T16:09:07Z", "published_at": "2020-08-09T16:10:47Z", "body": "**Warning:** This release contains a security fix related to authenticated writable canned queries. If you are using this feature you should upgrade as soon as possible.\r\n\r\n- **Security fix:** CSRF tokens were incorrectly included in read-only canned query forms, which could allow them to be leaked to a sophisticated attacker. See [issue 918](https://github.com/simonw/datasette/issues/918) for details.\r\n- Datasette now supports GraphQL via the new [datasette-graphql](https://github.com/simonw/datasette-graphql) plugin - see [GraphQL in Datasette with the new datasette-graphql plugin](https://simonwillison.net/2020/Aug/7/datasette-graphql/).\r\n- Principle git branch has been renamed from `master` to `main`. ([#849](https://github.com/simonw/datasette/issues/849))\r\n- New debugging tool: `/-/allow-debug tool` ([demo here](https://latest.datasette.io/-/allow-debug)) helps test allow blocks against actors, as described in [Defining permissions with \"allow\" blocks](https://datasette.readthedocs.io/en/stable/authentication.html#authentication-permissions-allow). ([#908](https://github.com/simonw/datasette/issues/908))\r\n- New logo for the documentation, and a new project tagline: \"An open source multi-tool for exploring and publishing data\".\r\n- Whitespace in column values is now respected on display, using `white-space: pre-wrap`. ([#896](https://github.com/simonw/datasette/issues/896))\r\n- New `await request.post_body()` method for accessing the raw POST body, see [Request object](https://datasette.readthedocs.io/en/stable/internals.html#internals-request). ([#897](https://github.com/simonw/datasette/issues/897))\r\n- Database file downloads now include a `content-length` HTTP header, enabling download progress bars. ([#905](https://github.com/simonw/datasette/issues/905))\r\n- File downloads now also correctly set the suggested file name using a `content-disposition` HTTP header. ([#909](https://github.com/simonw/datasette/issues/909))\r\n- `tests` are now excluded from the Datasette package properly - thanks, abeyerpath. ([#456](https://github.com/simonw/datasette/issues/456))\r\n- The Datasette package published to PyPI now includes `sdist` as well as `bdist_wheel`.\r\n- Better titles for canned query pages. ([#887](https://github.com/simonw/datasette/issues/887))\r\n- Now only loads Python files from a directory passed using the `--plugins-dir` option - thanks, Amjith Ramanujam. ([#890](https://github.com/simonw/datasette/pull/890))\r\n- New documentation section on [Publishing to Vercel](https://datasette.readthedocs.io/en/stable/publish.html#publish-vercel).", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.12", "id": 8546575, "node_id": "MDc6UmVsZWFzZTg1NDY1NzU=", "tag_name": "0.12", "target_commitish": "main", "name": "Datasette 0.12", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2017-11-16T15:37:46Z", "published_at": "2017-11-16T16:01:35Z", "body": "- Added `__version__`, now displayed as tooltip in page footer\r\n (#108).\r\n- Added initial docs, including a changelog (#99).\r\n- Turned on auto-escaping in Jinja.\r\n- Added a UI for editing named parameters (#96).\r\n\r\n You can now construct a custom SQL statement using SQLite named parameters (e.g. `:name`) and datasette will display form fields for editing those parameters. [Here's an example](https://australian-dogs.now.sh/australian-dogs-3ba9628?sql=select+name%2C+count%28*%29+as+n+from+%28%0D%0A%0D%0Aselect+upper%28%22Animal+name%22%29+as+name+from+%5BAdelaide-City-Council-dog-registrations-2013%5D+where+Breed+like+%3Abreed%0D%0A%0D%0Aunion+all%0D%0A%0D%0Aselect+upper%28Animal_Name%29+as+name+from+%5BAdelaide-City-Council-dog-registrations-2014%5D+where+Breed_Description+like+%3Abreed%0D%0A%0D%0Aunion+all+%0D%0A%0D%0Aselect+upper%28Animal_Name%29+as+name+from+%5BAdelaide-City-Council-dog-registrations-2015%5D+where+Breed_Description+like+%3Abreed%0D%0A%0D%0Aunion+all%0D%0A%0D%0Aselect+upper%28%22AnimalName%22%29+as+name+from+%5BCity-of-Port-Adelaide-Enfield-Dog_Registrations_2016%5D+where+AnimalBreed+like+%3Abreed%0D%0A%0D%0Aunion+all%0D%0A%0D%0Aselect+upper%28%22Animal+Name%22%29+as+name+from+%5BMitcham-dog-registrations-2015%5D+where+Breed+like+%3Abreed%0D%0A%0D%0Aunion+all%0D%0A%0D%0Aselect+upper%28%22DOG_NAME%22%29+as+name+from+%5Bburnside-dog-registrations-2015%5D+where+DOG_BREED+like+%3Abreed%0D%0A%0D%0Aunion+all+%0D%0A%0D%0Aselect+upper%28%22Animal_Name%22%29+as+name+from+%5Bcity-of-playford-2015-dog-registration%5D+where+Breed_Description+like+%3Abreed%0D%0A%0D%0Aunion+all%0D%0A%0D%0Aselect+upper%28%22Animal+Name%22%29+as+name+from+%5Bcity-of-prospect-dog-registration-details-2016%5D+where%22Breed+Description%22+like+%3Abreed%0D%0A%0D%0A%29+group+by+name+order+by+n+desc%3B&breed=pug) which lets you see the most popular names for dogs of different species registered through various dog registration schemes in Australia.\r\n- Pin to specific Jinja version. (#100).\r\n- Default to 127.0.0.1 not 0.0.0.0. (#98).\r\n- Added extra metadata options to publish and package commands.\r\n (#92).\r\n\r\n You can now run these commands like so:\r\n\r\n datasette now publish mydb.db \\\r\n --title=\"My Title\" \\\r\n --source=\"Source\" \\\r\n --source_url=\"http://www.example.com/\" \\\r\n --license=\"CC0\" \\\r\n --license_url=\"https://creativecommons.org/publicdomain/zero/1.0/\"\r\n\r\n This will write those values into the metadata.json that is packaged\r\n with the app. If you also pass `--metadata=metadata.json` that file\r\n will be updated with the extra values before being written into the\r\n Docker image.\r\n\r\n- Added simple production-ready Dockerfile (#94) \\[Andrew Cutler\\]\r\n- New `?_sql_time_limit_ms=10` argument to database and table page\r\n (#95)\r\n- SQL syntax highlighting with Codemirror (#89) \\[Tom Dyson\\]", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.50a1", "id": 32238807, "node_id": "MDc6UmVsZWFzZTMyMjM4ODA3", "tag_name": "0.50a1", "target_commitish": "main", "name": "0.50a1", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2020-10-06T20:50:54Z", "published_at": "2020-10-06T20:52:49Z", "body": "- Column action menu now shows the column type. ([#993](https://github.com/simonw/datasette/issues/993))\r\n- Column action sort links now correctly link to the first page of sorted results. ([#989](https://github.com/simonw/datasette/issues/989))\r\n- [Publishing to Google Cloud Run](https://docs.datasette.io/en/latest/publish.html#publish-cloud-run) documentation now covers Google Cloud SDK options. Thanks, Geoffrey Hing. ([#995](https://github.com/simonw/datasette/pull/995))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.59a2", "id": 48604143, "node_id": "MDc6UmVsZWFzZTQ4NjA0MTQz", "tag_name": "0.59a2", "target_commitish": "main", "name": " 0.59a2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2021-08-28T01:55:54Z", "published_at": "2021-08-28T01:57:38Z", "body": "- Columns can now have associated metadata descriptions in `metadata.json`, see [Column descriptions](https://docs.datasette.io/en/latest/metadata.html#metadata-column-descriptions). ([#942](https://github.com/simonw/datasette/issues/942))\r\n- New [register_commands()](https://docs.datasette.io/en/latest/plugin_hooks.html#plugin-hook-register-commands) plugin hook allows plugins to register additional Datasette CLI commands, e.g. `datasette mycommand file.db`. ([#1449](https://github.com/simonw/datasette/issues/1449))\r\n- Adding `?_facet_size=max` to a table page now shows the number of unique values in each facet. ([#1423](https://github.com/simonw/datasette/issues/1423))\r\n- Code that figures out which named parameters a SQL query takes in order to display form fields for them is no longer confused by strings that contain colon characters. ([#1421](https://github.com/simonw/datasette/issues/1421))\r\n- Renamed `--help-config` option to `--help-settings`. ([#1431](https://github.com/simonw/datasette/issues/1431))\r\n- `datasette.databases` property is now a documented API. ([#1443](https://github.com/simonw/datasette/issues/1443))\r\n- Datasette base template now wraps everything other than the `