From 7ec62c73cb822cea46f395f68d533ff30717f83f Mon Sep 17 00:00:00 2001 From: e5pe0n <1izard.synchr0fi5h@gmail.com> Date: Wed, 24 Apr 2024 14:05:31 +0900 Subject: [PATCH] v1.8.0 --- README.md | 2 +- THIRD_PARTY_LICENSE | 20 +- package-lock.json | 252 +++++++----------- package.json | 2 +- packages/analytics-client/package.json | 4 +- packages/analytics-client/src/socket.ts | 2 +- packages/core/package.json | 8 +- .../internal/person/connection/index.ts | 4 +- packages/core/src/version.ts | 2 +- packages/room/package.json | 6 +- packages/room/src/version.ts | 2 +- packages/rtc-api-client/package.json | 6 +- packages/rtc-rpc-api-client/package.json | 4 +- packages/sfu-bot/package.json | 4 +- packages/sfu-bot/src/connection/receiver.ts | 4 +- packages/sfu-bot/src/connection/sender.ts | 4 +- packages/sfu-bot/src/version.ts | 2 +- packages/signaling-client/package.json | 4 +- .../signaling-client/src/signalingClient.ts | 4 +- packages/signaling-client/src/socket.ts | 2 +- packages/signaling-client/src/version.ts | 2 +- packages/token/package.json | 2 +- packages/token/src/encoder.ts | 3 + packages/token/src/token.ts | 1 + 24 files changed, 147 insertions(+), 199 deletions(-) diff --git a/README.md b/README.md index 77cce77..e44c4db 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ const { SkyWayContext, SkyWayStreamFactory, SkyWayRoom } = skyway_room; ## 初期設定時 -- Node.js をインストールする(バージョンは v16.17.1 以降) +- Node.js をインストールする(バージョンは v18.12.0 以降) - corepack を有効化するために次のコマンドを実行する - `corepack enable npm` - ルートディレクトリで次のコマンドを実行する diff --git a/THIRD_PARTY_LICENSE b/THIRD_PARTY_LICENSE index 720f0d0..7b477d1 100644 --- a/THIRD_PARTY_LICENSE +++ b/THIRD_PARTY_LICENSE @@ -1,4 +1,4 @@ -@skyway-sdk/analytics-client@0.1.0-beta2 +@skyway-sdk/analytics-client@0.1.0-beta3 MIT @@ -60,7 +60,7 @@ SOFTWARE. --- -@skyway-sdk/core@1.7.1 +@skyway-sdk/core@1.8.0 MIT @@ -122,7 +122,7 @@ SOFTWARE. --- -@skyway-sdk/room@1.7.1 +@skyway-sdk/room@1.8.0 MIT @@ -153,7 +153,7 @@ SOFTWARE. --- -@skyway-sdk/rtc-api-client@1.5.1 +@skyway-sdk/rtc-api-client@1.6.0 MIT @@ -184,7 +184,7 @@ SOFTWARE. --- -@skyway-sdk/rtc-rpc-api-client@1.5.1 +@skyway-sdk/rtc-rpc-api-client@1.6.0 MIT @@ -246,7 +246,7 @@ SOFTWARE. --- -@skyway-sdk/sfu-bot@1.7.1 +@skyway-sdk/sfu-bot@1.8.0 MIT @@ -277,7 +277,7 @@ SOFTWARE. --- -@skyway-sdk/signaling-client@1.0.3 +@skyway-sdk/signaling-client@1.0.4 MIT @@ -308,7 +308,7 @@ SOFTWARE. --- -@skyway-sdk/token@1.5.1 +@skyway-sdk/token@1.6.0 MIT @@ -457,7 +457,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- -axios@1.6.7 +axios@1.6.8 MIT @@ -691,7 +691,7 @@ https://github.com/ibc/fake-mediastreamtrack --- -follow-redirects@1.15.5 +follow-redirects@1.15.6 MIT diff --git a/package-lock.json b/package-lock.json index 23c57d0..d51cec2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,7 +45,7 @@ "zx": "^7.0.8" }, "engines": { - "node": ">=16.0.0", + "node": ">=18.12.0", "npm": "=7.7.6" } }, @@ -155,7 +155,7 @@ "@types/react-dom": "^18.0.0", "@vitejs/plugin-react": "^1.3.0", "typescript": "^4.6.3", - "vite": "^2.9.17" + "vite": "^2.9.18" } }, "examples/sfu-bot": { @@ -5765,54 +5765,21 @@ } }, "node_modules/@nrwl/devkit": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-15.7.2.tgz", - "integrity": "sha512-HMGi7L6w2g4IrYwhb04snD8Zr24Z/gzau5i9WUNkwzrjeR1xAm0Cc9WRre221zaeohtK11gyBt7BerT1tgkNwA==", + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-15.9.7.tgz", + "integrity": "sha512-Sb7Am2TMT8AVq8e+vxOlk3AtOA2M0qCmhBzoM1OJbdHaPKc0g0UgSnWRml1kPGg5qfPk72tWclLoZJ5/ut0vTg==", "dev": true, "dependencies": { - "@phenomnomnominal/tsquery": "4.1.1", "ejs": "^3.1.7", "ignore": "^5.0.4", - "semver": "7.3.4", + "semver": "7.5.4", + "tmp": "~0.2.1", "tslib": "^2.3.0" }, "peerDependencies": { "nx": ">= 14.1 <= 16" } }, - "node_modules/@nrwl/devkit/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@nrwl/devkit/node_modules/semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@nrwl/devkit/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@nrwl/nx-darwin-arm64": { "version": "15.7.2", "resolved": "https://registry.npmjs.org/@nrwl/nx-darwin-arm64/-/nx-darwin-arm64-15.7.2.tgz", @@ -7333,18 +7300,6 @@ "@parcel/core": "^2.8.3" } }, - "node_modules/@phenomnomnominal/tsquery": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-4.1.1.tgz", - "integrity": "sha512-jjMmK1tnZbm1Jq5a7fBliM4gQwjxMU7TFoRNwIyzwlO+eHPRCFv/Nv+H/Gi1jc3WR7QURG8D5d0Tn12YGrUqBQ==", - "dev": true, - "dependencies": { - "esquery": "^1.0.1" - }, - "peerDependencies": { - "typescript": "^3 || ^4" - } - }, "node_modules/@popperjs/core": { "version": "2.11.6", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz", @@ -7707,10 +7662,13 @@ "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" }, "node_modules/@types/node": { - "version": "18.14.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.2.tgz", - "integrity": "sha512-1uEQxww3DaghA0RxqHx0O0ppVlo43pJhepY51OxuQIKHpjbnYLA7vcdwioNPzIqmC2u3I/dmylcqjlh0e7AyUA==", - "dev": true + "version": "18.19.31", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.31.tgz", + "integrity": "sha512-ArgCD39YpyyrtFKIqMDvjz79jto5fcI/SVUs2HwB+f0dAzq68yqOdyaSivLiLugSziTpNXLQrVb7RZFmdZzbhA==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -12167,9 +12125,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", @@ -20827,14 +20785,14 @@ "dev": true }, "node_modules/tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", "dev": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^4.0.0", + "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" @@ -20860,9 +20818,9 @@ } }, "node_modules/tar/node_modules/minipass": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.4.tgz", - "integrity": "sha512-lwycX3cBMTvcejsHITUgYj6Gy6A7Nh4Q6h9NP4sTHY1ccJlC7yKzDmiShEHsJ16Jf1nKGDEaiHxiltsJEvk0nQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true, "engines": { "node": ">=8" @@ -21486,6 +21444,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -21789,9 +21753,9 @@ } }, "node_modules/vite": { - "version": "2.9.17", - "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.17.tgz", - "integrity": "sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==", + "version": "2.9.18", + "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.18.tgz", + "integrity": "sha512-sAOqI5wNM9QvSEE70W3UGMdT8cyEn0+PmJMTFvTB8wB0YbYUWw3gUbY62AOyrXosGieF2htmeLATvNxpv/zNyQ==", "dev": true, "dependencies": { "esbuild": "^0.14.27", @@ -22850,7 +22814,7 @@ }, "packages/analytics-client": { "name": "@skyway-sdk/analytics-client", - "version": "0.1.0-beta2", + "version": "0.1.0-beta3", "license": "MIT", "dependencies": { "isomorphic-ws": "^4.0.1", @@ -22860,7 +22824,7 @@ "devDependencies": { "@skyway-sdk/model": "^1.0.0", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "jest": "^27.0.6" @@ -24286,12 +24250,12 @@ }, "packages/core": { "name": "@skyway-sdk/core", - "version": "1.7.1", + "version": "1.8.0", "license": "MIT", "dependencies": { - "@skyway-sdk/analytics-client": "^0.1.0-beta2", - "@skyway-sdk/rtc-api-client": "^1.5.1", - "@skyway-sdk/signaling-client": "^1.0.3", + "@skyway-sdk/analytics-client": "^0.1.0-beta3", + "@skyway-sdk/rtc-api-client": "^1.6.0", + "@skyway-sdk/signaling-client": "^1.0.4", "bowser": "^2.11.0", "deepmerge": "^4.2.2", "sdp-transform": "^2.14.1", @@ -24338,11 +24302,11 @@ }, "packages/room": { "name": "@skyway-sdk/room", - "version": "1.7.1", + "version": "1.8.0", "license": "MIT", "dependencies": { - "@skyway-sdk/core": "^1.7.1", - "@skyway-sdk/sfu-bot": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", + "@skyway-sdk/sfu-bot": "^1.8.0", "uuid": "^9.0.0" }, "devDependencies": { @@ -24360,11 +24324,11 @@ }, "packages/rtc-api-client": { "name": "@skyway-sdk/rtc-api-client", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { - "@skyway-sdk/rtc-rpc-api-client": "^1.5.1", - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/rtc-rpc-api-client": "^1.6.0", + "@skyway-sdk/token": "^1.6.0", "deepmerge": "^4.2.2", "uuid": "^9.0.0" }, @@ -24383,7 +24347,7 @@ }, "packages/rtc-rpc-api-client": { "name": "@skyway-sdk/rtc-rpc-api-client", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { "@skyway-sdk/common": "^1.4.6", @@ -24392,7 +24356,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/token": "^1.6.0", "@types/uuid": "^9.0.1" } }, @@ -24417,10 +24381,10 @@ }, "packages/sfu-bot": { "name": "@skyway-sdk/sfu-bot", - "version": "1.7.1", + "version": "1.8.0", "license": "MIT", "dependencies": { - "@skyway-sdk/core": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", "@skyway-sdk/sfu-api-client": "^1.4.6", "lodash": "4.17.21", "mediasoup-client": "3.6.82" @@ -24429,7 +24393,7 @@ }, "packages/signaling-client": { "name": "@skyway-sdk/signaling-client", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "isomorphic-fetch": "^3.0.0", @@ -24440,7 +24404,7 @@ "devDependencies": { "@types/isomorphic-fetch": "0.0.35", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "jest": "^27.0.6", @@ -25831,7 +25795,7 @@ }, "packages/token": { "name": "@skyway-sdk/token", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { "@skyway-sdk/common": "^1.4.6", @@ -30074,42 +30038,16 @@ } }, "@nrwl/devkit": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-15.7.2.tgz", - "integrity": "sha512-HMGi7L6w2g4IrYwhb04snD8Zr24Z/gzau5i9WUNkwzrjeR1xAm0Cc9WRre221zaeohtK11gyBt7BerT1tgkNwA==", + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-15.9.7.tgz", + "integrity": "sha512-Sb7Am2TMT8AVq8e+vxOlk3AtOA2M0qCmhBzoM1OJbdHaPKc0g0UgSnWRml1kPGg5qfPk72tWclLoZJ5/ut0vTg==", "dev": true, "requires": { - "@phenomnomnominal/tsquery": "4.1.1", "ejs": "^3.1.7", "ignore": "^5.0.4", - "semver": "7.3.4", + "semver": "7.5.4", + "tmp": "~0.2.1", "tslib": "^2.3.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } } }, "@nrwl/nx-darwin-arm64": { @@ -31095,15 +31033,6 @@ "nullthrows": "^1.1.1" } }, - "@phenomnomnominal/tsquery": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-4.1.1.tgz", - "integrity": "sha512-jjMmK1tnZbm1Jq5a7fBliM4gQwjxMU7TFoRNwIyzwlO+eHPRCFv/Nv+H/Gi1jc3WR7QURG8D5d0Tn12YGrUqBQ==", - "dev": true, - "requires": { - "esquery": "^1.0.1" - } - }, "@popperjs/core": { "version": "2.11.6", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz", @@ -31148,7 +31077,7 @@ "requires": { "@skyway-sdk/model": "^1.0.0", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "isomorphic-ws": "^4.0.1", @@ -32264,9 +32193,9 @@ "@skyway-sdk/core": { "version": "file:packages/core", "requires": { - "@skyway-sdk/analytics-client": "^0.1.0-beta2", - "@skyway-sdk/rtc-api-client": "^1.5.1", - "@skyway-sdk/signaling-client": "^1.0.3", + "@skyway-sdk/analytics-client": "^0.1.0-beta3", + "@skyway-sdk/rtc-api-client": "^1.6.0", + "@skyway-sdk/signaling-client": "^1.0.4", "@types/sdp-transform": "^2.4.5", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^9.0.1", @@ -32295,8 +32224,8 @@ "@skyway-sdk/room": { "version": "file:packages/room", "requires": { - "@skyway-sdk/core": "^1.7.1", - "@skyway-sdk/sfu-bot": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", + "@skyway-sdk/sfu-bot": "^1.8.0", "@types/uuid": "^9.0.1", "uuid": "^9.0.0" }, @@ -32311,8 +32240,8 @@ "@skyway-sdk/rtc-api-client": { "version": "file:packages/rtc-api-client", "requires": { - "@skyway-sdk/rtc-rpc-api-client": "^1.5.1", - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/rtc-rpc-api-client": "^1.6.0", + "@skyway-sdk/token": "^1.6.0", "@types/uuid": "^9.0.1", "deepmerge": "^4.2.2", "uuid": "^9.0.0" @@ -32330,7 +32259,7 @@ "requires": { "@skyway-sdk/common": "^1.4.6", "@skyway-sdk/model": "^1.0.1", - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/token": "^1.6.0", "@types/uuid": "^9.0.1", "isomorphic-ws": "^4.0.1", "uuid": "^9.0.0" @@ -32353,7 +32282,7 @@ "@skyway-sdk/sfu-bot": { "version": "file:packages/sfu-bot", "requires": { - "@skyway-sdk/core": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", "@skyway-sdk/sfu-api-client": "^1.4.6", "lodash": "4.17.21", "mediasoup-client": "3.6.82" @@ -32364,7 +32293,7 @@ "requires": { "@types/isomorphic-fetch": "0.0.35", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "isomorphic-fetch": "^3.0.0", @@ -33713,10 +33642,13 @@ "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" }, "@types/node": { - "version": "18.14.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.2.tgz", - "integrity": "sha512-1uEQxww3DaghA0RxqHx0O0ppVlo43pJhepY51OxuQIKHpjbnYLA7vcdwioNPzIqmC2u3I/dmylcqjlh0e7AyUA==", - "dev": true + "version": "18.19.31", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.31.tgz", + "integrity": "sha512-ArgCD39YpyyrtFKIqMDvjz79jto5fcI/SVUs2HwB+f0dAzq68yqOdyaSivLiLugSziTpNXLQrVb7RZFmdZzbhA==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/normalize-package-data": { "version": "2.4.1", @@ -37095,9 +37027,9 @@ } }, "follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==" + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==" }, "for-each": { "version": "0.3.3", @@ -42010,7 +41942,7 @@ "react": "^18.0.0", "react-dom": "^18.0.0", "typescript": "^4.6.3", - "vite": "^2.9.17" + "vite": "^2.9.18" } }, "pngjs": { @@ -43733,23 +43665,23 @@ } }, "tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", "dev": true, "requires": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^4.0.0", + "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" }, "dependencies": { "minipass": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.4.tgz", - "integrity": "sha512-lwycX3cBMTvcejsHITUgYj6Gy6A7Nh4Q6h9NP4sTHY1ccJlC7yKzDmiShEHsJ16Jf1nKGDEaiHxiltsJEvk0nQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true }, "mkdirp": { @@ -44224,6 +44156,12 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -44445,9 +44383,9 @@ "dev": true }, "vite": { - "version": "2.9.17", - "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.17.tgz", - "integrity": "sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==", + "version": "2.9.18", + "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.18.tgz", + "integrity": "sha512-sAOqI5wNM9QvSEE70W3UGMdT8cyEn0+PmJMTFvTB8wB0YbYUWw3gUbY62AOyrXosGieF2htmeLATvNxpv/zNyQ==", "dev": true, "requires": { "esbuild": "^0.14.27", diff --git a/package.json b/package.json index 3cfb31d..a2b8fc3 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "packageManager": "npm@7.7.6", "engines": { - "node": ">=16.0.0", + "node": ">=18.12.0", "npm": "=7.7.6" } } diff --git a/packages/analytics-client/package.json b/packages/analytics-client/package.json index 1463c25..1933ad6 100644 --- a/packages/analytics-client/package.json +++ b/packages/analytics-client/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/analytics-client", - "version": "0.1.0-beta2", + "version": "0.1.0-beta3", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -42,7 +42,7 @@ "devDependencies": { "@skyway-sdk/model": "^1.0.0", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "jest": "^27.0.6" diff --git a/packages/analytics-client/src/socket.ts b/packages/analytics-client/src/socket.ts index f9483ab..c61fe82 100644 --- a/packages/analytics-client/src/socket.ts +++ b/packages/analytics-client/src/socket.ts @@ -68,7 +68,7 @@ export class Socket { readonly onConnectionFailed = new Event(); - private _reconnectTimer: NodeJS.Timer | undefined; + private _reconnectTimer: ReturnType | undefined; private _resendClientEvents: ClientEvent[] = []; diff --git a/packages/core/package.json b/packages/core/package.json index 7bf1a12..705ad8a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/core", - "version": "1.7.1", + "version": "1.8.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -47,9 +47,9 @@ "watch:tsc": "tsc -p tsconfig.build.json -w" }, "dependencies": { - "@skyway-sdk/analytics-client": "^0.1.0-beta2", - "@skyway-sdk/rtc-api-client": "^1.5.1", - "@skyway-sdk/signaling-client": "^1.0.3", + "@skyway-sdk/analytics-client": "^0.1.0-beta3", + "@skyway-sdk/rtc-api-client": "^1.6.0", + "@skyway-sdk/signaling-client": "^1.0.4", "bowser": "^2.11.0", "deepmerge": "^4.2.2", "sdp-transform": "^2.14.1", diff --git a/packages/core/src/plugin/internal/person/connection/index.ts b/packages/core/src/plugin/internal/person/connection/index.ts index e8274b4..844dde0 100644 --- a/packages/core/src/plugin/internal/person/connection/index.ts +++ b/packages/core/src/plugin/internal/person/connection/index.ts @@ -32,7 +32,9 @@ export class P2PConnection implements SkyWayConnection { localPersonId: this.localPerson.id, }); private _pubsubQueue = new PromiseQueue(); - private sendSubscriptionStatsReportTimer: NodeJS.Timer | null = null; + private sendSubscriptionStatsReportTimer: ReturnType< + typeof setInterval + > | null = null; private _waitingSendSubscriptionStatsReportsFromPublish: Map = new Map(); private _waitingSendSubscriptionStatsReportsFromSubscribe: string[] = []; diff --git a/packages/core/src/version.ts b/packages/core/src/version.ts index b70208d..a35ec54 100644 --- a/packages/core/src/version.ts +++ b/packages/core/src/version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '1.7.1'; +export const PACKAGE_VERSION = '1.8.0'; diff --git a/packages/room/package.json b/packages/room/package.json index 368db8b..471e75e 100644 --- a/packages/room/package.json +++ b/packages/room/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/room", - "version": "1.7.1", + "version": "1.8.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -46,8 +46,8 @@ "watch:tsc": "tsc -p tsconfig.build.json -w" }, "dependencies": { - "@skyway-sdk/core": "^1.7.1", - "@skyway-sdk/sfu-bot": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", + "@skyway-sdk/sfu-bot": "^1.8.0", "uuid": "^9.0.0" }, "devDependencies": { diff --git a/packages/room/src/version.ts b/packages/room/src/version.ts index b70208d..a35ec54 100644 --- a/packages/room/src/version.ts +++ b/packages/room/src/version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '1.7.1'; +export const PACKAGE_VERSION = '1.8.0'; diff --git a/packages/rtc-api-client/package.json b/packages/rtc-api-client/package.json index 897fd4f..2ca7ac8 100644 --- a/packages/rtc-api-client/package.json +++ b/packages/rtc-api-client/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/rtc-api-client", - "version": "1.5.1", + "version": "1.6.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -35,8 +35,8 @@ "watch:tsc": "tsc -p tsconfig.build.json -w" }, "dependencies": { - "@skyway-sdk/rtc-rpc-api-client": "^1.5.1", - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/rtc-rpc-api-client": "^1.6.0", + "@skyway-sdk/token": "^1.6.0", "deepmerge": "^4.2.2", "uuid": "^9.0.0" }, diff --git a/packages/rtc-rpc-api-client/package.json b/packages/rtc-rpc-api-client/package.json index acb7c5f..75d7a6e 100644 --- a/packages/rtc-rpc-api-client/package.json +++ b/packages/rtc-rpc-api-client/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/rtc-rpc-api-client", - "version": "1.5.1", + "version": "1.6.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -40,7 +40,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@skyway-sdk/token": "^1.5.1", + "@skyway-sdk/token": "^1.6.0", "@types/uuid": "^9.0.1" }, "keywords": [ diff --git a/packages/sfu-bot/package.json b/packages/sfu-bot/package.json index 469479f..590b6d5 100644 --- a/packages/sfu-bot/package.json +++ b/packages/sfu-bot/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/sfu-bot", - "version": "1.7.1", + "version": "1.8.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -41,7 +41,7 @@ "watch:tsc": "tsc -p tsconfig.build.json -w" }, "dependencies": { - "@skyway-sdk/core": "^1.7.1", + "@skyway-sdk/core": "^1.8.0", "@skyway-sdk/sfu-api-client": "^1.4.6", "lodash": "4.17.21", "mediasoup-client": "3.6.82" diff --git a/packages/sfu-bot/src/connection/receiver.ts b/packages/sfu-bot/src/connection/receiver.ts index c9f4e46..692b14a 100644 --- a/packages/sfu-bot/src/connection/receiver.ts +++ b/packages/sfu-bot/src/connection/receiver.ts @@ -26,7 +26,9 @@ export class Receiver { transport?: SfuTransport; private _disposer = new EventDisposer(); - private sendSubscriptionStatsReportTimer: NodeJS.Timer | null = null; + private sendSubscriptionStatsReportTimer: ReturnType< + typeof setInterval + > | null = null; private _waitingSendSubscriptionStatsReports: string[] = []; constructor( diff --git a/packages/sfu-bot/src/connection/sender.ts b/packages/sfu-bot/src/connection/sender.ts index 930e334..340930c 100644 --- a/packages/sfu-bot/src/connection/sender.ts +++ b/packages/sfu-bot/src/connection/sender.ts @@ -50,7 +50,9 @@ export class Sender { private readonly onConnectionStateChanged = new Event(); closed = false; - private sendSubscriptionStatsReportTimer: NodeJS.Timer | null = null; + private sendSubscriptionStatsReportTimer: ReturnType< + typeof setInterval + > | null = null; private _waitingSendSubscriptionStatsReports: string[] = []; constructor( diff --git a/packages/sfu-bot/src/version.ts b/packages/sfu-bot/src/version.ts index b70208d..a35ec54 100644 --- a/packages/sfu-bot/src/version.ts +++ b/packages/sfu-bot/src/version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '1.7.1'; +export const PACKAGE_VERSION = '1.8.0'; diff --git a/packages/signaling-client/package.json b/packages/signaling-client/package.json index fa50546..e519823 100644 --- a/packages/signaling-client/package.json +++ b/packages/signaling-client/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/signaling-client", - "version": "1.0.3", + "version": "1.0.4", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { @@ -43,7 +43,7 @@ "devDependencies": { "@types/isomorphic-fetch": "0.0.35", "@types/jest": "^27.0.0", - "@types/node": "^16.3.0", + "@types/node": "^18.12.0", "@types/uuid": "^9.0.1", "@types/ws": "^7.4.6", "jest": "^27.0.6", diff --git a/packages/signaling-client/src/signalingClient.ts b/packages/signaling-client/src/signalingClient.ts index 311ffe1..4124012 100644 --- a/packages/signaling-client/src/signalingClient.ts +++ b/packages/signaling-client/src/signalingClient.ts @@ -55,9 +55,9 @@ export class SignalingClient { private readonly _memberName?: string; - private _connectivityCheckInterval: NodeJS.Timer | undefined; + private _connectivityCheckInterval: ReturnType | undefined; - private _connectivityCheckTimers: Map = new Map(); + private _connectivityCheckTimers: Map> = new Map(); private _responseCallbacks: Map) => void> = new Map(); diff --git a/packages/signaling-client/src/socket.ts b/packages/signaling-client/src/socket.ts index ddf972f..eef3796 100644 --- a/packages/signaling-client/src/socket.ts +++ b/packages/signaling-client/src/socket.ts @@ -63,7 +63,7 @@ export class Socket { readonly onConnectionFailed = new Event(); - private _reconnectTimer: NodeJS.Timer | undefined; + private _reconnectTimer: ReturnType | undefined; constructor({ channelId, channelName, memberId, memberName, sessionEndpoint, token, logger }: SocketParams) { this._sessionEndpoint = sessionEndpoint; diff --git a/packages/signaling-client/src/version.ts b/packages/signaling-client/src/version.ts index c83e730..4ca1891 100644 --- a/packages/signaling-client/src/version.ts +++ b/packages/signaling-client/src/version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '0.2.0-beta.0'; +export const PACKAGE_VERSION = '1.0.4'; diff --git a/packages/token/package.json b/packages/token/package.json index 332299e..54e051c 100644 --- a/packages/token/package.json +++ b/packages/token/package.json @@ -1,6 +1,6 @@ { "name": "@skyway-sdk/token", - "version": "1.5.1", + "version": "1.6.0", "description": "The official Next Generation JavaScript SDK for SkyWay", "homepage": "https://skyway.ntt.com/", "repository": { diff --git a/packages/token/src/encoder.ts b/packages/token/src/encoder.ts index 3661588..17d6646 100644 --- a/packages/token/src/encoder.ts +++ b/packages/token/src/encoder.ts @@ -17,6 +17,7 @@ export class SkyWayAuthToken implements AuthToken { readonly scope!: { readonly app: AppScope; }; + version?: number; tokenString?: string; constructor(props: AuthToken) { @@ -44,6 +45,7 @@ export class SkyWayAuthToken implements AuthToken { iat: this.iat, exp: this.exp, scope: this.scope, + version: this.version, }; this.tokenString = jsrsasign.KJUR.jws.JWS.sign( 'HS256', @@ -62,6 +64,7 @@ export class SkyWayAuthToken implements AuthToken { exp: this.exp, scope: this.scope, encoded: this.tokenString, + version: this.version, }; } } diff --git a/packages/token/src/token.ts b/packages/token/src/token.ts index cf9b46d..17b40f9 100644 --- a/packages/token/src/token.ts +++ b/packages/token/src/token.ts @@ -10,4 +10,5 @@ export type AuthToken = { scope: { app: AppScope; }; + version?: number; };