15

技术周刊 2020-11-05:使用指纹登录 Web

 3 years ago
source link: https://zhuanlan.zhihu.com/p/274570704
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.

前端快爆

  • Create React App 4.0 发布 ,带来了全新的热加载:
    • 使用 React 官方支持的 react-refresh 替代了 react-hot-loader
    • 启用全新的 JSX 转换以支持 React 17
    • 支持了 TypeScript 4
    • 升级了 Jest 26
    • PWA / workbox 升级:把 workbox 切换至 InjectManifest 模式,这样可以让用户自定义 Service Worker 配置
  • 在 iOS 14 和 macOS Big Sur 上提供了 Web 端通过 Web Authentication API 调用 Face ID 和 Touch ID 验证用户的能力,Webkit 官方撰文介绍了具体的使用方式。

点评:附一篇深入介绍 Web Authentication 的好文:谈谈 WebAuthn

  • babel 发布 7.12.0 版本
    • 支持了 TypeScript 4.1 版本
    • 支持 Class static blocks 支持以代码块的形式初始化静态类成员:
class C {  
  static #x = 42; 
  static y;  
  static {  
    try {  
      this.y = doSomethingWith(this.#x);
    } catch {
      this.y = "unknown";     
    }   
  } 
}
import json from "./foo.json" assert { type: "json" };
  • Chrome 86 中开启了试用功能 WebCodecs API,通过它可以直接利用浏览器原生功能进行音视频的编码/解码,而不用像以前一样必须打包 WebAssembly 类库。使用示例
qQzQrqf.jpg!mobile
  • 第十五届 D2 前端技术论坛 将于 2020 年 12 月 19 日12 月 20 日 两天在优酷进行线上直播,本次 D2 调整了往年一天并行三个专场的形式,今年进行串行的内容设置,以便两天时间让大家可以看完全部的内容,收获更多的知识,获得更多的成长
ANFbiaU.jpg!mobile

百宝箱

  • Workbox 是 Google 出品的一个帮你更容易使用 PWA 特性加速网站的类库
j6ZJBj2.jpg!mobile
  • Recoil 是 Facebook 官方推出的 React 状态管理库,使用轻巧简单,具有纯正的 React 范式,或许将来有官方逼死同人的可能

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK