Pinned Tweet
At #io19, @_gsathya and I gave a talk on cutting-edge JavaScript features: youtube.com/watch?v=c0oy0vQK…
➡️ WeakRef
➡️ Intl.*
➡️ Promise.{allSettled,any}
➡️ numeric separators
➡️ Array#{flat,flatMap}
➡️ Object.fromEntries
➡️ String#matchAll
➡️ …and more!
That’s a first: GitHub’s Advisory Database (incorrectly) flags Puppeteer as malware. github.com/github/advisory-d… We are no longer able to publish new releases.
Anyone at @github or @Microsoft who can escalate this, please?
“Jpegli can compress high-quality images 35% more than traditional JPEG codecs.”
Jpegli is a promising new technology that has the potential to make the internet faster and more beautiful.
opensource.googleblog.com/20…
Chrome for Testing: reliable downloads for browser automation developer.chrome.com/blog/ch…
📢 We’re aligning the ChromeDriver release process with that of Chrome!
This makes it possible to easily grab compatible browser + driver binaries for any user-facing Chrome version across all release channels (Stable/Beta/Dev/Canary).
More info: groups.google.com/g/chromedr…
Did you know that “old” Chrome Headless (2017–2023) was a separate, alternate browser implementation that just happened to be shipped as part of the same Chrome binary? 🤯 It doesn’t share any of the Chrome browser code in //chrome!
Say hello to --headless=new in Chrome 112!
Chrome’s Headless mode just got a whole lot better! We made Headless more useful for developers by bringing it closer to Chrome’s regular “headful” mode.
👉🏼 developer.chrome.com/article…
Hedging my bets: mastodon.xyz/@mathias
12
SVG supports `svgView(…)`, `viewBox(…)`, `preserveAspectRatio(…)`, and `transform(…)` in URL fragment identifiers 🤯
New article! SVG sprites: old-school, modern, unknown, and forgotten. It’s time to revisit the old SVG sprites trick and dig out a few alternative methods from the SVG spec and Internet archives 🧐
pepelsbey.dev/articles/svg-s…
The first commit to @WebKit was 21 years ago today. Safari was released two years later. WebKit open-sourced in 2005. trac.webkit.org/changeset/1
🔥 JavaScript regular expressions are getting more powerful!
The RegExp `v` flag enables `unicodeSets` mode, unlocking support for Unicode properties of strings in \p{…}, set notation, string literal syntax, and other new features and improvements.
v8.dev/features/regexp-v-fla…

ALT // Match all RGI emoji (“Recommended for General Interchange”): const reEmoji = /^\p{RGI_Emoji}$/v; // Match an emoji that consists of just 1 code point: reEmoji.test('⚽'); // '\u26BD' // → true ✅ // Match an emoji that consists of multiple code points: reEmoji.test('👨🏾⚕️'); // '\u{1F468}\u{1F3FE}\u200D\u2695\uFE0F' // → true ✅
![// Match all Greek symbols except for “π” using set difference: /[\p{Script_Extensions=Greek}--π]/v.test('π'); // → false // Match all Greek letters using set intersection: const reGreekLetters = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v; // U+03C0 GREEK SMALL LETTER PI reGreekLetters.test('π'); // → true // U+1018A GREEK ZERO SIGN reGreekLetters.test('𐆊'); // → false](https://pbs.twimg.com/media/FWQ2Y_0XEAg0NqX.jpg?name=small&format=webp)
ALT // Match all Greek symbols except for “π” using set difference: /[\p{Script_Extensions=Greek}--π]/v.test('π'); // → false // Match all Greek letters using set intersection: const reGreekLetters = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v; // U+03C0 GREEK SMALL LETTER PI reGreekLetters.test('π'); // → true // U+1018A GREEK ZERO SIGN reGreekLetters.test('𐆊'); // → false
RFC 9239 updates JavaScript MIME type registrations to align with reality.
➡️ The JavaScript MIME type is now unambiguously `text/javascript`.
➡️ `.mjs` is now a registered extension, specifically for JavaScript modules.
rfc-editor.org/rfc/rfc9239
🧵
Exciting to see soft typing in JS being explored again!
However, I’m seeing lots of comments suggesting that JavaScript engines might use the new type info to somehow vastly improve run-time performance. 🚩 This is misleading.
🧵
Could we have TypeScript with no build step? Could we have types in JavaScript? Maybe!
We're exploring bringing optional type syntax into the JavaScript language!
devblogs.microsoft.com/types…
@bmeurer and myself explained some of the reasons for this here: v8.dev/blog/react-cliff#valu… In short, there’s a fundamental mismatch between JavaScript-level types and engine-level value representation.
'🇻🇦🇩🇲'.replace('🇦🇩', '🇬🇺'); // → '🇻🇬🇺🇲'
'🇰🇷🇪🇹'.replace('🇷🇪', '🇳🇱'); // → '🇰🇳🇱🇹'
'🇨🇵🇸🇨'.replace('🇵🇸', '🇻🇨'); // → '🇨🇻🇨🇨'
'🇧🇧🇸🇱'.replace('🇧🇸', '🇪🇬'); // → '🇧🇪🇬🇱'
'🇦🇹🇨🇺'.replace('🇹🇨', '🇸🇲'); // → '🇦🇸🇲🇺'
'🇬🇱🇦🇪'.replace('🇱🇦', '🇮🇪'); // → '🇬🇮🇪🇪'
github.com/mathiasbynens/fla…
Can I Unicode‽ update: Chrome 98 and Firefox 96 already support Unicode 14 in JavaScript identifiers & regular expressions! 🔥
mathiasbynens.github.io/cani…
The most popular emoji used worldwide are 😂 ❤️ 🤣 👍 😭 🙏 😘 🥰 😍 😊 (in that order).
Find more emoji usage fun facts + the raw data at observablehq.com/@jenniferda… by @jenniferdaniel
What’s that — proper non-ASCII interpunction in @v8js error messages?! What a time to be alive!
That U+2026 HORIZONTAL ELLIPSIS 😍
2
21
For those wondering, this was the patch: chromium-review.googlesource…
1
3










