Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 2.31.0 release into the main branch #2622

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/teams-test-app/index_cdn.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script
src="https://res.cdn.office.net/teams-js/2.30.0/js/MicrosoftTeams.min.js"
integrity="sha384-8I0Bv4bWDPSX5ZYhJcChnvrBNoieX3zASTxmZ9URwnjEVx70hsrN0ZUy/C46u8dw"
src="https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js"
integrity="sha384-A2y7iMKbK0AQrgKq1YKcLB8XgtyowB2MPzC40KFfA58nQObf6xU3C5NE0cTcis0V"
crossorigin="anonymous"
></script>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion apps/teams-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"author": "Microsoft Teams",
"description": "Teams Test App utilizing Teams JavaScript client SDK to test Hosts",
"version": "2.30.0",
"version": "2.31.0",
"scripts": {
"build": "pnpm build:bundle",
"build:bundle": "pnpm lint && webpack",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "none",
"comment": "Released 2.30.0",
"comment": "Released 2.31.0",
"packageName": "@microsoft/teams-js",
"email": "[email protected]",
"email": "email not defined",
"dependentChangeType": "none"
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Merged 2.31.0 release branch to main",
"packageName": "@microsoft/teams-js",
"email": "email not defined",
"dependentChangeType": "none"
}

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 21 additions & 1 deletion packages/teams-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
# Change Log - @microsoft/teams-js

This log was last generated on Mon, 21 Oct 2024 18:11:30 GMT and should not be manually modified.
This log was last generated on Wed, 13 Nov 2024 19:22:01 GMT and should not be manually modified.

<!-- Start content -->

## 2.31.0

Wed, 13 Nov 2024 19:22:01 GMT

### 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

## 2.30.0

Mon, 21 Oct 2024 18:11:30 GMT
Expand Down
8 changes: 4 additions & 4 deletions packages/teams-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv

### Production

You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.30.0/js/MicrosoftTeams.min.js) or point your package manager at them.
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js) or point your package manager at them.

## Usage

Expand All @@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
```html
<!-- Microsoft Teams JavaScript API (via CDN) -->
<script
src="https://res.cdn.office.net/teams-js/2.30.0/js/MicrosoftTeams.min.js"
integrity="sha384-8I0Bv4bWDPSX5ZYhJcChnvrBNoieX3zASTxmZ9URwnjEVx70hsrN0ZUy/C46u8dw"
src="https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js"
integrity="sha384-A2y7iMKbK0AQrgKq1YKcLB8XgtyowB2MPzC40KFfA58nQObf6xU3C5NE0cTcis0V"
crossorigin="anonymous"
></script>

<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/teams-js@2.30.0/dist/MicrosoftTeams.min.js"></script>
<script src="node_modules/@microsoft/teams-js@2.31.0/dist/MicrosoftTeams.min.js"></script>

<!-- Microsoft Teams JavaScript API (via local) -->
<script src="MicrosoftTeams.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion packages/teams-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/teams-js",
"author": "Microsoft Teams",
"version": "2.30.0",
"version": "2.31.0",
"description": "Microsoft Client SDK for building app for Microsoft hosts",
"repository": {
"directory": "packages/teams-js",
Expand Down
Loading