Azure SDK for JavaScript (July 2020)
The Azure SDK team is pleased to make available the July 2020 client library release.
GA
- Azure Cognitive Search
Updates
- Azure App Configuration
- Core libraries
- Azure Event Hubs
Preview
- Storage
- Azure Event Hubs
- Azure Cognitive Form Recognizer
- Azure Service Bus
Installation Instructions
To install the packages, copy and paste the below into a terminal.
$> npm install @azure/storage-blob
$> npm install @azure/storage-blob-changfeed
$> npm install @azure/storage-file-datalake
$> npm install @azure/storage-file-share
$> npm install @azure/storage-queue
$> npm install @azure/app-configuration
$> npm install @azure/search-documents
$> npm install @azure/ai-form-recognizer
$> npm install @azure/service-bus@next
To install the stable version of the Event Hubs library:
$> npm install @azure/event-hubs
To install the preview version of the Event Hubs library:
$> npm install @azure/event-hubs@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:
Storage
Blob Changelog
New Features
- Added support for Blob Tags, Blob Versioning, Quick Query, Jumbo Blobs, and more
- Added convenience method
createIfNotExistsforContainerClient,AppendBlobClient, andPageBlobClient - Added convenience method
deleteIfExistsforContainerClientandBlobClients
Blob ChangeFeed Changelog
New Features
- Added a preview version of this library to support change feed
File DataLake Changelog
New Features
- Block size is increased to 4 GB max
- Added more mapping for Blob and DFS endpoints
File Share Changelog
New Features
- Supports 4 TB files
Search (CHANGELOG)
This is the first stable GA release of the Cognitive Search library.
Breaking Changes from Last Preview
- In Suggest API & Search API return values, a new property called
documentis introduced. All user-defined fields are moved inside thisdocumentproperty. - In
analyzeTextAPI, thetextparameter is moved from method level to insideoptionsbag. - In
searchAPI,includeTotalResultCountproperty is renamed toincludeTotalCount. - In
ServiceCounters, theskillsetCounterproperty has been removed. - Modified the names of several properties. Please refer #9321 for a detailed list of renames.
App Configuration (CHANGELOG)
New Features
- Added browser support for the latest versions of Chrome, Edge and Firefox.
Event Hubs (CHANGELOG)
We have released two versions of the Event Hubs library this time. An update to the stable version with bug fixes, and a preview version with new features.
Key Bug Fixes
- The update to the stable version i.e version 5.2.2 has improved the application reliability when closing
EventHubConsumerClientandSubscriptions.
New Features
- The preview version 5.3.0-preview.1 now supports configuring
loadBalancingOptionswhen constructing theEventHubConsumerClientfor more control over performance tuning while load balancing.
Form Recognizer (CHANGELOG)
New Features
- Added an
expiresOnproperty to theCopyAuthorizationtype containing the time that the Copy Authorization will expire encoded as a JavaScriptDatetype.
Breaking Changes from Last Preview
- Replace
RecognizedReceiptArraywith the more genericRecognizedFormArrayin the Poller response type returned bybeginRecognizeReceiptsandbeginRecognizeReceiptsFromUrl. - Rename the
textContentfield of theFieldDataandFormTableCelltypes tofieldElementsto mirror the change in its type. - Rename the
FormFieldtype’slabelTextandvalueTextfields tolabelDataandvalueDatarespectively, to mirror the change of their type toFieldData; - Rename the
includeTextContentrequest option toincludeFieldElementsto mirror the change toFieldDataandFormElement. - Rename
FieldTexttoFieldDataandFormContenttoFormElementto reflect that fields may contain more than textual information. - Rename
includeTextDetailstoincludeTextContentin custom form and receipt recognition options to be consistent with other languages. - Rename properties
requestedOntotrainingStartedOnandcompletedOntotrainingCompletedOninCustomFormModelandCustomFormModelInfotypes.
Service Bus (CHANGELOG)
New Features
- Adds abortSignal support throughout Sender and non-session Receivers.
-
(Receiver SessionReceiver).subscribe() now returns a closeable object which will stop new messages from arriving but still leave the receiver open so they can be settled via methods like complete(). OperationOptionshas been added for the methods underServiceBusManagementClient, this adds support for abortSignal, requestOptions when creating and sending HTTP requests.
Breaking Changes from Last Preview
- Standardized methods on senders and receivers to use the
Messagessuffix, removed dedicated methods dealing with a single message to reduce API surface. - Standardized methods that peek and receive a given number of messages to use a similar signature.
Old:
peekMessages(options);andreceiveMessages(maxMessages, options);New:peekMessages(maxMessageCount, options);andreceiveMessages(maxMessageCount, options); - Removed
isReceivingMessagesmethod on theReceiver. -
Management api updates
- Renamed
createdOn,accessedOnandmodifiedOnproperties tocreatedAt,accessedAtandmodifiedAt, updated the corresponding type fromISO-8601 timestamp stringto theDatetype in the responses for theruntimeInfomethods for Queue, Topic and Subscription. - The property
topin the options passed to any of the methods that get information for multiple entities likegetQueuesorgetQueuesRuntimeInfois renamed tomaxCount. - The “update” methods (
updateQueue,updateTopicandupdateSubscription) now require all properties on the given queue/topic/subscription object to be set though only a subset of them are actually updatable. Therefore, the suggested flow is to use the “get” methods to get the queue/topic/subscription object, update as needed, and then pass it to the “update” methods.
- Renamed
Key Bug Fixes
- Fixed the bug where the messages scheduled in parallel with the
scheduleMessagemethod have the same sequence number in response. - Fixed the bug where the
userPropertiesin a correlation filter are not populated in the rule while using theServiceBusManagementClient.createRule()method.
Latest Releases
View all the latest versions of JavaScript packages here.