Skip to content

Commit 2dc492c

Browse files
chore(deps): bump the npm_and_yarn group across 4 directories with 2 updates (#819)
* chore(deps): bump the npm_and_yarn group across 4 directories with 2 updates Bumps the npm_and_yarn group with 2 updates in the / directory: [uuid](https://github.com/uuidjs/uuid) and [follow-redirects](https://github.com/follow-redirects/follow-redirects). Bumps the npm_and_yarn group with 1 update in the /Extras/FrontendTests directory: [uuid](https://github.com/uuidjs/uuid). Bumps the npm_and_yarn group with 1 update in the /Extras/MinimalStreamTester directory: [uuid](https://github.com/uuidjs/uuid). Bumps the npm_and_yarn group with 1 update in the /Extras/mediasoup-sdp-bridge directory: [uuid](https://github.com/uuidjs/uuid). Updates `uuid` from 8.3.2 to 14.0.0 - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v8.3.2...v14.0.0) Updates `follow-redirects` from 1.15.11 to 1.16.0 - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.11...v1.16.0) Updates `uuid` from 9.0.1 to 14.0.0 - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v8.3.2...v14.0.0) Updates `uuid` from 9.0.1 to 14.0.0 - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v8.3.2...v14.0.0) Updates `uuid` from 8.3.2 to 14.0.0 - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v8.3.2...v14.0.0) --- updated-dependencies: - dependency-name: uuid dependency-version: 14.0.0 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: follow-redirects dependency-version: 1.16.0 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: uuid dependency-version: 14.0.0 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: uuid dependency-version: 14.0.0 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: uuid dependency-version: 14.0.0 dependency-type: direct:production dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> * Drop uuid dependency from mediasoup-sdp-bridge uuid 10+ is ESM-only. mediasoup-sdp-bridge is a CommonJS package with moduleResolution: Node16, so the static `import { v4 as uuidv4 } from "uuid"` is rejected by tsc as TS1479 when dependabot bumped uuid from 8.3.2 to 14.0.0. The package requires Node >= 16 per its engines field, which has crypto.randomUUID() natively. The one call site uses only the first 8 characters of the UUID to build an MSID, so the swap is trivial and removes a third-party dependency from the bridge. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthew.Cotton <matt@tensorworks.com.au>
1 parent feee263 commit 2dc492c

5 files changed

Lines changed: 38 additions & 31 deletions

File tree

Extras/FrontendTests/package.json

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"@epicgames-ps/lib-pixelstreamingfrontend-ue5.7": "*",
2424
"dotenv": "^16.4.5",
2525
"node-fetch": "^2.7.0",
26-
"uuid": "^9.0.0"
26+
"uuid": "^14.0.0"
2727
}
2828
}

Extras/MinimalStreamTester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"dependencies": {
2121
"dotenv": "^16.4.5",
2222
"node-fetch": "^2.7.0",
23-
"uuid": "^9.0.0"
23+
"uuid": "^14.0.0"
2424
}
2525
}

Extras/mediasoup-sdp-bridge/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@
4747
"h264-profile-level-id": "^1.0.1",
4848
"lodash": "^4.18.1",
4949
"sdp-transform": "^2.14.0",
50-
"supports-color": "^7.1.0",
51-
"uuid": "^8.1.0"
50+
"supports-color": "^7.1.0"
5251
},
5352
"devDependencies": {
5453
"@tsconfig/node16": "^1.0.0",
5554
"@types/debug": "^4.1.5",
5655
"@types/lodash": "^4.0.0",
5756
"@types/node": "^22.14.0",
5857
"@types/sdp-transform": "^2.4.3",
59-
"@types/uuid": "^8.0.0",
6058
"@typescript-eslint/eslint-plugin": "^8.48.0",
6159
"@typescript-eslint/parser": "^8.48.0",
6260
"eslint": "^9.39.0",

Extras/mediasoup-sdp-bridge/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
WebRtcTransport,
1313
} from "mediasoup/node/lib/types";
1414

15+
import { randomUUID } from "node:crypto";
1516
import * as SdpTransform from "sdp-transform";
16-
import { v4 as uuidv4 } from "uuid";
1717

1818
import * as BrowserRtpCapabilities from "./BrowserRtpCapabilities";
1919
import * as SdpUtils from "./SdpUtils";
@@ -254,7 +254,7 @@ export class SdpEndpoint {
254254
});
255255

256256
// Make an MSID to be used for both "audio" and "video" kinds.
257-
const sendMsid = uuidv4().substr(0, 8);
257+
const sendMsid = randomUUID().slice(0, 8);
258258

259259
console.log("[SdpEndpoint.createOffer] Make 'sendonly' SDP Offer");
260260

package-lock.json

Lines changed: 33 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)