Skip to content

[KeyVault] Remove dependency on @azure/core-arm#5494

Merged
daviwil merged 4 commits intoAzure:masterfrom
daviwil:keyvault-nuke-core-arm
Oct 10, 2019
Merged

[KeyVault] Remove dependency on @azure/core-arm#5494
daviwil merged 4 commits intoAzure:masterfrom
daviwil:keyvault-nuke-core-arm

Conversation

@daviwil
Copy link
Contributor

@daviwil daviwil commented Oct 9, 2019

This PR removes the @azure/keyvault-* libraries' dependency on @azure/core-arm, pair developed with @jonathandturner.

@daviwil daviwil changed the title [KeyVault] Remove dependency on @azure/core-arm [DRAFT] [KeyVault] Remove dependency on @azure/core-arm Oct 9, 2019
Copy link
Contributor Author

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

We also need to remove core-arm from keyvault-certificates package.json

import * as coreArm from "@azure/core-arm";

const packageName = "@azure/keyvault-certificates";
const packageName = "@azure/keyvault-keys";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
const packageName = "@azure/keyvault-keys";
const packageName = "@azure/keyvault-certificates";

}

this.client = new KeyVaultClient(credential, this.pipeline);
this.client = new KeyVaultClient(credential, "7.0", this.pipeline);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if we should make this a constant in this file with a comment saying that we are using it temporarily until an issue with autorest.typescript is fixed?

this.pipeline = pipelineOrOptions;
}
this.client = new KeyVaultClient(credential, this.pipeline);
this.client = new KeyVaultClient(credential, "7.0", this.pipeline);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe constant?

this.pipeline.requestPolicyFactories;

this.client = new KeyVaultClient(credential, this.pipeline);
this.client = new KeyVaultClient(credential, "7.0", this.pipeline);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe constant?

}

this.client = new KeyVaultClient(credential, this.pipeline);
this.client = new KeyVaultClient(credential, "7.0", this.pipeline);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe constant?

@daviwil daviwil changed the title [DRAFT] [KeyVault] Remove dependency on @azure/core-arm [KeyVault] Remove dependency on @azure/core-arm Oct 10, 2019
@daviwil
Copy link
Contributor Author

daviwil commented Oct 10, 2019

Merging it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants