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

[mgmt] migrate mgmt package to esm 9 #32366

Merged
merged 61 commits into from
Dec 31, 2024
Merged

[mgmt] migrate mgmt package to esm 9 #32366

merged 61 commits into from
Dec 31, 2024

Conversation

kazrael2119
Copy link
Contributor

@kazrael2119 kazrael2119 commented Dec 26, 2024

#32184
@azure/arm-databox
@azure/arm-databoxedge
@azure/arm-databoxedge-profile-2020-09-01-hybrid
@azure/arm-databricks
@azure/arm-datacatalog

@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Dec 26, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

"esm",
"commonjs"
],
"esmDialects": [
Copy link
Member

Choose a reason for hiding this comment

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

Are we shipping for React-Native and Browser support? If not, please remove the esmDialects.

Copy link
Member

@qiaozha qiaozha Dec 31, 2024

Choose a reason for hiding this comment

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

@mpodwysocki do you see any potential risk of adding this support? When we deprecated the very older version of Node SDK, we have this deprecation message "This package is deprecated in favor of @azure/arm-compute whick works both on node.js and browsers" See link which are actually from Ramya at that time, but we do have been ignoring the browser test for mgmt plane https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/databox/arm-databox/package.json#L80 so I was not sure if we want this or not

Perhaps @xirzec has some thoughts here ?

Copy link
Member

Choose a reason for hiding this comment

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

After some offline discussion with @mpodwysocki, we are fine with keeping this. Going to merge this for now. @xirzec feel free to let me know if you have any concerns, we can always revisit this :)

Copy link
Member

@MaryGao MaryGao Jan 2, 2025

Choose a reason for hiding this comment

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

@qiaozha @mpodwysocki since we shipped browser supported code in dist, should we enable the browser testing also?

Currently we skipped broswer testing by default, not sure any reason not doing that?

"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",

@qiaozha qiaozha merged commit fe6ba16 into main Dec 31, 2024
14 checks passed
@qiaozha qiaozha deleted the migrate-mgmt9 branch December 31, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants