ES2022 Preview: 10 Exciting JavaScript Language Features From 2021

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • proposal-top-level-await

    Discontinued top-level `await` proposal for ECMAScript (stage 4)

  • top-level await feature for ES modules

  • zx

    A tool for writing better scripts

  • The top-level await feature for ES modules makes it easy to use await in CLI scripts (e.g., with .mjs sources and zx), and for dynamic imports and data loading. It extends the await functionality into the module loader, which means that dependent modules will wait for async modules (with top-level await) to be loaded.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • error-cause

    An ES-spec-compliant shim/polyfill/replacement for the `.cause` property on all Error types that works as far down as ES3

  • The current browser support for the error clause feature is limited (Dec 2021 usage: ~70%), and it is not available in Node.js yet. You can use the error cause polyfill to start using the feature today, even in JS environments where it is not supported.

  • regexp-match-indices

    Polyfill for the RegExp Match Indices proposal

  • The browser support for the RegExp match indices feature is currently limited (Dec 2021 usage: ~80%). In Node.js, you can activate the feature with the --harmony-regexp-match-indices flag, but it is disabled by default. You can use the RegExp match indices polyfill in the meantime.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts