返回全部动态
Bun 1.4 发布:WebView 支持浏览器自动化,构建 shot-scraper 风格 API
原标题:A shot-scraper-style JSON API on Bun 1.4's new Bun.WebView
AI 摘要
Bun 1.4 发布,这是自 Rust 重写以来的首个稳定版本,新增了 Bun.WebView 等多项功能,并修复了 2900 多个问题。作者利用 Bun.WebView 构建了一个类似 shot-scraper 的 JSON API 原型,用于加载网页并执行 JavaScript,测试显示运行完整 Chrome 需要 192MB-256MB 内存。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
20th August 2026 Today saw the long awaited release of Bun 1.4, the first stable version since the infamous Rust rewrite a few months ago. Interestingly, the Rust rewrite was downplayed in the release notes, which introduced a bewildering array of new features and claimed 2,900 additional bug fixes: Bun 1.4 adds +1,517 tests from the Node.js test suite - our biggest jump in Node.js compatibility since Bun 1.0. Bun v1.4 also fixes over 2,900 issues. It reduces idle CPU usage by 5x, reduces memory
发布时间:2026-08-20 23:37
抓取时间:2026-08-21 07:30
来源机构:Simon Willison