Skip to content

Commit

Permalink
Releasing 2.25.0 of TeamsJS (#2387)
Browse files Browse the repository at this point in the history
* Releasing 2.25.0 of TeamsJS

* Updated CHANGELOG
  • Loading branch information
jadahiya-MSFT committed Jul 3, 2024
1 parent 931a483 commit 1796fbd
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 96 deletions.
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.24.0/js/MicrosoftTeams.min.js"
integrity="sha384-79NK4sbfVpgLoDFqyfj18/S1Uj8jhLBeRGvKO1Cqw5634RznExQ90myY/qV/0gsN"
src="https://res.cdn.office.net/teams-js/2.25.0/js/MicrosoftTeams.min.js"
integrity="sha384-6royw0i5cEmf/8pzbTX9dVy1pjjJA8PQOaQbGvoL/m39OdjrlcWluhQZxqy5KbJA"
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.24.0",
"version": "2.25.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.

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

This log was last generated on Wed, 05 Jun 2024 20:49:06 GMT and should not be manually modified.
This log was last generated on Wed, 03 Jul 2024 18:11:19 GMT and should not be manually modified.

<!-- Start content -->

## 2.25.0

Wed, 03 Jul 2024 18:11:19 GMT

### Patches

- Fixed `dialog.url.submit` api to support only `FrameContext.content`.
- Updated `clipboard.isSupported` so that it does not depend on `navigator.clipboard` in frameless contexts.
- Updated whitespace in `clipboard.ts` file to match conventions

## 2.24.0

Wed, 05 Jun 2024 20:49:06 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.24.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.25.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.24.0/js/MicrosoftTeams.min.js"
integrity="sha384-79NK4sbfVpgLoDFqyfj18/S1Uj8jhLBeRGvKO1Cqw5634RznExQ90myY/qV/0gsN"
src="https://res.cdn.office.net/teams-js/2.25.0/js/MicrosoftTeams.min.js"
integrity="sha384-6royw0i5cEmf/8pzbTX9dVy1pjjJA8PQOaQbGvoL/m39OdjrlcWluhQZxqy5KbJA"
crossorigin="anonymous"
></script>

<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/teams-js@2.24.0/dist/MicrosoftTeams.min.js"></script>
<script src="node_modules/@microsoft/teams-js@2.25.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.24.0",
"version": "2.25.0",
"description": "Microsoft Client SDK for building app for Microsoft hosts",
"repository": {
"directory": "packages/teams-js",
Expand Down
10 changes: 6 additions & 4 deletions packages/teams-js/src/internal/videoEffectsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ class OneTextureHeader {
private readonly ONE_TEXTURE_INPUT_ID = 0x6f746931;
private readonly INVALID_HEADER_ERROR = 'Invalid video frame header';
private readonly UNSUPPORTED_LAYOUT_ERROR = 'Unsupported texture layout';
public constructor(private readonly headerBuffer: ArrayBuffer, private readonly notifyError: (string) => void) {
public constructor(
private readonly headerBuffer: ArrayBuffer,
private readonly notifyError: (string) => void,
) {
this.headerDataView = new Uint32Array(headerBuffer);
// headerDataView will contain the following data:
// 0: oneTextureLayoutId
Expand Down Expand Up @@ -322,9 +325,8 @@ class TransformerWithMetadata {
const timestamp = originalFrame.timestamp;
if (timestamp !== null) {
try {
const { videoFrame, metadata: { audioInferenceResult } = {} } = await this.extractVideoFrameAndMetadata(
originalFrame,
);
const { videoFrame, metadata: { audioInferenceResult } = {} } =
await this.extractVideoFrameAndMetadata(originalFrame);
const frameProcessedByApp = await this.videoFrameHandler({ videoFrame, audioInferenceResult });
// the current typescript version(4.6.4) dosn't support webcodecs API fully, we have to do type conversion here.
const processedFrame = new VideoFrame(frameProcessedByApp as unknown as CanvasImageSource, {
Expand Down
Loading

0 comments on commit 1796fbd

Please sign in to comment.