Formatter for JS & TS; `ShadowRealm` – a better `eval()`; shim for Import Maps; ESLint rules for async code

ES.nextNews: the latest in JavaScript and cross-platform tools
Curated by Dr. Axel Rauschmayer and Johannes Weber.

ES.next News

The latest in JavaScript and cross-platform tools

Rome Formatter, a new formatter for JavaScript and TypeScript
rome.tools@rometools
  • Rome Formatter mimics Prettier’s styling as much as possible.
  • Existing code formatters are not robust w.r.t. syntax errors: a single error can hold up formatting for the rest of the code. In contrast, Rome Formatter works well with incorrect code.
  • Implemented in Rust and 9–12 times faster than Prettier in their tests.
  • Future: Rome Formatter will be expanded to support more web languages such as CSS, HTML, and JSON.


ShadowRealms – an ECMAScript proposal for a better eval()
2ality.com@2ality
Class ShadowRealm provides a new way of evaluating code at runtime – think eval() but better:
  • Each instance has its own global JavaScript scope.
  • Code is evaluated in that scope. If it changes global data, that only affects the ShadowRealm, but not the real global data.


How ES Module Shims became a production Import Maps polyfill
guybedford.com@guybedford
Import Maps are now supported by 70% of users and Firefox just announced they are starting to implement them. For browsers that don’t support Import Maps, we can use ES Module Shims, a production-suitable polyfill. This post provides deeper insight into this polyfill:
  • The project’s architecture
  • How the polyfill mode came about
  • Performance benchmarks
  • Ideas for the future of the project


14 ESLint rules to help you write asynchronous code in JavaScript
maximorlov.com@_maximization
Explains how the following ESLint rules can help with asynchronous code:
  1. no-async-promise-executor
  2. no-await-in-loop
  3. no-promise-executor-return
  4. require-atomic-updates
  5. max-nested-callbacks
  6. no-return-await
  7. prefer-promise-reject-errors
  8. node/handle-callback-err
  9. node/no-callback-literal
  10. node/no-sync
  11. @typescript-eslint/await-thenable
  12. @typescript-eslint/no-floating-promises
  13. @typescript-eslint/no-misused-promises
  14. @typescript-eslint/promise-function-async



Looking for deeply qualified employees or customers? Advertise on ES.next News!
ES.next News reaches over 14,000 highly skilled and motivated developers. We take their trust seriously and have high editorial standards.
Check out our media data and get directly in touch with us.
Follow on Twitter

This email was sent to you. Want to change how you receive these emails?
You can unsubscribe from this list

Key phrases

Older messages

TC39 meeting in March; new Node.js features; Locale-aware sorting; built-in test runner for Node.js; supply chain security

Tuesday, April 5, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Updates from TC39

Searching Arrays backwards; importing JSON; AbortSignal.timeout(); parceljs; MDN Plus

Tuesday, March 29, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools ECMAScript proposal:

Type annotations; WebGPU; npm package `-`; console-based debugging; name clashes with proposed features

Tuesday, March 15, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools A proposal for type

MDN redesign; ShadowRealms; properties of primitives; controling Promise concurrency; detecting malicious npm packages

Tuesday, March 8, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools A new year, a new MDN

Publishing Deno modules to npm

Tuesday, March 1, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Dear readers! To

You Might Also Like

The best work laptop for most people

Friday, April 26, 2024

Old Kindle? Don't do this; How to change your IP address; Net neutrality restored -- ZDNET ZDNET Tech Today - US April 26, 2024 placeholder The work laptop I recommend to most people is not made by

New 'Brokewell' Android Banking Malware Spread Through Fake Browser Updates

Friday, April 26, 2024

THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.

Apple announces an iPad event for May 7

Friday, April 26, 2024

The Morning After It's Friday, April 26, 2024. Apple has scheduled its next product showcase for May 7, a few weeks before its Worldwide Developers Conference, clearing space for even more

[AI Incubator] Enrollment ends tonight.

Friday, April 26, 2024

Text or WhatsApp me your questions ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 04/26/2024

Friday, April 26, 2024

New blogs from Syncfusion Create Excel Table in Just 3 Steps Using C# By Mohan Chandran This blog explains how to create a table in an Excel document using Syncfusion .NET Excel Library in C# with code

ASP.NET Core News - 04/26/2024

Friday, April 26, 2024

View this email in your browser Get ready for this weeks best blog posts about ASP.NET Core! This newsletter is sponsored by elmah.io - the most advanced, yet so simple to set up, error logging and

Hacker Newsletter #697

Friday, April 26, 2024

Don't watch the clock; do what it does. Keep going. //Sam Levenson hackernewsletter Issue #697 // 2024-04-26 // View in your browser #Favorites Lattice is the AI-powered people platform that

TikTok threatens shutdown 📱, FCC passes net neutrality 🌐, the robotics renaissance 🤖

Friday, April 26, 2024

ByteDance would rather shut down TikTok than sell the company Sign Up |Advertise|View Online TLDR Together With Plaid TLDR 2024-04-26 6 fintech predictions you need to know for 2024 (Sponsor)

📧 What's inside MMA and how it can help you

Friday, April 26, 2024

What's Inside Modular Monolith Architecture? Hey there! 👋 I wish you an excellent end to the week. What better way to spend the weekend than diving headfirst into a 12+ hour course? Well, maybe

Data Science Weekly - Issue 544

Friday, April 26, 2024

Curated news, articles and jobs related to Data Science, AI, & Machine Learning ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏