Azure SDK for JavaScript (June 2020)
The Azure SDK team is pleased to make available the June 2020 client library release.
- General Availability release of Azure Cognitive Text Analytics
- Updates for Core libraries
- Update for Azure Event Hubs
- New preview of Azure Identity
- New preview of Azure Cognitive Search
- New preview of Azure Cognitive Form Recognizer
- New preview of Azure Service Bus
Installation Instructions
To install the packages, copy and paste the below into a terminal.
$> npm install @azure/event-hubs
$> npm install @azure/identity
$> npm install @azure/search-documents
$> npm install @azure/ai-form-recognizer
$> npm install @azure/ai-text-analytics
$> 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:
Text Analytics
This is the first GA release version of the Text Analytics library.
New Features
- The library now uses the Text Analytics v3.0 (General Availability) service endpoint.
- Added a
textproperty toSentenceSentimentthat contains the sentence text - Added
warningsproperty to every document response object containing a list ofTextAnalyticsWarningobjects relevant to the corresponding document.
Breaking Changes from Last Preview
- Renamed all result array types that extend JavaScript’s base
Arrayclass to end with the wordArrayinstead ofCollection(e.g.AnalyzeSentimentResultCollectionis nowAnalyzeSentimentResultArray) - Renamed
scoretoconfidenceScorein theMatch,Entity, andDetectedLanguagetypes. - Removed the
graphemeOffsetandgraphemeLengthproperties of theMatch,Entity, andSentenceSentimenttypes. - Renamed the
graphemeCountproperty ofTextDocumentStatisticsback tocharacterCount - Removed the
warningsproperty ofSentenceSentiment.
Event Hubs
Key Bug Fixes
- Improved the reliability of connections and connection recovery.
Identity
New Features
- Make all developer credentials public as well as the list used by
DefaultAzureCredentialPR #9274
Breaking Changes
- Switch to using
CredentialUnavailableto differentiate from expected and unexpected errors duringDefaultAzureCredentialstartup. PR #8172. Note: this changes the original behavior forManagedIdentityCredential, which previously would returnnullinstead of throwing an exception.
Search
New Features
- Added separate methods for getting just names such as
listIndexesNames,listSynonymMapsNames, etc. - Added
getSearchClientmethod to theSearchIndexClientclass.
Breaking Changes from Last Preview
- Results of
ListIndexesoperation can now be listed by pages. - Added
onlyIfUnchangedparameter for CreateOrUpdate and Delete operations. - Removed
$selectproperty for the List operations. - Refactored
SearchServiceClientand split it toSearchIndexClientandSearchIndexerClientand changedSearchIndexClientclass toSearchClientclass. - All required parameters are moved out of options bag.
- Renamed
countDocumentsmethod togetDocumentsCountmethod. - In
searchmethod, moved thesearchTextparameter from the options bag to method parameter. - In
indexDocumentsmethod, the options parameter is renamed toIndexDocumentsOptions. - Modified
deleteDocumentsmethod to get documents as a parameter. - In
getIndexStatisticsmethod, renamed the return type fromGetIndexStatisticsResulttoSearchIndexStatistics. - In
getServiceStatisticsmethod, renamed the return type fromServiceStatisticstoSearchServiceStatistics. - Modified
DataSourcemodel name toDataSourceConnection. Changed all references in the method names, parameters, etc. - Renamed
SimpleDataTypemodel toSearchFieldDataTypemodel. - Modified the names of several models & parameters. Please refer #8984, #9037 and #8383 for a detailed list of renames.
Form Recognizer
New Features
- Add support to copy custom model from one Form Recognizer resource to another.
- Add support for Azure Active Directory credential.
Breaking Changes from Last Preview
- Recognition and training methods now return results directly, instead of wrapping the result in a response object.
- Rename refactoring for many public APIs for cross-language consistency.
- Remove
USReceiptand related types.
Service Bus
New Features
- Added management API features under
ServiceBusManagementClientthat lets you manage a namespace with CRUD operations on the entities(queues, topics, and subscriptions) and on the rules of a subscription.- Supports authentication with a service bus connection string as well as with the AAD credentials from
@azure/identity.
- Supports authentication with a service bus connection string as well as with the AAD credentials from
Breaking Changes from Last Preview
ServiceBusClient.createSender()which was made async in the previous preview to include the link initialization is no longer async. Instead, the sender now has anopen()method that can be used to proactively initialize the link.Receiver/SessionReceiver.browseMessages()has been renamed toReceiver/SessionReceiver.peekMessages().
Key Bug Fixes
- Improves the performance of the
ServiceBusMessageBatch.tryAddmethod.
Latest Releases
View all the latest versions of JavaScript packages here.