@azure/keyvault-keys 4.3.0-beta.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -6
- package/README.md +14 -16
- package/dist/index.js +32 -584
- package/dist/index.js.map +1 -1
- package/dist-esm/keyvault-keys/src/constants.js +1 -1
- package/dist-esm/keyvault-keys/src/constants.js.map +1 -1
- package/dist-esm/keyvault-keys/src/cryptographyClient.js +8 -9
- package/dist-esm/keyvault-keys/src/cryptographyClient.js.map +1 -1
- package/dist-esm/keyvault-keys/src/generated/keyVaultClient.js +14 -242
- package/dist-esm/keyvault-keys/src/generated/keyVaultClient.js.map +1 -1
- package/dist-esm/keyvault-keys/src/generated/keyVaultClientContext.js +7 -5
- package/dist-esm/keyvault-keys/src/generated/keyVaultClientContext.js.map +1 -1
- package/dist-esm/keyvault-keys/src/generated/models/index.js.map +1 -1
- package/dist-esm/keyvault-keys/src/generated/models/mappers.js +0 -278
- package/dist-esm/keyvault-keys/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/keyvault-keys/src/generated/models/parameters.js +1 -45
- package/dist-esm/keyvault-keys/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/keyvault-keys/src/index.js +2 -19
- package/dist-esm/keyvault-keys/src/index.js.map +1 -1
- package/dist-esm/keyvault-keys/src/keysModels.js +1 -19
- package/dist-esm/keyvault-keys/src/keysModels.js.map +1 -1
- package/package.json +7 -6
- package/types/keyvault-keys.d.ts +32 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 4.3.0
|
|
3
|
+
## 4.3.0 (2021-07-29)
|
|
4
4
|
|
|
5
|
-
### Features
|
|
5
|
+
### New Features
|
|
6
|
+
|
|
7
|
+
- Support for Node.js 8 and IE 11 has been dropped. Please see our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
8
|
+
- Changed TS compilation target to ES2017 to produce smaller bundles and use more native platform features.
|
|
9
|
+
- Updated our internal core package dependencies to their latest versions to add support for Opentelemetry 1.0.0, which is compatible with the latest versions of our other client libraries.
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
- Added support for `KeyClient.getRandomBytes` which, when connected to a managed HSM, can be used to generate a byte array of a given length with random values.
|
|
9
|
-
- Updated the service version to 7.3-preview.
|
|
11
|
+
## 4.2.2 (2021-07-07)
|
|
10
12
|
|
|
11
13
|
### Key Bugs Fixed
|
|
12
14
|
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
|
|
63
65
|
## 4.2.0-beta.3 (2021-02-09)
|
|
64
66
|
|
|
65
|
-
- [Breaking] Removed `dist-browser` from the published package. To bundle the Azure SDK libraries for the browsers, please read our bundling guide: [link](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
67
|
+
- [Breaking] Removed `dist-browser` from the published package. To bundle the Azure SDK libraries for the browsers, please read our bundling guide: [link](https://github.com/Azure/azure-sdk-for-js/blob/master/documentation/Bundling.md).
|
|
66
68
|
- Updated the Key Vault Keys Long Running Operation Pollers to follow a more compact and meaningful approach moving forward.
|
|
67
69
|
- Bug fix: The logging of HTTP requests wasn't properly working - now it has been fixed and tests have been written that verify the fix.
|
|
68
70
|
- Added a constructor overload to `CryptographyClient` that takes a `JsonWebKey` and allows for local-only subset of operations.
|
package/README.md
CHANGED
|
@@ -26,23 +26,21 @@ Using the cryptography client available in this library you also have access to:
|
|
|
26
26
|
|
|
27
27
|
> Note: This package cannot be used in the browser due to Azure Key Vault service limitations, please refer to [this document][cors] for guidance.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
- [Source code][package-gh]
|
|
31
|
-
- [Package (npm)][package-npm]
|
|
32
|
-
- [API Reference Documentation][docs]
|
|
33
|
-
- [Product documentation][docs-service]
|
|
34
|
-
- [Samples][samples]
|
|
29
|
+
[Source code][package-gh] | [Package (npm)][package-npm] | [API Reference Documentation][docs] | [Product documentation][docs-service] | [Samples][samples]
|
|
35
30
|
|
|
36
31
|
## Getting started
|
|
37
32
|
|
|
38
33
|
### Currently supported environments
|
|
39
34
|
|
|
40
35
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
36
|
+
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
|
37
|
+
|
|
38
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
41
39
|
|
|
42
40
|
### Prerequisites
|
|
43
41
|
|
|
44
|
-
- An [Azure subscription]
|
|
45
|
-
-
|
|
42
|
+
- An [Azure subscription][azure-sub].
|
|
43
|
+
- An existing Azure Key Vault Managed HSM. If you need to create an Azure Key Vault, you can use the [Azure CLI][azure-cli].
|
|
46
44
|
|
|
47
45
|
### Install the package
|
|
48
46
|
|
|
@@ -161,7 +159,7 @@ az keyvault security-domain download --hsm-name <your-key-vault-name> --sd-wrapp
|
|
|
161
159
|
|
|
162
160
|
## Authenticating with Azure Active Directory
|
|
163
161
|
|
|
164
|
-
The Key Vault service relies on Azure Active Directory to authenticate requests to its APIs. The [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) package provides a variety of credential types that your application can use to do this. The [README for `@azure/identity`](https://github.com/Azure/azure-sdk-for-js/tree/
|
|
162
|
+
The Key Vault service relies on Azure Active Directory to authenticate requests to its APIs. The [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) package provides a variety of credential types that your application can use to do this. The [README for `@azure/identity`](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity/README.md) provides more details and samples to get you started.
|
|
165
163
|
|
|
166
164
|
Here's a quick example. First, import `DefaultAzureCredential` and `KeyClient`:
|
|
167
165
|
|
|
@@ -849,23 +847,23 @@ setLogLevel("info");
|
|
|
849
847
|
|
|
850
848
|
You can find more code samples through the following links:
|
|
851
849
|
|
|
852
|
-
- [KeyVault Keys Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
853
|
-
- [KeyVault Keys Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
854
|
-
- [KeyVault Keys Test Cases](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
850
|
+
- [KeyVault Keys Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/keyvault/keyvault-keys/samples/v4/javascript)
|
|
851
|
+
- [KeyVault Keys Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/keyvault/keyvault-keys/samples/v4/typescript)
|
|
852
|
+
- [KeyVault Keys Test Cases](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/keyvault/keyvault-keys/test/)
|
|
855
853
|
|
|
856
854
|
## Contributing
|
|
857
855
|
|
|
858
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
856
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
859
857
|
|
|
860
858
|
[aboutkeys]: https://docs.microsoft.com/azure/key-vault/keys/about-keys
|
|
861
859
|
[keyvault]: https://docs.microsoft.com/azure/key-vault/key-vault-overview
|
|
862
860
|
[managedhsm]: https://docs.microsoft.com/azure/key-vault/managed-hsm/overview
|
|
863
|
-
[cors]: https://github.com/Azure/azure-sdk-for-js/blob/
|
|
864
|
-
[package-gh]: https://github.com/Azure/azure-sdk-for-js/tree/
|
|
861
|
+
[cors]: https://github.com/Azure/azure-sdk-for-js/blob/master/samples/cors/ts/README.md
|
|
862
|
+
[package-gh]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/keyvault/keyvault-keys
|
|
865
863
|
[package-npm]: https://www.npmjs.com/package/@azure/keyvault-keys
|
|
866
864
|
[docs]: https://docs.microsoft.com/javascript/api/@azure/keyvault-keys
|
|
867
865
|
[docs-service]: https://azure.microsoft.com/services/key-vault/
|
|
868
|
-
[samples]: https://github.com/Azure/azure-sdk-for-js/blob/
|
|
866
|
+
[samples]: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/keyvault/keyvault-keys/samples
|
|
869
867
|
[tscompileroptions]: https://www.typescriptlang.org/docs/handbook/compiler-options.html
|
|
870
868
|
[azure-sub]: https://azure.microsoft.com/free/
|
|
871
869
|
[azure-cli]: https://docs.microsoft.com/cli/azure
|