Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【第十四期】2021-11-26 #14

Open
Geekhyt opened this issue Nov 26, 2021 · 0 comments
Open

【第十四期】2021-11-26 #14

Geekhyt opened this issue Nov 26, 2021 · 0 comments

Comments

@Geekhyt
Copy link
Owner

Geekhyt commented Nov 26, 2021

技术资讯

  1. TypeScript 4.5 发布
  • Awaited 和 Promise 类型增强
  • 支持 node_modules 来使用 lib
  • 模板字符串作为判别式
  • --module 2022
  • 条件类型的尾递归省略
  • ...
  1. React 18 进入 Beta 阶段

  2. React Router 有竞品了,React Location

  3. Rust 的 Moderation Team 集体辞职,声称为了抗议 Core Team 不够负责任。

技术资料

  1. 你有没有想过,“nodemon”在内部是如何工作的?让我们在 10 分钟内构建我们自己的“nodemon”!

一道很好的 Node.js 面试题

  1. 使用 Rust 创建内存和类型安全的 Node.js 模块,Neon 入门文章。

与 Go 和 Rust 等语言的框架相比,Node.js 并没有那么快,不过 Neon 允许你使用 Rust 编写 JavaScript,不仅具有 Rust 的类型、内存安全,而且可以通过 Cargo 访问 Rust 的生态系统。

image

  1. 相比 Puppeteer ,Playwright 应用更加广泛,这是一篇从 Puppeteer 迁移到 Playwright 的总结文章。

  2. GitHub 对 npm 生态系统安全做出了承诺

前阵子 ua-parser-js、coa、rc 等 npm 包均被恶意攻击,原因均涉及 npm 账户 ATO 接管事件未启用双因素身份验证。GitHub 对 npm 生态系统安全做出了承诺。npm 团队也在一直进行安全改进,可以自动监控和分析新发布的软件包,并识别恶意代码。目前时间是 10 分钟。

  1. IndexedDB 包装器,解决了原生 IndexedDB API 的主要问题,可以和前端主流框架集成

原生 IndexedDB API 有一些问题:

  • 不明确的错误处理
  • 糟糕的查询
  • 代码复杂度高

Dexie.js 提供了简洁的 API,拥有强大的错误处理、可扩展性等等能力。

  1. 为什么使用 Webpack 5 后,构建速度慢了 15 倍?原来罪魁祸首是 concat

  2. Rome 会取代 Webpack 吗?

Rome 是一个前端工具链,旨在将许多常用的前端开发工具统一并汇集在一个工具下。旨在取代流行的工具、如 Babel、ESLint、Webpack 等,它是一个 linter、编译器、打包器,不仅适用于 JavaScript,还适用于 TypeScript、HTML、CSS 等。

  1. 对于想成为大型开源项目的维护者,Dan 发布了一系列观点

好文推荐

@Geekhyt Geekhyt changed the title 【第十四期】2021-11-27 【第十四期】2021-11-26 Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant