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-07
Azure Storage Service API version. - Added a new type
ShareLeaseClient
to manage File Share leases.
Text Analytics
- Added support for rotating API keys via the
TextAnalyticsApiKeyCredential.updateKey
method. - Added a discriminant type for
TextAnalyticsResult.error
to allow for easy differentiation between success and error types usingif (result.error) { ... }
in both TypeScript and JavaScript. - [Breaking] Removed the
Entity
type and added new return typesCategorizedEntity
andPiiEntity
for therecognizeEntities
andrecognizePiiEntities
methods respectively. These types are equivalent to the previousEntity
type. - [Breaking] Removed the
detectedLanguages
property fromDetectLanguageResult
, as the service currently only returns one language. - [Breaking] Renamed the
detectLanguages
method todetectLanguage
, as thedetectedLanguages
property was removed from theDetectLanguageResult
return type. - [Breaking] Renamed
documentScores
andsentenceScores
on theDocumentSentiment
andSentenceSentiment
types both tosentimentScores
. - [Breaking] Renamed
type
andsubtype
tocategory
andsubcategory
respectively in theCategorizedEntity
andPiiEntity
types. - [Breaking] Renamed
DocumentSentimentValue
andSentenceSentimentValue
toDocumentSentimentLabel
andSentenceSentimentLabel
respectively. - [Breaking] Renamed
SentimentConfidenceScorePerLabel
toSentimentScorePerLabel
. - [Breaking] Refactored
TextAnalyticsError
to flatten the error hierarchy and removeinnerError
. The new error model has properties forcode
,message
, and an optionaltarget
only. Thecode
property ofTextAnalyticsError
can now contain all of the codes from the previousInnerErrorCodeValue
as well as those from the top-levelErrorCodeValue
.
Latest Releases
View all the latest versions of JavaScript packages here.