跳到正文
每分钟自动更新
11月16日周一
  1. Simon Willison

    datasette 1.0a43

    中文摘要

    发布:datasette 1.0a43 我一直在努力利用Claude Fable 5.2来帮助完成1.0里程碑,目前该里程碑已完成53%。此次发布的最重要的1.0功能是输出渲染器的流式支持——内置的TSV和CSV导出机制现在也使用了这一功能,插件可以通过新的Response.stream()方法注册自己,以一次性流式传输表中的每一行。有一些安全修复,其中一项我认定值得发布GitHub安全公告:私有存储查询可能会被暴露,从而允许访问查询的标题和SQL(但不允许执行该查询)。还有数十项较小的改进。行页面的JSON表示终于有了适合1.0的设计。一个新的<datasette-copy-button>网络组件在多个地方提供了复制模式的功能。行页面中的列中的JSON可以进行美化排版。新增了一个DatasetteModal.confirm() JavaScript实用方法。此外还有数十个错误修复,包括Zihan Dai、Peter Olkhovets、Ilya Khalafi和Ankita Advitot的贡献。我最兴奋的新功能是一个非常小的功能:我已在Datasette中添加了CSS多页视图过渡效果!

    英文原文

    Release: datasette 1.0a43 I've been leaning hard into Claude Fable 5.2 to help knock things off the 1.0 milestone , which is now 53% complete. The biggest 1.0 item in this release is streaming support for output renderers - the built-in TSV and CSV export mechanisms now use this as well, and plugins can register themselves as capable of streaming every row in a table in one go via the new Response.stream() method. There are a couple of security fixes, one of which I deemed deserving of a GitHub advisory : private stored queries could be exposed, granting access to the title and SQL of the query (but not allowing that query to be executed). There are dozens of smaller improvements. The row page JSON representation finally has a design suitable for 1.0 . A new <datasette-copy-button> Web Component provides copy-schema in various places. JSON in columns on the row page can be pretty-printed. There's a new DatasetteModal.confirm() JavaScript utility method. Plus dozens of bug fixes, including contributions by Zihan Dai , Peter Olkhovets , Ilya Khalafi , and Ankita Advitot . The feature I'm most excited about is a pretty tiny one: I've added CSS multi-page view transitions to Datasette!

11月8日周日
  1. Simon Willison

    datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages

    中文摘要

    datasette #3046:不要向Firefox发送HTML页面的rel=next链接HTTP头部 今天我在查看Firefox的网络面板时,注意到对Datasette表格页面的请求会触发对该表格下一页行的HTTP预取。这是因为Datasette页面会发送类似这样的HTTP链接头部:link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next=a%2Cd%2Cv>; rel="next" 这是不好的。在这些页面中,只有一小部分访问者会点击“下一页”链接,这意味着其他人浏览器正在获取不必要的数据,而Datasette服务器则必须渲染整个页面,然后将其丢弃。 我深入研究后了解到,Firefox存在一个已经开放了24年的关于此行为的问题……该问题早期的评论之一链接到了我2002年的一篇博客文章,当时我抱怨这个功能。我不仅忘记了自己曾经写过关于这个功能的文章,甚至已经完全忘记了这个功能! 标签:firefox , html , mozilla , datasette

    英文原文

    datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages I was looking at the Firefox network panel today when I noticed that requests to a Datasette table page were triggering an HTTP prefetch to the next page of rows in that table. This was happening because Datasette pages serve an HTTP link header like this: link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next=a%2Cd%2Cv>; rel="next" This is bad. A tiny fraction of the visitors to one of those pages will click the "next" link, which means for everyone else their browser is fetching unnecessary data and the Datasette server is having to render an entire page that then gets thrown away. I dug in and learned that Firefox has an issue that has been open for 24 years about this behavior... And one of the early comments on that issue links to my blog post from 2002 complaining about this feature. I hadn't just forgotten that I had written about it, I had forgotten the feature entirely! Tags: firefox , html , mozilla , datasette

9月29日周二