4.4.0 (November 24, 2026)2026-11-25
- Faster dev rebuilds, two steps that ran on every rebuild went from about 155 ms to under 30 ms on a large project.
- A pinned browser binary is never ignored, --gecko-binary alone runs a Gecko browser, and a failed launch names the binary and what pinned it. Docs
- JSON errors say where, a file that fails to parse is reported by line and column, never by quoting its text. Docs
- A missing file that comes back rebuilds, creating or restoring a file a page or worker names rebuilds without a second save.
- Windows sessions stop and recover cleanly, Ctrl+C closes the browser at once, and a Firefox session follows the browser through a self-update.
<details>
<summary>Also in 4.4.0 (6)</summary>
- A binary set in the config file is named by its key and file, for example browser.chrome.chromiumBinary in extension.config.js.
- On Windows, a pinned binary's version is read in a fraction of a second, where each read could take 20 s or more.
- On Windows, a pinned binary that never answers its version probe is stopped with its child processes, and a Firefox profile path with accented or CJK characters works.
- Stopping preview, start or dev while the browser is still starting ends as stopped with exit 0, and ready.json says stopped.
- extension create scaffolds the examples with exact dependency versions, and on Windows waits for a timed-out install to end before it removes the folder.
- The manifest is read 4 times on a first build and once per rebuild, down from 51 and 14.
</details>
<details>
<summary>Upgrade notes (4)</summary>
- A binary flag for the engine you did not pick, such as --browser firefox --chromium-binary <path>, was ignored and is now refused with EINVALIDOPTION.
- With no --browser, a binary flag picks its engine (--gecko-binary alone runs gecko-based), and both flags together are refused. Pass --browser chromium-based,gecko-based to run both.
- A script that matched the runtime's JSON wording, such as Unexpected token, now reads unexpected character at line 1 column 1.
- binaryPinnedBy in ready.json can hold a config key and file, not only a flag or variable name.
</details>
Features
- Add the Windows quit line to the release notes (#1441) (cdbcf8ef8)
- Add the interrupt and install timeout lines to the release notes (#1439) (f07d836e0)
- Add the Windows teardown and path lines to the release notes (#1436) (1beb85ba2)
- Add the Windows version read to the next release notes (#1428) (75ceff6f3)
Fixes
- Stop ignoring the bundled create template in the release commit (#1444) (00e7626a3)
- Stop the browser at once when a Windows session quits (#1440) (ba951bab3)
<details>
<summary>Other changes (32)</summary>
- Tighten the next release notes (#1443) (7ea86a4c3)
- Name a system sleep in failed rows, isolate exec runner caches (#1442) (b2520077b)
- Record an interrupted run as stopped and end a timed-out install (#1438) (f66aba453)
- End an interrupted browser launch on one stopped frame (#1437) (24c9345a0)
- Read the Windows process table as UTF-8 and prove Ctrl+C teardown (#1434) (335f42fd4)
- Clear the Biome warnings and fail lint on new ones (#1435) (96ec1417f)
- Strip nested comment markers from the release highlights (#1433) (c1e640cec)
- End a probed binary's whole tree before the CLI exits on Windows (#1430) (31dbaa31c)
- Bump Svelte to 5.59.1 (#1432) (ef0981a2c)
- Follow the declaration plugin to its parser in all four programs (#1431) (93f0b4c92)
- Run the create and install tool stand-in specs on Windows (#1429) (16d98a625)
- Read a Windows browser version fast and run pin specs there (#1423) (983b16115)
- Write the highlights and upgrade notes for the next release (#1427) (b4de645c9)
- Reuse traced child compiles in dev and rebuild when a file returns (#1426) (02a25ccf3)
- Say when a config file pinned the browser binary, name its key (#1422) (8ce934d92)
- Resync the bundled template when a release moves the pin (#1420) (8c53b1454)
- Move the templates pins to the head with the docs site blue (#1419) (3bf01b16e)
- Count what an env save asks for, not how many watcher events came (#1418) (9adfec925)
- Say where a JSON file fails without quoting its text (#1416) (31c40a0ea)
- Keep a Firefox session through a self-update restart on Windows (#1412) (880ec764b)
- Keep release highlights short and fold the rest in the notes (#1415) (9d478bdee)
- Scan only changed scripts in the runtime trace on dev rebuilds (#1414) (021c2a9ac)
- Name the pinned binary on a failed launch, keep binary flags (#1411) (27b9ac104)
- Reuse a compiled root-absolute ref across unrelated dev rebuilds (#1410) (33dd32d7f)
- Move the templates gate pin to the head with pinned examples (#1413) (b63f0b1e6)
- Read the source manifest once per compilation in develop (#1409) ([a259a4baf](https://github.com/extension-js/extension.js/commit/a259a4bafe1042815adb
4.3.0 (November 21, 2026)2026-11-22
这版主要围绕开发体验和构建可靠性做了一轮打磨。热重载更聪明了:保存构建从未读取的文件不再触发重载,保存页面只刷新展示它的标签页,只有项目清单和 locales 才强制全量重载;浏览器还在启动或上一次重载未落地时,重建会排队等待。重载失败不再悄无声息——--output json 与 events.ndjson 会报出 WRELOADNOTAPPLIED 警告,浏览器控制台的重载消息也带上了错误码。
构建端按目标浏览器分别输出:Firefox 对齐 firefox >= 98,Safari 对齐 safari >= 15.4,权限项的浏览器前缀(如 "gecko:tabs")只在对应浏览器保留。Babel 配置与 tsconfig 现在真正生效,extension.config.js 会读到当前命令的 mode 与浏览器,.env.<browser> 因此能注入 dev。
报错也更清楚:损坏的 package.json 会以 EPACKAGEJSONINVALID 一次性说明问题;JSON 模式下被 Ctrl+C 中断也会写出带 EINTERRUPTED 的 stopped 帧。占位符替换做了转义,非 UTF-8 页面会转换并告警,build --zip 不再把上次构建打进包里。extension create 生成 npm 认可的包名,extension install edge 不再卡在 sudo 提示上。
升级注意:带 BOM 或 UTF-16 的 package.json 现在会直接报错,请存为 UTF-8;遗留的 Babel 配置会参与构建,需安装 babel-loader 与 @babel/core;Pages/、Scripts/、Public/ 必须小写;dev 重载 socket 从 /ws 迁到 /ws/<实例 id>,匹配 /ws 的代理规则需放行更长路径。
4.2.0 (November 20, 2026)2026-11-20
Extension.js 这版把开发循环的稳定性作为重点:保存修复构建错误的文件会触发页面重建,被删除又写回的内容脚本会重新构建,macOS 上不再漏掉编辑,同一进程内两个 dev 会话不再共用主机和端口;重启后 --output json 会重新输出 ready 并带 restarted: true。
构建产物更干净也更可诊断:.env、.npmrc、.git、.DS_Store 等私有文件一律不进包,即使放在 public/ 也一样,引用它们的页面或样式表会收到带代码的警告;命名的构建警告和错误都带稳定代码,--output json 输出不含终端排版和本机路径,方便脚本与 CI 匹配。
polyfill: true 下,MAIN world 内容脚本、运行时注册进 MAIN world 的脚本和沙箱页面不再打包 webextension-polyfill,避免此前的报错。失败也不再干等:浏览器 3 分钟未启动、Safari 首次打包 10 分钟未完成会报 EBROWSERSTART_TIMEOUT,浏览器配置被锁会直接给出修复办法。
其他改动:extension install chrome firefox 支持一次装多个浏览器;perfBudgets.onExceed: 'error' 可让超预算的生产构建直接失败;import href from './panel.css?url' 可拿到编译后样式表的 URL。
升级注意:打包器升至 rspack 2.3.3,不再内置 postcss-preset-env,若 PostCSS 配置引用了它需自行安装;无 package.json 的项目 dist/ 改写到指定目录;dev 停止超时改报 ESHUTDOWNTIMEOUT,无可用调试端口报 EPORTUNAVAILABLE;extension-env.d.ts 仅在 package.json 列出 @types/chrome 时才引用它。
4.1.41 (November 16, 2026)2026-11-16
4.1.41 版本更新了内置的扩展 API 类型定义,现在无需再安装 @types/chrome 就能获得完整的类型检查。默认类型与浏览器实际接受的调用方式保持一致:参数之后紧跟回调的写法(如 chrome.tabs.sendMessage(tabId, message, callback))以及枚举对象(如 chrome.runtime.OnInstalledReason.INSTALL)都能直接通过类型校验,不再报错。对使用者来说,TypeScript 项目少了一个外部依赖,API 调用的类型提示也更贴近真实行为。
4.1.40 (November 16, 2026)2026-11-16
Firefox 构建会自动拆分大文件,避免超出 addons.mozilla.org 的脚本体积上限,拆不动的文件会直接点名。开发模式下,后台脚本运行时注册或注入 MAIN world 的内容脚本也能正常加载分块并解析扩展 URL。内容脚本样式现在能真正作用于当前标签页,组件样式、CSS modules 和 Vue 的 <style> 块都会生效,改样式无需刷新页面。Chromium 148 起原生支持 browser 对象,构建默认不再打包 polyfill,需要兼容旧版本可加 --polyfill。icon_variants 现在对所有浏览器生效,明暗图标都会生成校验,Safari 等暂不识别该字段的浏览器会自动回填 icons。
修复方面:manifest 中部分引擎拒绝的键会自动修复并逐项报告;模块目录解析改为每次构建只做一次,Firefox 共享分块加上了上限;node: 内置模块解析与配置钩子的 bundler 传递得到修正;浏览器二进制查找统一顺序并优先稳定版 Firefox;修复了 Chrome 与 Firefox 上内容脚本样式表 URL 的解析问题。
4.1.39 (November 6, 2026)2026-11-06
Safari 构建现在直接采用你自己的应用图标:extension build --browser=safari --app-icon=icon.png 会原样使用 PNG,不再把 manifest 图标铺在白色底板上。生产构建会警告命名像密钥的公共环境变量,避免 EXTENSIONPUBLICAPI_KEY 之类的内容被悄悄打进产物。新增 DevTools + SQLite 模板,npx extension@latest create my-extension --template=devtools-typescript-sqlite 可直接启动由浏览器内 SQLite 支撑的 DevTools 面板。Firefox 内容脚本在重载后只注入一次,缺失的 scripting 权限会明确报错而非静默失败。Edge 商店 zip 会剔除 manifest 的 key,但 dist/edge 保留它,未打包安装仍能维持 OAuth 回调依赖的固定 ID。另新增 exclude 配置项,可按浏览器排除文件;修复了符号链接路径下重载文件识别错误的问题。
4.1.38 (October 31, 2026)2026-11-01
模拟 Chromium 启动不再需要额外开关:extension dev --browser=chromium-emulator 现在直接拉起模拟浏览器;若引擎地址不可达,会提示具体来源,而不是甩出一个空白页。
wasm 体积预算改为按实际加载面判断:只被页面和 worker 引用的 .wasm 享受 32 MiB 额度,由内容脚本或 service worker 加载的仍按 1 MiB 计并给出警告。新增 perfBudgets.ignore,可用输出路径或通配符豁免指定资源。
4.1.37 (October 31, 2026)2026-10-31
extension.js 4.1.37 更新:新增开发专用页面与脚本,在 pages/ 下写 player.dev.html 或在 scripts/ 下写 bench.dev.ts,只会跑在 extension dev 里,生产构建完全不含相关 HTML、chunk 与 manifest 条目。extension.config.js 新增 include 配置项,可把项目外的模型权重或导出目录映射进构建产物,且按浏览器、按命令分层生效。
MAIN world 内容脚本改动较实用:生产构建不再向宿主页暴露扩展的 base URL 与清理用全局变量,开发浏览器也能通过机器人检测、登录弹窗不再卡住。WebAssembly 单独享有 32 MiB 体积预算,onnxruntime、ffmpeg 这类端侧 ML 构建不会再被它永远达不到的警告卡住,需要收紧时可用 perfBudgets.wasm 自行设限。另修复若干细节:require() 被置为 false 时不再打进 bundle、usedynamicurl 资源不重复进静态 WAR 分组、压缩包文件名自动转写重音字符。
4.1.36 (October 27, 2026)2026-10-28
v4.1.36 更新
extension dev 现在以扩展真正连上 Chrome 开发会话才打印 ready;若迟迟连不上,会直接点名卡住的 profile,排查不再靠猜。
extension build 写入正在运行的 extension dev 所服务的目录时会直接中止并提示改用 --out-dir,避免把浏览器里正在用的文件覆盖掉。
上架前的提醒也提前了:生产构建会标记清单里残留的 localhost 等回环地址;Edge 构建会警告内嵌设置页会被裁到 368px,并给出一行 edge:options_ui 修法。
另修复 tabs.create({url}) 触发的 tabs 权限警告(#920),以及若干稳定性问题:开发构建保活模块 Service Worker、生产构建清理开发文件、Safari 与 AMO 相关提示更准确。
4.1.35 (October 22, 2026)2026-10-23
这版主要解决三件事:build 命令新增 --out-dir,可以把产物写到 <path>/<browser>,dist/<browser> 照旧交给 dev 服务器,跑测试或商店打包不再打断正在调试的窗口;内嵌 options 页修复了数据未到时画空、导致 Chrome 选项对话框打不开的问题,现在先渲染首帧布局,对话框正常弹出并随内容撑高;webaccessibleresources 以你自己的声明为准,已限定到少数站点的资源即使被 scripts/ 下的文件引用,也不会被放宽到全部来源。
另外补了一轮稳定性修复,涵盖 worktree 下的提交钩子与 gitignore 规则来源、浏览器启动报告与端口占用重连、dev 会话状态与 Windows 文件重命名、资源规则与主机匹配、运行时文件追踪,以及构建中的 CSS、解析与 manifest 字段处理。还加入了 content-reload 规范的可调度循环等共 23 项小改动。