Azure SDK for JavaScript (August 2020)
The Azure SDK team is pleased to make available the August 2020 client library release.
GA
- Identity
- Azure Key Vault
Updates
- Core libraries
- Azure Event Hubs
- Azure Form Recognizer
Preview
- Azure Service Bus
Installation Instructions
To install the packages, copy and paste the below into a terminal.
$> npm install @azure/identity
$> npm install @azure/eventhubs-checkpointstore-blob
$> npm install @azure/ai-form-recognizer
$> npm install @azure/keyvault-keys
$> npm install @azure/keyvault-secrets
$> npm install @azure/keyvault-certificates
$> npm install @azure/service-bus@next
Feedback
If you have a bug or feature request for one of the libraries, please post an issue at the azure-sdk-for-js repository.
Changelog
Detailed changelogs are linked from the Quick Links below. Here are some of the highlights:
Identity
Identity Changelog
We are happy to announce that the features we had introduced in the preview updates for Identity over the past few months are now stable and out of preview!
New Features
- With 1.1.0, new developer credentials are now available:
VisualStudioCodeCredentialandAzureCliCredential.VisualStudioCodeCredentialallows developers to authenticate using the credentials available after logging in through the Azure Account extension in Visual Studio Code.AzureCliCredentialallows developers to log into Azure using the login credentials after an “az login” call.- Both
VisualStudioCodeCredentialandAzureCliCredentialmay be used directly or indirectly as part ofDefaultAzureCredential.
- Added the ability to configure the Managed Identity with a user-assigned client ID via a new option available in the
DefaultAzureCredentialconstructor options:managedIdentityClientId. - A list of known authorities is now available via a new top-level constant:
AzureAuthorityHosts. - Introduced the
CredentialUnavailableerror, which allows developers to differentiate between a credential not being available and an error happening during authentication.
Azure Form Recognizer
We hav yet another preview with some API changes for a generally improved experience and which targets the service version 2.0
Form Recognizer Changelog
Breaking Changes
- Renamed the
includeSubFoldersproperty of theTrainSourceFiltertype toincludeSubfolders. - Renamed the
documentNameproperty of theTrainingDocumentInfotype to justname. - Removed the
containingLineproperty of theFormWordtype. - Renamed
CustomFormFieldtoCustomFormModelFieldfor similarity to other language SDKs. - Removed the redundant
expirationDateTimeTicksproperty from theCopyAuthorizationtype, as theexpiresOnproperty exists. - Moved the optional
contentTypeparameter of theFormRecognizerClientrecognition methods (recognizeContent,recognizeCustomForms,recognizeReceipts, and their URL-based variants) to the associated options bag for these methods. - Removed exports of several internal types, including most internal poller operation states and some unused types. All client poller implementations now return a smaller subset of fields.
New Features
- Switched from using the service endpoint version
2.0-previewto the now generally-available version2.0.
Azure Key Vault Keys, Secrets and Certificates
We are happy to announce that the features we had introduced as a preview a few months ago are now stable and out of preview!
Changelogs
New Features on Keys, Secrets and Certificates
- Added a
serviceVersionproperty to theCertificateClient,SecretClient,KeyClientandCryptographyClientoptional parameters to control the version of the Key Vault service being used by the clients.- It defaults to the latest supported API version, which currently is
7.1. - The other supported service version at the moment is
7.0.
- It defaults to the latest supported API version, which currently is
- Added
recoverableDaysas an optional property toKeyProperties,SecretPropertiesandCertificateProperties, which denotes the number of days in which the Key, Secret or Certificate can be recovered after deletion.- This is only applicable for Azure Key Vaults with the
soft-deletesetting enabled.
- This is only applicable for Azure Key Vaults with the
New Features on Key Vault Keys
- Added
importto the list of possible values forKeyOperation.
Major Fixes on Key Vault Keys
- Fixed bug 10352, which caused the cryptography operations on
RSA-HSMkeys to fail.
Azure Service Bus
We have another preview for you containing API changes for a generally improved user experience.
Service Bus Changelog
Breaking Changes from Last Preview
-
receiveModeparameter in thecreateReceiver(),createSessionReceiver()andcreateDeadletterReceiver()methods has been moved into the options bag, now setting the"peekLock"mode by default.Example:
- OLD:
createReceiver(<queue-name>, "peekLock")andcreateReceiver(<queue-name>, "receiveAndDelete") - NEW:
createReceiver(<queue-name>)andcreateReceiver(<queue-name>, {receiveMode: "receiveAndDelete"})
- OLD:
- Added Async iterable iterators with pagination support for all the listing methods like
getQueues(),getTopics(),getQueuesRuntimeInfo(), etc. and renamed them to use thelistverb (becominglistQueues(),listTopics(),listQueuesRuntimeProperties(), etc. respectively).- Please refer to the examples in the
samplesfolder - listingEntities
- Please refer to the examples in the
receiveMessages()’s optionalmaxWaitTimeInMsparameter now controls how long to wait for the first message, rather than how long to wait for an entire set of messages. This change allows for a faster return of messages to your application.userPropertiesattribute under theServiceBusMessage(andReceivedMessage,ReceivedMessageWithLock) has been renamed toproperties. The same change has been made to theuserPropertiesattribute in the correlation-rule filter.- The terms
RuntimeInfoandDescriptionhave been replaced withRuntimePropertiesandPropertiesto better align with guidelines around the kind of suffixes we use for naming methods and interfaces.
New Features
- User agent details can now be added to the outgoing requests by passing the user-agent prefixes to the
ServiceBusClientand theServiceBusManagementClientthrough options. Example user-agent string if the prefixSampleAppis provided toServiceBusManagementClient:SampleApp azsdk-js-azureservicebus/7.0.0-preview.5 core-http/1.1.5 Node/v12.16.0 OS/(x64-Windows_NT-10.0.18363) -
Added
deadLetterErrorDescriptionanddeadLetterReasonproperties on the received messages. Previously, they were under thepropertiesin the message.OLD:
message.properties["DeadLetterReason"]andmessage.properties["DeadLetterErrorDescription"]NEW:message.deadLetterReasonandmessage.deadLetterErrorDescription - Added tracing support to the methods under
ServiceBusManagementClient.
Latest Releases
View all the latest versions of JavaScript packages here.