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

[Storage] Use ES2017 #15835

Merged
merged 15 commits into from
Jun 24, 2021
Merged

[Storage] Use ES2017 #15835

merged 15 commits into from
Jun 24, 2021

Conversation

deyaaeldeen
Copy link
Member

@deyaaeldeen deyaaeldeen commented Jun 17, 2021

Fixes #15640
Fixes #15671

Updates core-http, core-lro, and storage packages to compile to ES2017.

@ghost ghost added Azure.Core Storage Storage Service (Queues, Blobs, Files) labels Jun 17, 2021
@ramya-rao-a
Copy link
Contributor

With this change, are all Track 2 packages in our repo now targeting ES2017?
If so, then do we need to mention it in the tsconfig file for each package or can we update it in the root tsconfig file?

@deyaaeldeen
Copy link
Member Author

@ramya-rao-a yes all of them target ES2017. @xirzec already updated the root tsconfig file.

I have it explicit in some packages because for some reason they do not extend the root tsconfig and I am not sure why.

Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

I'm good with this change, but I think we need to bump some versions as part of it

sdk/core/core-http/tsconfig.json Show resolved Hide resolved
@deyaaeldeen deyaaeldeen requested a review from chradek as a code owner June 23, 2021 22:28
// TypeScript imports should use src directly
relativePath += "/src";
}

Copy link
Member Author

Choose a reason for hiding this comment

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

This was done before for reasons that @witemple-msft does not remember and it is causing the storage-file-datalake samples to fail compiling because storage-common is just a simple folder of source files instead of being a package with a package.json (unlike keyvault-common) so compiled files there do not have access to tslib.

@deyaaeldeen deyaaeldeen requested a review from xirzec June 23, 2021 23:17
@@ -2,7 +2,6 @@
"extends": "../../../tsconfig.package",
"compilerOptions": {
"strict": true,
"target": "es5",
Copy link
Member Author

Choose a reason for hiding this comment

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

this was needed because it depends on core-http. There is no need to bump the version I believe since it is still in beta.

@jeremymeng jeremymeng added the Client This issue points to a problem in the data-plane of the library. label Jun 24, 2021
Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

I'm good with this change, but we should make sure to merge this and #15925 at the same time.

Also we should get the Storage team to sign off before merging.

sdk/core/core-lro/CHANGELOG.md Outdated Show resolved Hide resolved
@ramya-rao-a
Copy link
Contributor

Update:

I have pushed a few commits to keep the version updates of the core packages out of this PR.
We will be doing that as part of #15925 where we will update both core-http and core-lro

@ramya-rao-a
Copy link
Contributor

@EmmaZhu, @XiaoningLiu, @ljian3377, We are going ahead with this change to standardize the target in tsconfig file as we have other PRs waiting on this. Please use #15671 to discuss any concerns you have here. We are doing a minor version update as this is not a bug fix.

@ramya-rao-a ramya-rao-a merged commit d3c3f90 into Azure:main Jun 24, 2021
@deyaaeldeen deyaaeldeen deleted the core-storage-use-es8 branch June 24, 2021 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[storage] Adopt target: es2017 in tsconfig Update tsconfig to target es2017 for remaining packages
4 participants