5

技术周刊 2021-07-23:Chrome 92 发布

 3 years ago
source link: https://zhuanlan.zhihu.com/p/392630598
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.
neoserver,ios ssh client

技术周刊 2021-07-23:Chrome 92 发布

前端开发话题下的优秀答主
  • Chrome 92 发布,主要新功能有:
  • 更快的网络钓鱼网站检测:新的网络钓鱼检测算法,使网络钓鱼检测速度快 50 倍,耗电量也更少。
  • 新的网站隔离功能:由于 Intel 和 ARM 芯片中的 Spectre 和 Meltdown 安全漏洞,站点隔离于 2018 年首次引入,虽然它消除了某些攻击媒介,但它的缺点是使 RAM 使用率较高。该版本将站点隔离扩展到浏览器扩展程序,防止它们彼此共享进程。该功能不仅提供了额外安全层,而且无需从扩展中删除现有功能。

    JavaScript
  • 支持唯一字符串 UUID 的生成接口 crypto.randomUUID(),对应 Node.js 中常用的 uuid.v4
v2-22d8d06cef5fcb8e93fc75db1155c230_720w.jpg
  • Intl.DateTimeFormat 添加 dayPeriod 选项。
  • 为可索引类 (Array、String、TypedArray) 实现了 .at() 方法,可以对它们进行负值索引,当前规范处于 Stage 3 阶段。
  • CSS @font-face 中支持 size-adjust 描述符,允许缩放特定字体的字形大小来对字体内部进行微调,但不影响 emtext-underline-offset 等计算时的基准值。
  • 在7月份的 TC39 会议上,Array Find From Last 提案.findLast().findLastIndex())进入 Stage 3 阶段,可以从数组的尾部开始遍历寻找符合期望的元素。同时,还有 private-in 等提案进入了 Stage 4,RealmsObject.hasOwn 等提案也进入了 Stage 3。
const array = [{ value: 1 }, { value: 2 }, { value: 3 }, { value: 4 }];

// find/findLast
array.findLast(n => n.value % 2 === 1); // => { value: 3 }
array.findLast(n => n.value === 42); // => undefined

// findIndex/findLastIndex
array.findLastIndex(n => n.value % 2 === 1); // => 2
array.findLastIndex(n => n.value === 42); // => -1
  • 微软发布了全新的 3D 风格 emoji,已经在 Flipgrid 上线,并将于今年晚些时候登陆 Teams 和 Windows 系统,Yammer、Outlook 和其他平台将在明年推出。
  • CSS Module scripts 正式进入 HTML 规范中,它允许开发者用 import 的方式在 JS 中加载 CSS,例如:import styleSheet from "./styles.css" assert { type: "css" }


优秀 Demo

v2-66ea5d80be0598074ae07cf690a2a0ef_b.jpg
微软发布全新的 3D Emoji


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK