github Azure/azure-sdk-for-js @azure/ai-text-analytics_1.0.0-preview.2

latest releases: @azure/core-rest-pipeline_1.16.0, @azure/core-amqp_4.2.2, @azure/communication-sms_1.2.0-beta.1...
pre-release4 years ago

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 using if (result.error) { ... } in both TypeScript and JavaScript. #7046
  • [Breaking] Removed the Entity type and added new return types CategorizedEntity and PiiEntity for the recognizeEntities and recognizePiiEntities methods respectively. These types are equivalent to the previous Entity type. #7220
  • [Breaking] Removed the detectedLanguages property from DetectLanguageResult, as the service currently only returns one language. #7220
  • [Breaking] Renamed the detectLanguages method to detectLanguage, as the detectedLanguages property was removed from the DetectLanguageResult return type. #7220
  • [Breaking] Renamed documentScores and sentenceScores on the DocumentSentiment and SentenceSentiment types both to sentimentScores. #7220
  • [Breaking] Renamed type and subtype to category and subcategory respectively in the CategorizedEntity and PiiEntity types. #7220
  • [Breaking] Renamed DocumentSentimentValue and SentenceSentimentValue to DocumentSentimentLabel and SentenceSentimentLabel respectively. #7220
  • [Breaking] Renamed SentimentConfidenceScorePerLabel to SentimentScorePerLabel. #7220
  • [Breaking] Refactored TextAnalyticsError to flatten the error hierarchy and remove innerError. The new error model has properties for code, message, and an optional target only. The code property of TextAnalyticsError can now contain all of the codes from the previous InnerErrorCodeValue as well as those from the top-level ErrorCodeValue. #7276

Don't miss a new azure-sdk-for-js release

NewReleases is sending notifications on new releases.