Skip to content

Releases: OfficeDev/microsoft-teams-library-js

2.37.0

02 May 20:39
46da1af
Compare
Choose a tag to compare

Minor changes

  • Added forceRefresh optional argument in getEligibilityInfo API.

v2.36.0

01 Apr 20:52
8b42b7d
Compare
Choose a tag to compare

Minor changes

  • Added canParentManageNAATrustedOrigins capability to check if the parent can manage its list of trusted child origins for Nested App Auth (NAA). The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrix
  • Added getParentOrigin API to read the parent origin for nested app auth
  • Added support for ExternalAppCardActionsForDA capability.
  • Added support for isDeeplyNestedAuthSupported to check if deeply nested auth is supported.
  • Added manageNAATrustedOrigins capability which allows the top-level parent app to register its child app's origin as trusted for nested app auth. The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrix
  • Added standalone nested app auth bridge for nested child app
  • Removed child messaging proxying by default to avoid security issues. If an app still needs this pattern, it can be activated through the feature flag function activateChildProxyingCommunication which enables child proxying for that app.
  • Bump eslint-plugin-recommend-no-namespaces to v0.1.0

Patches

  • Set a unique Teams-JS instance id when Teams-JS library is used and appended this unique id to message request sent to host sdk.
  • Disabled default nested app auth bridge injection for nested child app
  • Added apiVersion tag in NAA request and removed isNAAChannelRecommended check in isDeeplyNestedAuthSupported api

v2.35.0

19 Mar 17:05
d0c84a8
Compare
Choose a tag to compare

2.35.0

Minor changes

  • Updated externalAppAuthenticationForCEA.authenticateWithSSO to take authId and connectionName parameters.
  • Added "authId" and "connectionName" parameters to authTokenRequest in ExternalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest
  • Added new AppTypes enum values to filter base and streaming townhalls.
  • Bump eslint-plugin-recommend-no-namespaces to v0.1.0

Patches

  • Refactored backstack initialization to resolve a pages bug when dynamically importing teams-js
  • Refactored child communication to an isolated module, no functionality change. This will allow apps to tree shake this module.
  • Fixed security issue in authenticate function for web hosts to avoid using child proxying.

v2.34.0

05 Feb 18:27
641b00a
Compare
Choose a tag to compare

2.34.0

Wed, 05 Feb 2025 16:57:29 GMT

Minor changes

  • Added functions for opening different types of stores along with ics filtering
  • Updated validateEmails function to void type for mail.handoff sub-capability.
  • Added themail.handoff.composeMailWithHandoffId function that allows passing a handoff id to the compose mail window.
  • Add visionOS client type support for Teams SDK. This change will enable app developers to find out if app is running on visionOS
  • Added the new parameters to app.getContext named appId and manifestVersion
  • Bump eslint-plugin-recommend-no-namespaces to v0.1.0

Patches

  • Updated the sendCustomTelemetryData function in copilot.customTelemetry capability.
  • Decoupled prefetch of CDN resources from the initialization workflow and added fallback when resources could not be fetched in 1.5 seconds
  • Added field to tag child proxied messages.
  • Added a global polyfill
  • Updated authentication.notifySuccess documentation with security guidance
  • Added additional logging for child window (auth window) communication

v2.33.0

09 Jan 17:40
f1fe3da
Compare
Choose a tag to compare

Minor changes

  • Added customTelemetry capability under copilot to send app loading data to the host.

Patches

  • Explicitly use browser implementation of debug package to resolve polyfill issue.
  • Moved uuidObject.ts from internal to public folder in preparation for exporting it.

v2.32.0

17 Dec 22:19
1b164a6
Compare
Choose a tag to compare

2.32.0

Fri, 13 Dec 2024 20:07:32 GMT

Minor changes

  • Added optional FeatureSet field to AppEligibilityInformation interface
  • Added store capability that will enable user to open several types of app store dialogs.. The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrix
  • Added nestedAppAuth capability against a new client version 2.1.1 to support isNAAChannelRecommended for Teams Mobile

Patches

  • Added ConversationResponse to explicit named exports for back-compat
  • Resolved an issue with non-necessary polyfills being included
  • Backed out Buffer removal changes
  • Removed @beta tag from all functions on dialog capability (and all subcapabilities)

v2.31.1

20 Nov 20:42
732ab7e
Compare
Choose a tag to compare

2.31.1

Wed, 20 Nov 2024 19:25:55 GMT

Patches

  • Fixed a bug causing buffer polyfill to stil be included
  • Fixed bugs regarding EduTypenot being exported, and enum typings

v2.31.0

13 Nov 22:56
75821b0
Compare
Choose a tag to compare

Minor changes

  • Made the library treeshakable
  • Made externalAppAuthenticationForCEA.ts throw Error objects instead of SdkErrors.
  • Replaced Buffer with uint8array-extras to allow for buffer polyfill removal
  • Added validation for AppId instance in CEA APIs
  • Changed the notifySuccess function to indicate through a promise when the function finished processing in the host.
  • Added new timestamp and handler for analyzing latencies due to message delays between app and hub.

Patches

  • Add userClickTimeV2 to app Context to provide the timestamp when the user clicked the app using the performance timer API.
  • Increased the initialize response wait-timeout to 60 sec
  • Removed type: module from package.json to fix nextjs bug
  • Added validation for IActionExecuteInvokeRequest.data element in ExternalAppAuthentication and ExternalAppAuthenticationForCEA capabilities. The element can be of type primitive or plain object only

v2.30.0

21 Oct 22:00
25d648c
Compare
Choose a tag to compare

Minor changes

  • Updated copilot.eligibility.getEligibilityInfo to be async and get the eligibility info from the host if it is not already available.

Patches

  • Updated edgeapi.freya.svc.cloud.microsoft to chatuxmanager.svc.cloud.microsoft.
  • Updated edgeapi endpoint from edgeapi.svc.cloud.microsoft to edgeapi.freya.svc.cloud.microsoft in valid domains list. Added work.bing.com to valid domains list.
  • Clarified usage for validMessageOrigins parameter on app.initialize in documentation.

v2.29.0

04 Oct 01:28
021fec6
Compare
Choose a tag to compare

Minor changes

  • Added support for externalAppAuthenticationForCEA capability
  • Added support for externalAppCardActionsForCEA capability.
  • Added logging for current teamsjs instance and timestamps
  • Added a Rollup built bundle of Teams-JS
  • Added three properties to ICallDetails, originalCallerInfo, dialedEntityInfo, and callId, created a new type ICallParticipantIdentifiers, and deprecated the originalCaller and dialedEntity properties
  • Updated pages.navigateToApp to now optionally accept a more type-safe input object
  • Added logging for version on startup

Patches

  • Updated logging for messages to be clearer
  • Added edgeapi.svc.cloud.microsoft to valid domains list
  • Updated internal app id validation
  • Unified common data models for external card actions into externalAppCardActions namespace.
  • Updated types for externalAppCardActionsForCEA capability.