Azure SDK for JavaScript (February 2020)
The Azure SDK team is pleased to make available the February 2020 client library release. This represents the seventh release of the ground-up rewrite of the client libraries to ensure consistency, idiomatic design, and excellent developer experience and productivity. This release includes:
- Update for Azure Cosmos
- Update for Azure Event Hubs
- Update for Azure Blob Storage
- New preview for Azure Text Analytics
Installation Instructions
To install the packages, copy and paste the below into a terminal.
$> npm install @azure/event-hubs
$> npm install @azure/storage-blob
$> npm install @azure/storage-file-share
$> npm install @azure/storage-file-datalake
$> npm install @azure/storage-queue
$> npm install @azure/ai-text-analytics
$> npm install @azure/cosmos
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 change logs for each of the libraries can be found in the source repository linked to in the Quick Links table. Below are some noteworthy changes in the current release.
Cosmos
- Added support for spatial indexing, bounding boxes, and geospatial configuration
Event Hubs
- Improved bundling support of this library for web browsers.
Storage (File Shares, File Data Lake, Blobs, Queues)
- Added support for new features introduced in
2019-07-07Azure Storage Service API version. - Added a new type
ShareLeaseClientto manage File Share leases.
Text Analytics
- Added support for rotating API keys via the
TextAnalyticsApiKeyCredential.updateKeymethod. - Added a discriminant type for
TextAnalyticsResult.errorto allow for easy differentiation between success and error types usingif (result.error) { ... }in both TypeScript and JavaScript. - [Breaking] Removed the
Entitytype and added new return typesCategorizedEntityandPiiEntityfor therecognizeEntitiesandrecognizePiiEntitiesmethods respectively. These types are equivalent to the previousEntitytype. - [Breaking] Removed the
detectedLanguagesproperty fromDetectLanguageResult, as the service currently only returns one language. - [Breaking] Renamed the
detectLanguagesmethod todetectLanguage, as thedetectedLanguagesproperty was removed from theDetectLanguageResultreturn type. - [Breaking] Renamed
documentScoresandsentenceScoreson theDocumentSentimentandSentenceSentimenttypes both tosentimentScores. - [Breaking] Renamed
typeandsubtypetocategoryandsubcategoryrespectively in theCategorizedEntityandPiiEntitytypes. - [Breaking] Renamed
DocumentSentimentValueandSentenceSentimentValuetoDocumentSentimentLabelandSentenceSentimentLabelrespectively. - [Breaking] Renamed
SentimentConfidenceScorePerLabeltoSentimentScorePerLabel. - [Breaking] Refactored
TextAnalyticsErrorto flatten the error hierarchy and removeinnerError. The new error model has properties forcode,message, and an optionaltargetonly. Thecodeproperty ofTextAnalyticsErrorcan now contain all of the codes from the previousInnerErrorCodeValueas well as those from the top-levelErrorCodeValue.
Latest Releases
View all the latest versions of JavaScript packages here.