From 7170aa04d88776572742519fee5716d7531144fc Mon Sep 17 00:00:00 2001 From: Ben Scott Date: Fri, 23 Apr 2021 16:31:25 -0700 Subject: [PATCH] Update lib for base/dom configs to target es2020 The functionality in esnext.asynciterable was standardised and is included in es2018 --- packages/typescript-configs/CHANGELOG.md | 7 ++++++- packages/typescript-configs/base.json | 2 +- packages/typescript-configs/dom.json | 5 ++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/typescript-configs/CHANGELOG.md b/packages/typescript-configs/CHANGELOG.md index 51a798b9..f9a42980 100644 --- a/packages/typescript-configs/CHANGELOG.md +++ b/packages/typescript-configs/CHANGELOG.md @@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - +## Unreleased + +### Breaking Change + +Increased the base lib target to es2020 in both `base.json` and `dom.json`. This allows for a greater range of standard features to be define. We expect typescript will be ran through Babel to transpile all features required for your target environment [[#239](https://github.com/Shopify/web-configs/pull/239)] + ## 4.0.0 - 2021-02-24 diff --git a/packages/typescript-configs/base.json b/packages/typescript-configs/base.json index 4a121989..34cdc333 100755 --- a/packages/typescript-configs/base.json +++ b/packages/typescript-configs/base.json @@ -4,7 +4,7 @@ "esModuleInterop": true, "isolatedModules": true, "experimentalDecorators": true, - "lib": ["dom", "es2018", "esnext.asynciterable"], + "lib": ["dom", "es2020"], "moduleResolution": "node", "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/packages/typescript-configs/dom.json b/packages/typescript-configs/dom.json index c17a0c86..eb57f957 100644 --- a/packages/typescript-configs/dom.json +++ b/packages/typescript-configs/dom.json @@ -5,9 +5,8 @@ "lib": [ "dom", "dom.iterable", - "es2017", - "esnext.asynciterable", - "scripthost" + "scripthost", + "es2020" ], "module": "esnext", "target": "es2017"