Solid 团队在 Solid 1.0 发布五年后,正式推出了 Solid 2.0 的稳定版 1。此次更新的核心特性包括将异步逻辑引入响应式图、让服务器函数(Server Functions)回归核心库,以及针对 AI 代理编写代码的场景优化了诊断工具 1。同时,该版本简化了 API 表面,移除了多个旧原语,并将原本独立的元框架 SolidStart 的功能整合进核心或通用插件中 1。
在技术实现层面,Solid 2.0 退役了 SolidStart 元框架,其所需的基础原语现由核心库或框架无关的 Vite 插件提供 1。具体被移除的 API 包括 createResource、batch、startTransition、on、produce、createComputed 和 createMutable 等 1。此外,新版本引入了对 ReactiveScript 和 TSRX 的实验性语法支持,旨在通过编译进一步改进 AI 代理的编码体验 1。从 Beta 版到 RC 版期间,开发团队共合并了 971 个 PR,关闭了 753 个 Issue,并经历了 23 个 Release Candidate 及 14 周的测试 1。
The SolidJS team has released the stable version of Solid 2.0, marking a significant milestone five years after the launch of Solid 1.0 1. This update introduces asynchronous logic directly into the reactive graph and brings native support for Server Functions back into the core library 1. To streamline development, the API surface has been reduced by removing several legacy primitives, including createResource, batch, startTransition, on, produce, createComputed, and createMutable 1.
A major architectural change involves the retirement of the SolidStart meta-framework; its essential foundational primitives are now provided either through the core library or via framework-agnostic Vite plugins 1. The release also focuses on enhancing the developer experience, particularly for AI agents writing code, by optimizing diagnostic tools and introducing experimental syntax supports for ReactiveScript and TSRX to improve coding workflows through compilation 1. These changes reflect a substantial engineering effort during the transition from Beta to Release Candidate, which saw the merging of 971 pull requests, the closure of 753 issues, and a rigorous testing period spanning 14 weeks across 23 Release Candidates 1.
评论
还没有评论,欢迎留下第一条。