Javascript
ECMAScript Adds Top-level await Support
We can only use await operator within an async method. In ECMAScript 2022 we will be able to use it outside of the context of an async method in our modules.ES2022 Introduces Static Class Features
Private and public static fields along with private static methods would be officially included in ECMAScript 2022.JavaScript ES2022 Class Fields: Public and Private
Learn how ES2022 public and private class fields simplify JavaScript class definitions with cleaner syntax.JavaScript Private Fields and Methods
The class fields proposal provides private fields for classes and instances to JavaScript. With this proposal, any class element can be private.ES2021 WeakRef and FinalizationRegistry
ECMAScript2021 introduces new features WeakRef and FinalizationRegistry to manage garbage collection.Normalizing Redux State for Performance
Normalize Redux state by flattening nested data into separate entities with IDs, enabling simpler reducers and faster lookups.ES2021 Promise.any and AggregateError
ES2021 introduces Promise.any() which resolves with the first fulfilled promise, and AggregateError for handling multiple rejections.ES2021 replaceAll and Numeric Separators
ECMAScript 2021 introduces replaceAll() method and numeric separators for better string manipulation and number readability.Babel 7.14 Class Fields by Default
Starting from Babel 7.14 @babel/plugin-proposal-class-properties and @babel/plugin-proposal-private-methods plugins are enabled by default in @babel/preset-env.ES2021 Logical Assignment Operators
ES 12/2021 introduces new logical assignment operators for nullish(??=), AND(&&=) and OR(||=).