Skip to content

Commit

Permalink
v1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yukotayuki committed Dec 19, 2023
1 parent ba826ad commit 80c638f
Show file tree
Hide file tree
Showing 17 changed files with 573 additions and 333 deletions.
285 changes: 252 additions & 33 deletions THIRD_PARTY_LICENSE

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions bundler/license.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export async function createLicenses() {

for (const [name, detail] of Object.entries(deps)) {
const { path } = detail;
let licenseFile = (
await readFile(path + '/LICENSE').catch(() => '')
).toString();
licenseFile =
licenseFile ||
(await readFile(path + '/LICENSE.md').catch(() => '')).toString();

let licenseFile =
(await readFile(path + '/LICENSE').catch(() => '')).toString() ||
(await readFile(path + '/license').catch(() => '')).toString() ||
(await readFile(path + '/LICENSE.md').catch(() => '')).toString() ||
(await readFile(path + '/license.md').catch(() => '')).toString();

const [, , , user, repo] = (detail.repository ?? '').split('/');
licenseFile = licenseFile || (await downloadLicenses(user, repo));
Expand Down
5 changes: 5 additions & 0 deletions karma.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@ module.exports = {
strict: true,
},
exclude: ['node_modules', 'example', 'examples', 'debug', 'typedoc', 'doc'],
bundlerOptions: {
transforms: [
require('karma-typescript-es6-transform')()
]
},
},
};
544 changes: 278 additions & 266 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "npm run bootstrap && lerna run build && npm run bootstrap",
"build:example": "lerna run build:example && npm run format",
"build:example": "npm run build && lerna run build:example",
"clean": "lerna clean -y && rm -rf ./packages/*/dist && rm -rf ./packages/*/node_modules && rm -rf ./packages/*/bundler && rm -rf node_modules",
"type": "lerna run type",
"compile": "npm run bootstrap && lerna run compile && lerna run type",
Expand Down
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/common",
"version": "1.4.5",
"version": "1.4.6",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"axios": "^0.23.0"
"axios": "^1.6.0"
},
"devDependencies": {},
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/core",
"version": "1.6.1",
"version": "1.6.2",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -47,7 +47,7 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/rtc-api-client": "^1.4.5",
"@skyway-sdk/rtc-api-client": "^1.4.6",
"@skyway-sdk/signaling-client": "^1.0.3",
"bowser": "^2.11.0",
"deepmerge": "^4.2.2",
Expand Down
12 changes: 8 additions & 4 deletions packages/core/src/external/signaling.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BackOff, Event, Logger } from '@skyway-sdk/common';
import { BackOff, Event, EventDisposer, Logger } from '@skyway-sdk/common';
import { Member } from '@skyway-sdk/model';
import { ConnectionState, SignalingClient } from '@skyway-sdk/signaling-client';
import { uuidV4 } from '@skyway-sdk/token';
Expand Down Expand Up @@ -68,12 +68,15 @@ export class SignalingSession {
interval: 100,
jitter: 100,
});
private _disposer = new EventDisposer();

constructor(public _client: SignalingClient, private context: SkyWayContext) {
this._listen();
context._onTokenUpdated.add(async (token) => {
await this._updateSkyWayAuthToken(token);
});
context._onTokenUpdated
.add(async (token) => {
await this._updateSkyWayAuthToken(token);
})
.disposer(this._disposer);
}

updateClient(client: SignalingClient) {
Expand Down Expand Up @@ -183,6 +186,7 @@ export class SignalingSession {

close() {
this.closed = true;
this._disposer.dispose();
this._client.disconnect();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = '1.6.1';
export const PACKAGE_VERSION = '1.6.2';
6 changes: 3 additions & 3 deletions packages/room/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/room",
"version": "1.6.1",
"version": "1.6.2",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -46,8 +46,8 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/core": "^1.6.1",
"@skyway-sdk/sfu-bot": "^1.6.1",
"@skyway-sdk/core": "^1.6.2",
"@skyway-sdk/sfu-bot": "^1.6.2",
"uuid": "^9.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/room/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = '1.6.1';
export const PACKAGE_VERSION = '1.6.2';
6 changes: 3 additions & 3 deletions packages/rtc-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/rtc-api-client",
"version": "1.4.5",
"version": "1.4.6",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -35,8 +35,8 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/rtc-rpc-api-client": "^1.4.5",
"@skyway-sdk/token": "^1.4.5",
"@skyway-sdk/rtc-rpc-api-client": "^1.4.6",
"@skyway-sdk/token": "^1.4.6",
"deepmerge": "^4.2.2",
"uuid": "^9.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/rtc-rpc-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/rtc-rpc-api-client",
"version": "1.4.5",
"version": "1.4.6",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -34,13 +34,13 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/common": "^1.4.5",
"@skyway-sdk/common": "^1.4.6",
"@skyway-sdk/model": "^1.0.1",
"isomorphic-ws": "^4.0.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@skyway-sdk/token": "^1.4.5",
"@skyway-sdk/token": "^1.4.6",
"@types/uuid": "^9.0.1"
},
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/sfu-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/sfu-api-client",
"version": "1.4.5",
"version": "1.4.6",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/common": "^1.4.5",
"@skyway-sdk/common": "^1.4.6",
"mediasoup-client": "^3.6.52"
},
"devDependencies": {},
Expand Down
6 changes: 3 additions & 3 deletions packages/sfu-bot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/sfu-bot",
"version": "1.6.1",
"version": "1.6.2",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -41,8 +41,8 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/core": "^1.6.1",
"@skyway-sdk/sfu-api-client": "^1.4.5",
"@skyway-sdk/core": "^1.6.2",
"@skyway-sdk/sfu-api-client": "^1.4.6",
"lodash": "4.17.21",
"mediasoup-client": "3.6.82"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/sfu-bot/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = '1.6.1';
export const PACKAGE_VERSION = '1.6.2';
4 changes: 2 additions & 2 deletions packages/token/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skyway-sdk/token",
"version": "1.4.5",
"version": "1.4.6",
"description": "The official Next Generation JavaScript SDK for SkyWay",
"homepage": "https://skyway.ntt.com/",
"repository": {
Expand Down Expand Up @@ -34,7 +34,7 @@
"watch:tsc": "tsc -p tsconfig.build.json -w"
},
"dependencies": {
"@skyway-sdk/common": "^1.4.5",
"@skyway-sdk/common": "^1.4.6",
"jsrsasign": "^10.6.0",
"jwt-decode": "3.1.2",
"uuid": "^9.0.0"
Expand Down

0 comments on commit 80c638f

Please sign in to comment.