June 2022
ECMAScript 2022 standardized
Ecma adopted ECMAScriptThe standardized specification for JavaScript — ES3, ES6, and later editions define the language. 2022 in June 2022 — adding class fields, top-level `await`, `Array.at()`, and `Object.hasOwn()`.
What it was for
ES2022 let modules use top-level await for cleaner async bootstrapping, and class fields removed constructor boilerplate for ReactA JavaScript library for building UIs — component trees and declarative rendering for the web./Vue class components and NodeNode.js — JavaScript on the server via an event-driven runtime built on V8. services. `at(-1)` finally gave arrays a readable 'last element' accessor.
Why it's here
ES2022 delivered top-level await and class fields that frameworks and bundlers had polyfilled for years.
Why it mattered
Module-level async initialization became standard without IIFE wrappers.
What it solved
Developers needed awkward patterns to await data before exporting module bindings.
Media
- ImageECMAScript
Plest, Public domain, via Wikimedia Commons
Related
- ECMAScript 2020 standardizedJune 2020
- ECMAScript 2024 standardizedJune 2024