1.0.0-preview.2 (2020-02-11)
- Added support for rotating API keys via the
TextAnalyticsApiKeyCredential.updateKey
method. #6972 - 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. #7046 - [Breaking] Removed the
Entity
type and added new return typesCategorizedEntity
andPiiEntity
for therecognizeEntities
andrecognizePiiEntities
methods respectively. These types are equivalent to the previousEntity
type. #7220 - [Breaking] Removed the
detectedLanguages
property fromDetectLanguageResult
, as the service currently only returns one language. #7220 - [Breaking] Renamed the
detectLanguages
method todetectLanguage
, as thedetectedLanguages
property was removed from theDetectLanguageResult
return type. #7220 - [Breaking] Renamed
documentScores
andsentenceScores
on theDocumentSentiment
andSentenceSentiment
types both tosentimentScores
. #7220 - [Breaking] Renamed
type
andsubtype
tocategory
andsubcategory
respectively in theCategorizedEntity
andPiiEntity
types. #7220 - [Breaking] Renamed
DocumentSentimentValue
andSentenceSentimentValue
toDocumentSentimentLabel
andSentenceSentimentLabel
respectively. #7220 - [Breaking] Renamed
SentimentConfidenceScorePerLabel
toSentimentScorePerLabel
. #7220 - [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
. #7276