Skip to content

Commit

Permalink
preparing release 1.6.0 (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachingupta committed Jan 22, 2020
1 parent 4d91448 commit 17b7dfd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To install the stable version:

#### Production

You can access [these files on unpkg](https://statics.teams.microsoft.com/sdk/v1.5.2/js/MicrosoftTeams.min.js), download them, or point your package manager to them.
You can access [these files on unpkg](https://statics.teams.cdn.office.net/sdk/v1.6.0/js/MicrosoftTeams.min.js), download them, or point your package manager to them.

## Usage

Expand All @@ -47,10 +47,10 @@ Reference the library inside of your `.html` page using:

```html
<!-- Microsoft Teams JavaScript API (via CDN) -->
<script src="https://statics.teams.cdn.office.net/sdk/v1.5.2/js/MicrosoftTeams.min.js" integrity="sha384-TJ2M0tW5fxu25/LwZie10M5O53iP1Q5FweiXk5rvfTHmvA7x2a6I9+KKi2pjAk6k" crossorigin="anonymous"></script>
<script src="https://statics.teams.cdn.office.net/sdk/v1.6.0/js/MicrosoftTeams.min.js" integrity="sha384-mhp2E+BLMiZLe7rDIzj19WjgXJeI32NkPvrvvZBrMi5IvWup/1NUfS5xuYN5S3VT" crossorigin="anonymous"></script>

<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/teams-js@1.5.2/dist/MicrosoftTeams.min.js"></script>
<script src="node_modules/@microsoft/teams-js@1.6.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 package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/teams-js",
"author": "Microsoft Teams",
"version": "1.5.2",
"version": "1.6.0",
"description": "Microsoft Client SDK for building app for Microsoft teams",
"main": "./dist/MicrosoftTeams.min.js",
"typings": "./dist/MicrosoftTeams.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/internal/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generateRegExpFromUrls } from './utils';

export const version = '1.5.2';
export const version = '1.6.0';

export const validOrigins = [
'https://teams.microsoft.com',
Expand Down
4 changes: 2 additions & 2 deletions test/public/publicAPIs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('MicrosoftTeams-publicAPIs', () => {
expect(initMessage.id).toBe(0);
expect(initMessage.func).toBe('initialize');
expect(initMessage.args.length).toEqual(1);
expect(initMessage.args[0]).toEqual('1.5.2');
expect(initMessage.args[0]).toEqual('1.6.0');
});

it('should allow multiple initialize calls', () => {
Expand Down Expand Up @@ -730,7 +730,7 @@ describe('MicrosoftTeams-publicAPIs', () => {
expect(initMessage.id).toBe(0);
expect(initMessage.func).toBe('initialize');
expect(initMessage.args.length).toEqual(1);
expect(initMessage.args[0]).toEqual('1.5.2');
expect(initMessage.args[0]).toEqual('1.6.0');
let message = utils.findMessageByFunc('setFrameContext');
expect(message).not.toBeNull();
expect(message.args.length).toBe(1);
Expand Down

0 comments on commit 17b7dfd

Please sign in to comment.