News for hackers. Stuff that matters.
Re:TypeScript NPM Packages Done Right by lolinder on Sunday September 24, 2023 @12:47PM (#37634739)
When we talk about "modern browsers", we're not talking about usage percentage, we're talking about browsers released in the past few years. If you need to support browsers older than that, that's great, but we don't call those modern browsers, that's legacy support.

Most modern browsers are evergreen, so targeting es2022 would be fine for most users. The exception is Safari, which is slower to incorporate new features and doesn't roll out its updates nearly as quickly as Chromium-based or Firefox, but even they have had es2016 support since 2016.

Re:TypeScript NPM Packages Done Right by nwienert on Sunday September 24, 2023 @12:57PM (#37634843)
Also Safari greatly picked up pace a few years ago and honestly it’s hard to categorize them as behind anymore. They lead in several areas, and have caught up in most.
Re:TypeScript NPM Packages Done Right by n2d4 on Sunday September 24, 2023 @01:49PM (#37635412)
Sure, but the reason why browser compatibility is being measured is to quantify that notion of "modern".

You can then use that to make your own decisions; if you're working on a high-tech video streaming platform for kids you can probably safely ignore the 5%, but if you're providing information on behalf of the government you might need to support much more than that.