Vue 3 将成为新的默认版本、TypeScript 4.6 Beta 发布 | 淘系前端架构周刊 220124 期

3,049 阅读1分钟

🗞 News

Vue 3 将成为新的默认版本

Vue 3 将于 2022 年 2 月 7 日成为新的默认版本!

经过了长时间的“软发布”,Vue 3 及其相关生态已逐渐稳定,即将成为新的默认版本,官方文档将会默认切换到 Vue 3,GitHub 仓库也已更名。

原文链接:Vue 3 将成为新的默认版本 - 知乎 (zhihu.com)

TypeScript 4.6 Beta 发布

本次更新带来了以下新特性:

  • 支持在 super() 前执行代码
  • 递归类型增强
  • 索引访问的类型推导
  • 参数类型的控制流分析支持
  • 新的性能分析工具
  • &etc.

中文 Release 信息:TypeScript 4.6 beta 发布:递归类型检查增强、参数的控制流分析支持、索引访问的类型推导 - 知乎 (zhihu.com)

📦 Open Source

fastify-vite

一个集成了 Vite 的 Fastify 插件,用于创建 Vite SSR 应用。

Documentation:Fastify plugin for Vite integration | fastify-vite

GitHub Repo:fastify/fastify-vite: Fastify plugin to serve Vite SSR applications with universal API, data fetching and hydration utilities. (github.com)

1-Line Layouts*

一个有趣的网站,列举了非常多常用的页面布局,通过一行代码使用 grid 布局或 flex 布局即可实现。

HomePage:1-Line Layouts (1linelayouts.glitch.me)

📑 Article

The Vite Ecosystem

文中详细介绍了 Vite 生态中的一些技术方案,可供调研。

原文链接:The Vite Ecosystem | patak

Node.js 十大设计缺陷 - Ryan Dahl - JSConf EU

视频链接:10 Things I Regret About Node.js - Ryan Dahl - JSConf EU - YouTube

为什么你应该考虑将 node_modules 上传到远程仓库

Google Chrome DevTools 团队谈到他们团队会将 node_modules 上传到 git 仓库中,这其中的原因在文本中做了详细介绍。

原文链接:为什么你应该考虑将 node_modules 上传到远程仓库 (qq.com)