3

技术周刊 2021-03-22:Flutter 2.0 正式发布

 3 years ago
source link: https://zhuanlan.zhihu.com/p/359072564
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

技术周刊 2021-03-22:Flutter 2.0 正式发布

感谢你关注我,微信:feng1234yu
  • Flutter 2.0 正式发布:在关闭了 24,541 个 issue,合并 17,039 个 PR 后,Flutter 2.0 版本发布
    • Flutter Web 进入 stable 版本:除了 HTML 渲染器,还添加了一个新的基于 CanvasKit 的渲染器。追加了特定于 web 特性的支持,比如 Link widget,以确保你的应用程序在浏览器中运行时感觉像是一个 web 应用程序
    • 在 Dart 语言引入 null safety:默认情况下,所有变量都是非空的,除非显式声明为 nullable
    • Flutter Desktop 的测试版已经进入了 stable 通道供大家尝试:优化了拖动列表的方式、滚动条的表现、支持操作系统命令行参数、支持 IME 以提供多国语言输入
    • 新的 iOS 功能:提供了符合 iOS 风格的搜索框、表单组件
    • 新的小组件:自动完成工具和持久化的通知条
    • 更好的集成到原生App:经过优化,可以用很小的内存消耗实现多个实例的集成
    • 提供了 Flutter Fix 以帮助用户自动化迁移过时 API
    • 更先进的开发者工具
  • GoGoCode 是阿里妈妈(也就是本团队)出的新工具,它提供了类似于字符串替换的语法简化了AST变换的动作,让批量修改项目代码更简单
v2-61dad7ea86337647533f2331a4049db5_720w.jpg
  • V8 9.0 发布
    • 当正则表达式以 /d 结尾时,正则表达式的执行结果的 indices 属性会返回索引范围
const re = /(a)(b)/d;        // Note the /d flag.
const m = re.exec('ab');
console.log(m.indices[0]); // Index 0 is the whole match.
// → [0, 2]
console.log(m.indices[1]); // Index 1 is the 1st capture group.
// → [0, 1]
console.log(m.indices[2]); // Index 2 is the 2nd capture group.
// → [1, 2]
    • 更快的 super 属性访问
    • 更快的 JS 到 Wasm 的调用
    • 不再支持 for ( async of
  • 静态网站生成工具 Gatsby 3.0,带来了诸多性能提升:
    • 本地开发时只加载,本地开发速度提升 80%
    • 最终的构建也采用增量构建,降低构建时间
    • 更新了 Node.js 12、Webpack 5、React 17、GraphQL 15、ESLint 7 作为依赖
  • openmct 是 NASA(美国航空航天局)开源的下一代任务管理工具,用 JavaScript 写成。

点评:我们的征途是星辰大海,出发前别忘了 npm install

v2-9c0d46e2dd4c9a74f82cd0a3daa611a0_720w.jpg

编辑:

& 审阅:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK