{"html_url": "https://github.com/simonw/datasette/releases/tag/0.30.1", "id": 21162064, "node_id": "MDc6UmVsZWFzZTIxMTYyMDY0", "tag_name": "0.30.1", "target_commitish": "master", "name": "0.30.1", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-10-30T19:00:21Z", "published_at": "2019-11-02T00:06:02Z", "body": "https://datasette.readthedocs.io/en/stable/changelog.html#v0-30-1", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.30", "id": 21098052, "node_id": "MDc6UmVsZWFzZTIxMDk4MDUy", "tag_name": "0.30", "target_commitish": "master", "name": "0.30", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-10-19T01:08:04Z", "published_at": "2019-10-30T18:51:30Z", "body": "https://datasette.readthedocs.io/en/stable/changelog.html#v0-30", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.29.3", "id": 20795250, "node_id": "MDc6UmVsZWFzZTIwNzk1MjUw", "tag_name": "0.29.3", "target_commitish": "master", "name": "0.29.3", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-09-03T00:40:53Z", "published_at": "2019-10-18T05:24:54Z", "body": "https://datasette.readthedocs.io/en/stable/changelog.html#v0-29-3", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.27", "id": 15389392, "node_id": "MDc6UmVsZWFzZTE1Mzg5Mzky", "tag_name": "0.27", "target_commitish": "master", "name": "Datasette 0.27", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-02-01T03:47:05Z", "published_at": "2019-02-06T05:10:20Z", "body": "https://datasette.readthedocs.io/en/stable/changelog.html#v0-27", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.30.2", "id": 21169835, "node_id": "MDc6UmVsZWFzZTIxMTY5ODM1", "tag_name": "0.30.2", "target_commitish": "master", "name": "0.30.2", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-11-02T23:12:46Z", "published_at": "2019-11-02T23:33:13Z", "body": "https://datasette.readthedocs.io/en/latest/changelog.html#v0-30-2", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.28", "id": 17450414, "node_id": "MDc6UmVsZWFzZTE3NDUwNDE0", "tag_name": "0.28", "target_commitish": "master", "name": "Datasette 0.28", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-05-19T21:37:49Z", "published_at": "2019-05-19T21:42:28Z", "body": "[Datasette 0.28](https://datasette.readthedocs.io/en/stable/changelog.html#v0-28) - a salmagundi of new features!\r\n * No longer immutable! Datasette now supports [databases that change](https://datasette.readthedocs.io/en/stable/changelog.html#supporting-databases-that-change).\r\n * [Faceting improvements](https://datasette.readthedocs.io/en/stable/changelog.html#faceting-improvements-and-faceting-plugins) including facet-by-JSON-array and the ability to define custom faceting using plugins.\r\n * [datasette publish cloudrun](https://datasette.readthedocs.io/en/stable/changelog.html#datasette-publish-cloudrun) lets you publish databasese to Google's new Cloud Run hosting service.\r\n * New [register_output_renderer](https://datasette.readthedocs.io/en/stable/changelog.html#register-output-renderer-plugins) plugin hook for adding custom output extensions to Datasette in addition to the default `.json` and `.csv`.\r\n * Dozens of other smaller features and tweaks - see [the release notes](https://datasette.readthedocs.io/en/stable/changelog.html#v0-28) for full details.", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.26", "id": 14914779, "node_id": "MDc6UmVsZWFzZTE0OTE0Nzc5", "tag_name": "0.26", "target_commitish": "master", "name": "Datasette 0.26", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-01-03T02:53:59Z", "published_at": "2019-01-10T21:41:00Z", "body": "[Datasette 0.26 release notes](https://datasette.readthedocs.io/en/stable/changelog.html#v0-26)", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.41", "id": 26240662, "node_id": "MDc6UmVsZWFzZTI2MjQwNjYy", "tag_name": "0.41", "target_commitish": "master", "name": "0.41", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-05-06T18:20:58Z", "published_at": "2020-05-06T18:30:03Z", "body": "You can now create [custom pages](https://datasette.readthedocs.io/en/0.41/custom_templates.html#custom-pages) within your Datasette instance using a custom template file. For example, adding a template file called `templates/pages/about.html` will result in a new page being served at `/about` on your instance. See the [custom pages documentation](https://datasette.readthedocs.io/en/0.41/custom_templates.html#custom-pages) for full details, including how to return custom HTTP headers, redirects and status codes. (#648)\r\n\r\n[Configuration directory mode](https://datasette.readthedocs.io/en/0.41/config.html#config-dir) (#731) allows you to define a custom Datasette instance as a directory. So instead of running the following:\r\n\r\n $ datasette one.db two.db \\\r\n --metadata.json \\\r\n --template-dir=templates/ \\\r\n --plugins-dir=plugins \\\r\n --static css:css\r\n\r\nYou can instead arrange your files in a single directory called `my-project` and run this:\r\n\r\n $ datasette my-project/\r\n\r\nAlso in this release:\r\n\r\n- New `NOT LIKE` table filter: `?colname__notlike=expression`. (#750)\r\n- Datasette now has a *pattern portfolio* at `/-/patterns` - e.g. . This is a page that shows every Datasette user interface component in one place, to aid core development and people building custom CSS themes. (#151)\r\n- SQLite [PRAGMA functions](https://www.sqlite.org/pragma.html#pragfunc) such as `pragma_table_info(tablename)` are now allowed in Datasette SQL queries. (#761)\r\n- Datasette pages now consistently return a `content-type` of `text/html; charset=utf-8\"`. (#752)\r\n- Datasette now handles an ASGI `raw_path` value of `None`, which should allow compatibilty with the [Mangum](https://github.com/erm/mangum) adapter for running ASGI apps on AWS Lambda. Thanks, Colin Dellow. (#719)\r\n- Installation documentation now covers how to [Install using pipx](https://datasette.readthedocs.io/en/0.41/installation.html#installation-pipx). (#756)\r\n- Improved the documentation for [Full-text search](https://datasette.readthedocs.io/en/0.41/full_text_search.html#full-text-search).", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.31", "id": 21426008, "node_id": "MDc6UmVsZWFzZTIxNDI2MDA4", "tag_name": "0.31", "target_commitish": "master", "name": "Datasette 0.31", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2019-11-12T05:33:51Z", "published_at": "2019-11-13T02:16:15Z", "body": "This version adds compatibility with Python 3.8 and breaks compatibility with Python 3.5.\r\n\r\nFull release notes: https://datasette.readthedocs.io/en/stable/changelog.html#v0-31", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.18", "id": 10547491, "node_id": "MDc6UmVsZWFzZTEwNTQ3NDkx", "tag_name": "0.18", "target_commitish": "main", "name": "Datasette 0.18: units", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2018-04-14T15:36:10Z", "published_at": "2018-04-14T15:45:11Z", "body": "This release introduces [support for units](http://datasette.readthedocs.io/en/latest/metadata.html#specifying-units-for-a-column), contributed by Russ Garrett ([\\#203](https://github.com/simonw/datasette/issues/203)). You can now optionally specify the units for specific columns using `metadata.json`. Once specified, units will be displayed in the HTML view of your table. They also become available for use in filters - if a column is configured with a unit of distance, you can request all rows where that column is less than 50 meters or more than 20 feet [for example](https://wtr-api.herokuapp.com/wtr-663ea99/license_frequency?frequency__gt=50GHz&height__lt=50ft).\r\n\r\n - Link foreign keys which don't have labels. \\[Russ Garrett\\]\r\n \r\n This renders unlabeled FKs as simple links.\r\n \r\n Also includes bonus fixes for two minor issues:\r\n \r\n - In foreign key link hrefs the primary key was escaped using HTML escaping rather than URL escaping. This broke some non-integer PKs.\r\n - Print tracebacks to console when handling 500 errors.\r\n\r\n - Fix SQLite error when loading rows with no incoming FKs. \\[Russ Garrett\\]\r\n \r\n This fixes `ERROR: conn=, sql = 'select ', params = {'id': '1'}` caused by an invalid query when loading incoming FKs.\r\n \r\n The error was ignored due to async but it still got printed to the console.\r\n\r\n - Allow custom units to be registered with Pint. \\[Russ Garrett\\]\r\n\r\n - Support units in filters. \\[Russ Garrett\\]\r\n\r\n - Tidy up units support. \\[Russ Garrett\\]\r\n \r\n - Add units to exported JSON\r\n - Units key in metadata skeleton\r\n - Docs\r\n\r\n - Initial units support. \\[Russ Garrett\\]\r\n \r\n Add support for specifying units for a column in `metadata.json` and rendering them on display using [pint](https://pint.readthedocs.io/en/latest/)", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.52", "id": 34539374, "node_id": "MDc6UmVsZWFzZTM0NTM5Mzc0", "tag_name": "0.52", "target_commitish": "main", "name": "0.52", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2020-11-28T23:54:35Z", "published_at": "2020-11-28T23:57:12Z", "body": "This release includes a number of changes relating to an internal rebranding effort: Datasette's **configuration** mechanism (things like `datasette --config default_page_size:10`) has been renamed to **settings**.\r\n\r\n- New `--setting default_page_size 10` option as a replacement for `--config default_page_size:10` (note the lack of a colon). The `--config` option is deprecated but will continue working until Datasette 1.0. ([#992](https://github.com/simonw/datasette/issues/992))\r\n- The `/-/config` introspection page is now `/-/settings`, and the previous page redirects to the new one. ([#1103](https://github.com/simonw/datasette/issues/1103))\r\n- The `config.json` file in [Configuration directory mode](https://docs.datasette.io/en/stable/settings.html#config-dir) is now called `settings.json`. ([#1104](https://github.com/simonw/datasette/issues/1104))\r\n- The undocumented `datasette.config()` internal method has been replaced by a documented [.setting(key)](https://docs.datasette.io/en/stable/internals.html#datasette-setting) method. ([#1107](https://github.com/simonw/datasette/issues/1107))\r\n\r\nAlso in this release:\r\n\r\n- New plugin hook: [database_actions(datasette, actor, database)](https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hook-database-actions), which adds menu items to a new cog menu shown at the top of the database page. ([#1077](https://github.com/simonw/datasette/issues/1077))\r\n- `datasette publish cloudrun` has a new `--apt-get-install` option that can be used to install additional Ubuntu packages as part of the deployment. This is useful for deploying the new [datasette-ripgrep plugin](https://github.com/simonw/datasette-ripgrep). ([#1110](https://github.com/simonw/datasette/issues/1110))\r\n- Swept the documentation to remove words that minimize involved difficulty. ([#1089](https://github.com/simonw/datasette/issues/1089))\r\n\r\nAnd some bug fixes:\r\n\r\n- Foreign keys linking to rows with blank label columns now display as a hyphen, allowing those links to be clicked. ([#1086](https://github.com/simonw/datasette/issues/1086))\r\n- Fixed bug where row pages could sometimes 500 if the underlying queries exceeded a time limit. ([#1088](https://github.com/simonw/datasette/issues/1088))\r\n- Fixed a bug where the table action menu could appear partially obscured by the edge of the page. ([#1084](https://github.com/simonw/datasette/issues/1084))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.23", "id": 11530498, "node_id": "MDc6UmVsZWFzZTExNTMwNDk4", "tag_name": "0.23", "target_commitish": "main", "name": "Datasette 0.23: CSV, SpatiaLite and more", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2018-06-18T15:11:57Z", "published_at": "2018-06-18T15:28:37Z", "body": "This release features CSV export, improved options for foreign key expansions, new configuration settings and improved support for SpatiaLite.\r\n\r\nSee full release notes here: http://datasette.readthedocs.io/en/latest/changelog.html#v0-23", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.19", "id": 10575542, "node_id": "MDc6UmVsZWFzZTEwNTc1NTQy", "tag_name": "0.19", "target_commitish": "main", "name": "Datasette 0.19: plugins preview", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2018-04-17T02:12:21Z", "published_at": "2018-04-17T02:21:51Z", "body": "This is the first preview of the new Datasette plugins mechanism. Only two plugin hooks are available so far - for custom SQL functions and custom template filters. There's plenty more to come - read [the documentation](https://datasette.readthedocs.io/en/latest/plugins.html) and get involved in [the tracking ticket](https://github.com/simonw/datasette/issues/14) if you have feedback on the direction so far.\r\n\r\n- Fix for `_sort_desc=sortable_with_nulls` test, refs [#216](https://github.com/simonw/datasette/issues/216)\r\n\r\n- Fixed [#216](https://github.com/simonw/datasette/issues/216) - paginate correctly when sorting by nullable column\r\n\r\n- Initial documentation for plugins, closes [#213](https://github.com/simonw/datasette/issues/213)\r\n\r\n https://datasette.readthedocs.io/en/latest/plugins.html\r\n\r\n- New `--plugins-dir=plugins/` option ([#212](https://github.com/simonw/datasette/issues/212))\r\n\r\n New option causing Datasette to load and evaluate all of the Python files in the specified directory and register any plugins that are defined in those files.\r\n\r\n This new option is available for the following commands:\r\n\r\n datasette serve mydb.db --plugins-dir=plugins/\r\n datasette publish now/heroku mydb.db --plugins-dir=plugins/\r\n datasette package mydb.db --plugins-dir=plugins/\r\n\r\n- Start of the plugin system, based on pluggy ([#210](https://github.com/simonw/datasette/issues/14))\r\n\r\n Uses https://pluggy.readthedocs.io/ originally created for the py.test project\r\n\r\n We're starting with two plugin hooks:\r\n\r\n `prepare_connection(conn)`\r\n\r\n This is called when a new SQLite connection is created. It can be used to register custom SQL functions.\r\n\r\n `prepare_jinja2_environment(env)`\r\n\r\n This is called with the Jinja2 environment. It can be used to register custom template tags and filters.\r\n\r\n An example plugin which uses these two hooks can be found at https://github.com/simonw/datasette-plugin-demos or installed using `pip install datasette-plugin-demos`\r\n\r\n Refs [#14](https://github.com/simonw/datasette/issues/14)\r\n\r\n- Return HTTP 405 on InvalidUsage rather than 500. [Russ Garrett]\r\n\r\n This also stops it filling up the logs. This happens for HEAD requests at the moment - which perhaps should be handled better, but that's a different issue.", "repo": {"value": 107914493, "label": "datasette"}, "reactions": null} {"html_url": "https://github.com/simonw/datasette/releases/tag/1.0a0", "id": 84496148, "node_id": "RE_kwDOBm6k_c4FCU8U", "tag_name": "1.0a0", "target_commitish": "main", "name": "1.0a0", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2022-11-29T19:57:54Z", "published_at": "2022-11-29T19:58:55Z", "body": "This first alpha release of Datasette 1.0 introduces a brand new collection of APIs for writing to the database ([#1850](https://github.com/simonw/datasette/issues/1850)), as well as a new API token mechanism baked into Datasette core. Previously, API tokens have only been supported by installing additional plugins.\r\n\r\nThis is very much a preview: expect many more backwards incompatible API changes prior to the full 1.0 release.\r\n\r\nFeedback enthusiastically welcomed, either through [issue comments](https://github.com/simonw/datasette/issues/1850) or via the [Datasette Discord](https://datasette.io/discord) community.\r\n\r\n### Signed API tokens\r\n\r\n- New `/-/create-token` page allowing authenticated users to create signed API tokens that can act on their behalf, see [API Tokens](https://docs.datasette.io/en/1.0-dev/authentication.html#createtokenview). ([#1852](https://github.com/simonw/datasette/issues/1852))\r\n- New `datasette create-token` command for creating tokens from the command line: [datasette create-token](https://docs.datasette.io/en/1.0-dev/authentication.html#authentication-cli-create-token).\r\n- New [allow_signed_tokens](https://docs.datasette.io/en/1.0-dev/settings.html#setting-allow-signed-tokens) setting which can be used to turn off signed token support. ([#1856](https://github.com/simonw/datasette/issues/1856))\r\n- New [max_signed_tokens_ttl](https://docs.datasette.io/en/1.0-dev/settings.html#setting-max-signed-tokens-ttl) setting for restricting the maximum allowed duration of a signed token. ([#1858](https://github.com/simonw/datasette/issues/1858))\r\n\r\n### Write API\r\n\r\n- New API explorer at `/-/api` for trying out the API. ([#1871](https://github.com/simonw/datasette/issues/1871))\r\n- `/db/-/create` API for [Creating a table](https://docs.datasette.io/en/1.0-dev/json_api.html#tablecreateview). ([#1882](https://github.com/simonw/datasette/issues/1882))\r\n- `/db/table/-/insert` API for [Inserting rows](https://docs.datasette.io/en/1.0-dev/json_api.html#tableinsertview). ([#1851](https://github.com/simonw/datasette/issues/1851))\r\n- `/db/table/-/drop` API for [Dropping tables](https://docs.datasette.io/en/1.0-dev/json_api.html#tabledropview). ([#1874](https://github.com/simonw/datasette/issues/1874))\r\n- `/db/table/pk/-/update` API for [Updating a row](https://docs.datasette.io/en/1.0-dev/json_api.html#rowupdateview). ([#1863](https://github.com/simonw/datasette/issues/1863))\r\n- `/db/table/pk/-/delete` API for [Deleting a row](https://docs.datasette.io/en/1.0-dev/json_api.html#rowdeleteview). ([#1864](https://github.com/simonw/datasette/issues/1864))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": "{\"url\": \"https://api.github.com/repos/simonw/datasette/releases/84496148/reactions\", \"total_count\": 2, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 2, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}"} {"html_url": "https://github.com/simonw/datasette/releases/tag/1.0a3", "id": 115813784, "node_id": "RE_kwDOBm6k_c4G5y2Y", "tag_name": "1.0a3", "target_commitish": "main", "name": "1.0a3", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2023-08-09T19:13:11Z", "published_at": "2023-08-09T19:17:26Z", "body": "This alpha release previews the updated design for Datasette's default JSON API. ([#782](https://github.com/simonw/datasette/issues/782))\r\n\r\nThe new [default JSON representation](https://docs.datasette.io/en/1.0a3/json_api.html#json-api-default) for both table pages (`/dbname/table.json`) and arbitrary SQL queries (`/dbname.json?sql=...`) is now shaped like this:\r\n```json\r\n{\r\n \"ok\": true,\r\n \"rows\": [\r\n {\r\n \"id\": 3,\r\n \"name\": \"Detroit\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"name\": \"Los Angeles\"\r\n },\r\n {\r\n \"id\": 4,\r\n \"name\": \"Memnonia\"\r\n },\r\n {\r\n \"id\": 1,\r\n \"name\": \"San Francisco\"\r\n }\r\n ],\r\n \"truncated\": false\r\n}\r\n```\r\nTables will include an additional `\"next\"` key for pagination, which can be passed to `?_next=` to fetch the next page of results.\r\n\r\nThe various `?_shape=` options continue to work as before - see [Different shapes](https://docs.datasette.io/en/1.0a3/json_api.html#json-api-shapes) for details.\r\n\r\nA new `?_extra=` mechanism is available for tables, but has not yet been stabilized or documented. Details on that are available in [#262](https://github.com/simonw/datasette/issues/262).\r\n\r\n### Smaller changes\r\n\r\n- Datasette documentation now shows YAML examples for [Metadata](https://docs.datasette.io/en/1.0a3/metadata.html#metadata) by default, with a tab interface for switching to JSON. ([#1153](https://github.com/simonw/datasette/issues/1153))\r\n- [register_output_renderer(datasette)](https://docs.datasette.io/en/1.0a3/plugin_hooks.html#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. ([#2130](https://github.com/simonw/datasette/issues/2130))\r\n- `render_cell()` plugin hook now also supports an optional `request` argument. ([#2007](https://github.com/simonw/datasette/issues/2007))\r\n- New `Justfile` to support development workflows for Datasette using [Just](https://github.com/casey/just).\r\n- `datasette.render_template()` can now accepts a `datasette.views.Context` subclass as an alternative to a dictionary. ([#2127](https://github.com/simonw/datasette/issues/2127))\r\n- `datasette install -e path` option for editable installations, useful while developing plugins. ([#2106](https://github.com/simonw/datasette/issues/2106))\r\n- 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. ([#2079](https://github.com/simonw/datasette/issues/2079))\r\n- Fixed a bug where the `_internal` database could display `None` instead of `null` for in-memory databases. ([#1970](https://github.com/simonw/datasette/issues/1970))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": "{\"url\": \"https://api.github.com/repos/simonw/datasette/releases/115813784/reactions\", \"total_count\": 3, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 3, \"eyes\": 0}"} {"html_url": "https://github.com/simonw/datasette/releases/tag/1.0a4", "id": 118245443, "node_id": "RE_kwDOBm6k_c4HDEhD", "tag_name": "1.0a4", "target_commitish": "main", "name": "1.0a4", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 1, "created_at": "2023-08-22T17:10:01Z", "published_at": "2023-08-22T17:13:26Z", "body": "This alpha fixes a security issue with the `/-/api` API explorer. On authenticated Datasette instances (instances protected using plugins such as [datasette-auth-passwords](https://datasette.io/plugins/datasette-auth-passwords)) the API explorer interface could reveal the names of databases and tables within the protected instance. The data stored in those tables was not revealed.\r\n\r\nFor more information and workarounds, read [the security advisory](https://github.com/simonw/datasette/security/advisories/GHSA-7ch3-7pp7-7cpq). The issue has been present in every previous alpha version of Datasette 1.0: versions 1.0a0, 1.0a1, 1.0a2 and 1.0a3.\r\n\r\nAlso in this alpha:\r\n\r\n- The new `datasette plugins --requirements` option outputs a list of currently installed plugins in Python `requirements.txt` format, useful for duplicating that installation elsewhere. ([#2133](https://github.com/simonw/datasette/issues/2133))\r\n- [Writable canned queries](https://docs.datasette.io/en/latest/sql_queries.html#canned-queries-writable) can now define a `on_success_message_sql` field in their configuration, containing a SQL query that should be executed upon successful completion of the write operation in order to generate a message to be shown to the user. ([#2138](https://github.com/simonw/datasette/issues/2138))\r\n- The automatically generated border color for a database is now shown in more places around the application. ([#2119](https://github.com/simonw/datasette/issues/2119))\r\n- Every instance of example shell script code in the documentation should now include a working copy button, free from additional syntax. ([#2140](https://github.com/simonw/datasette/issues/2140))", "repo": {"value": 107914493, "label": "datasette"}, "reactions": "{\"url\": \"https://api.github.com/repos/simonw/datasette/releases/118245443/reactions\", \"total_count\": 3, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 2, \"confused\": 0, \"heart\": 1, \"rocket\": 0, \"eyes\": 0}"} {"html_url": "https://github.com/simonw/datasette/releases/tag/0.54", "id": 36871901, "node_id": "MDc6UmVsZWFzZTM2ODcxOTAx", "tag_name": "0.54", "target_commitish": "main", "name": "0.54", "draft": 0, "author": {"value": 9599, "label": "simonw"}, "prerelease": 0, "created_at": "2021-01-25T17:35:06Z", "published_at": "2021-01-25T17:36:30Z", "body": "The two big new features in this release are the `_internal` SQLite in-memory database storing details of all connected databases and tables, and support for JavaScript modules in plugins and additional scripts.\r\n\r\nFor additional commentary on this release, see [Datasette 0.54, the annotated release notes](https://simonwillison.net/2021/Jan/25/datasette/).\r\n\r\n### The _internal database\r\n\r\nAs part of ongoing work to help Datasette handle much larger numbers of connected databases and tables (see [Datasette Library](https://github.com/simonw/datasette/issues/417)) Datasette now maintains an in-memory SQLite database with details of all of the attached databases, tables, columns, indexes and foreign keys. ([#1150](https://github.com/simonw/datasette/issues/1150))\r\n\r\nThis will support future improvements such as a searchable, paginated homepage of all available tables.\r\n\r\nYou can explore an example of this database by [signing in as root](https://latest.datasette.io/login-as-root) to the `latest.datasette.io` demo instance and then navigating to [latest.datasette.io/_internal](https://latest.datasette.io/_internal).\r\n\r\nPlugins can use these tables to introspect attached data in an efficient way. Plugin authors should note that this is not yet considered a stable interface, so any plugins that use this may need to make changes prior to Datasette 1.0 if the `_internal` table schemas change.\r\n\r\n### Named in-memory database support\r\n\r\nAs part of the work building the `_internal` database, Datasette now supports named in-memory databases that can be shared across multiple connections. This allows plugins to create in-memory databases which will persist data for the lifetime of the Datasette server process. ([#1151](https://github.com/simonw/datasette/issues/1151))\r\n\r\nThe new `memory_name=` parameter to the [Database class](https://docs.datasette.io/en/stable/internals.html#internals-database) can be used to create named, shared in-memory databases.\r\n\r\n### JavaScript modules\r\n\r\n[JavaScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) were introduced in ECMAScript 2015 and provide native browser support for the `import` and `export` keywords.\r\n\r\nTo use modules, JavaScript needs to be included in `