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

Updated deprecated packages "azure-arm-cosmosdb" and "azure-arm-postgresql" #1730

Merged
merged 7 commits into from
Nov 2, 2020

Conversation

neelip
Copy link
Member

@neelip neelip commented Oct 23, 2020

Deprecated packages: azure-arm-cosmosdb, azure-arm-postgresql --> @azure/arm-cosmosdb, @azure/arm-postgresql
Dependencies: vscode-azureextensionui@latest, @azure/ms-rest-js, @azure/ms-rest-azure, @azure/arm-resources,
@azure/ms-rest-nodeauth

@neelip neelip requested a review from a team as a code owner October 23, 2020 20:33
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/AzureDBExperiences.ts Outdated Show resolved Hide resolved
…ExperienceLabel; updated @types/node and @types/vscode
package.json Outdated
@@ -6,7 +6,7 @@
"displayName": "Azure Databases",
"description": "Create, browse, and update globally distributed, multi-model databases in Azure.",
"engines": {
"vscode": "^1.40.0"
"vscode": "^1.50.0"
Copy link
Member

Choose a reason for hiding this comment

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

Not quite - when you update the VS Code engine, you always want to be on the minimum version you need (in our case 1.48.0). Otherwise, people on older versions of VS Code won't get the update to our extension until they update VS Code, which just slows down the adoption of our latest extension

package.json Outdated
"@azure/cosmos": "^3.6.3",
"@types/documentdb": "^1.10.2",
"@types/fs-extra": "^8.1.0",
"@types/keytar": "4.0.1",
"@types/mocha": "^7.0.2",
"@types/mongodb": "^3.3.2",
"@types/node": "^12.0.0",
"@types/vscode": "1.40.0",
"@types/node": "^14.14.5",
Copy link
Member

Choose a reason for hiding this comment

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

You should keep the Node types at 12. Our version of Node is controlled by VS Code. You can find that info by doing "Code -> About Visual Studio Code" (the minor/patch version doesn't really matter, just the major version). For example:
Screen Shot 2020-10-27 at 3 27 19 PM

@@ -6,7 +6,7 @@
"displayName": "Azure Databases",
Copy link
Member

Choose a reason for hiding this comment

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

In other repos, I had to add this to get the build to pass when updating the azure packages:
https://github.com/microsoft/vscode-azurefunctions/blob/main/tsconfig.json#L23

May or may not help the build error you're seeing for this PR

Copy link
Member Author

@neelip neelip Nov 2, 2020

Choose a reason for hiding this comment

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

It works, thanks! I was getting a 'async' modifier cannot be used in an ambient context error in the vscode-azureextensionui package.

@neelip neelip merged commit f86ccb7 into main Nov 2, 2020
@neelip neelip deleted the neelima/update-vscode-azureextensionui branch November 2, 2020 21:03
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants