Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tsconfig to target es2017 #15545

Merged
merged 5 commits into from
Jun 9, 2021
Merged

Update tsconfig to target es2017 #15545

merged 5 commits into from
Jun 9, 2021

Conversation

xirzec
Copy link
Member

@xirzec xirzec commented Jun 3, 2021

This will greatly simplify TS codegen by avoiding the need to polyfill async/await. Async functions are supported all the way down to Node 8, so this isn't a compat concern except for IE11.

This PR leaves in place existing downlevel targets for storage, cosmos, and core. If this change is merged, I will track getting those packages updated in an issue.

@xirzec xirzec added the Client This issue points to a problem in the data-plane of the library. label Jun 3, 2021
@xirzec xirzec self-assigned this Jun 3, 2021
@xirzec xirzec requested a review from deyaaeldeen as a code owner June 3, 2021 21:19
@ghost ghost added Azure.Core App Configuration Azure.ApplicationModel.Configuration Digital Twins Azure.Identity labels Jun 3, 2021
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sample doesn't need a target?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops this is a bug, I excluded 'samples' but this is sample-react one sec will fix

Copy link
Member

@deyaaeldeen deyaaeldeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, compiled files will look much better! Thanks!

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2015",
"target": "ES2017",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tsconfig for dev-tool is noEmit, so does it even need a target (or module for that matter)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's noEmit, but doesn't ts-node still use tsconfig to decide how to compile it so Node can interpret?

Copy link
Member

@witemple-msft witemple-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xirzec xirzec merged commit 5b5d7a9 into Azure:master Jun 9, 2021
@xirzec xirzec deleted the updateTsTarget branch June 9, 2021 15:59
sadasant pushed a commit to sadasant/azure-sdk-for-js that referenced this pull request Jun 21, 2021
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Aug 11, 2021
Web ant94 2021 02 01 attempt 2 (Azure#15548)

* Adds base for updating Microsoft.Web from version stable/2021-01-15 to version 2021-02-01

* Updates readme

* Updates API version in new specs and examples

* Changes for api-version 2012-02-01 (Azure#15545)

* Address PR comments - AppServiceCertificateOrders (Azure#15561)

* Changes for api-version 2012-02-01

* Address PR comments - AppServiceCertificatesOrder

* Fix spelling issue

* Fix summary+description for GET siteseal

* Add reseller to custom words

* Make DedicatedHostCount R/W (Azure#15580)

Co-authored-by: Chris Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration Azure.Core Azure.Identity Client This issue points to a problem in the data-plane of the library. Digital Twins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants