“ zx 8.0.0 正式发布,谷歌开源的脚本工具 头条 ”
zx v8.0.0 已正式发布。zx 是一个更方便、更友好地帮助开发者写脚本的工具,由谷歌开源和负责维护。 新版本引入了许多新功能、改进和 bug 修复。其中包括使用esbuild和dts-bundle-generator来打包 js 文件和生成类型定义,以及更安全、更稳定,且安装时间显著缩短。 此外,zx 现在体积缩小了约 20 倍,并且引入了 Options presets。zx 核心也已经完全重构,并作为一个名为zurk的独立包提供。 新版本还引入了一些新的 API,比如$.sync()API用于同步执行命令,以及AbortController用于中止命令执行。此外,kill方法也已公开,用于终止任何进程。还有一些其他改进和修复,比如引入了$.postfix选项,与$.prefix类似。 详情查看发布公告。
推荐阅读
每日一言
"<!doctype html> <html lang="Zh-cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex,nofollow"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta name="renderer" content="webkit"> <title>您请求的文件不存在!</title> <link type="text/css" rel="stylesheet" href="https://www.oick.cn/css/404.css" /> <link rel="shortcut icon" href="http://www.oick.cn/favicon.ico" type="image/x-icon" /> </head> <body> <div id="wrap"> <div> <img src="https://www.oick.cn/imgs/404.png" alt="404" /> </div> <div id="text"> <strong> <span></span> <a href="javascript:history.back()">返回上一页</a> </strong> </div> </div> <div class="animate below"></div> <div class="animate above"></div> </body> </html>"