mediasoup 3.12.3 → 3.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
90
90
  // options
91
91
  {
92
92
  env: {
93
- MEDIASOUP_VERSION: '3.12.3',
93
+ MEDIASOUP_VERSION: '3.12.4',
94
94
  // Let the worker process inherit all environment variables, useful
95
95
  // if a custom and not in the path GCC is used so the user can set
96
96
  // LD_LIBRARY_PATH environment variable for runtime.
@@ -10,7 +10,7 @@ export { types };
10
10
  /**
11
11
  * Expose mediasoup version.
12
12
  */
13
- export declare const version = "3.12.3";
13
+ export declare const version = "3.12.4";
14
14
  /**
15
15
  * Expose parseScalabilityMode() function.
16
16
  */
package/node/lib/index.js CHANGED
@@ -11,7 +11,7 @@ exports.types = types;
11
11
  /**
12
12
  * Expose mediasoup version.
13
13
  */
14
- exports.version = '3.12.3';
14
+ exports.version = '3.12.4';
15
15
  /**
16
16
  * Expose parseScalabilityMode() function.
17
17
  */
package/npm-scripts.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import process from 'process';
2
2
  import os from 'os';
3
3
  import fs from 'fs';
4
+ import path from 'path';
4
5
  import { execSync, spawnSync } from 'child_process';
5
6
  import fetch from 'node-fetch';
6
7
  import tar from 'tar';
@@ -73,7 +74,11 @@ async function run()
73
74
  logInfo('skipping mediasoup-worker prebuilt download, building it locally');
74
75
 
75
76
  buildWorker();
76
- cleanWorkerArtifacts();
77
+
78
+ if (!process.env.MEDIASOUP_LOCAL_DEV)
79
+ {
80
+ cleanWorkerArtifacts();
81
+ }
77
82
  }
78
83
  // Attempt to download a prebuilt binary. Fallback to building locally.
79
84
  else if (!(await downloadPrebuiltWorker()))
@@ -357,7 +362,7 @@ function lintNode()
357
362
  {
358
363
  logInfo('lintNode()');
359
364
 
360
- executeCmd('eslint -c node/.eslintrc.js --max-warnings 0 node/src node/.eslintrc.js npm-scripts.mjs worker/scripts/gulpfile.js');
365
+ executeCmd('eslint -c node/.eslintrc.js --max-warnings 0 node/src node/.eslintrc.js npm-scripts.mjs worker/scripts/gulpfile.mjs');
361
366
  }
362
367
 
363
368
  function lintWorker()
@@ -547,8 +552,10 @@ async function downloadPrebuiltWorker()
547
552
 
548
553
  try
549
554
  {
555
+ const resolvedBinPath = path.resolve(WORKER_RELEASE_BIN_PATH);
556
+
550
557
  execSync(
551
- `${WORKER_RELEASE_BIN_PATH}`,
558
+ resolvedBinPath,
552
559
  {
553
560
  stdio : [ 'ignore', 'ignore', 'ignore' ],
554
561
  // Ensure no env is passed to avoid accidents.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup",
3
- "version": "3.12.3",
3
+ "version": "3.12.4",
4
4
  "description": "Cutting Edge WebRTC Video Conferencing",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -95,22 +95,22 @@
95
95
  "uuid": "^9.0.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@octokit/rest": "^19.0.11",
98
+ "@octokit/rest": "^19.0.13",
99
99
  "@types/debug": "^4.1.8",
100
- "@types/jest": "^29.5.1",
101
- "@types/node": "^20.2.5",
102
- "@types/uuid": "^9.0.1",
103
- "@typescript-eslint/eslint-plugin": "^5.59.7",
104
- "@typescript-eslint/parser": "^5.59.7",
105
- "eslint": "^8.41.0",
106
- "eslint-plugin-jest": "^27.2.1",
100
+ "@types/jest": "^29.5.2",
101
+ "@types/node": "^18.16.18",
102
+ "@types/uuid": "^9.0.2",
103
+ "@typescript-eslint/eslint-plugin": "^5.60.0",
104
+ "@typescript-eslint/parser": "^5.60.0",
105
+ "eslint": "^8.43.0",
106
+ "eslint-plugin-jest": "^27.2.2",
107
107
  "jest": "^29.5.0",
108
- "marked": "^5.0.3",
108
+ "marked": "^5.1.0",
109
109
  "open-cli": "^7.2.0",
110
110
  "pick-port": "^1.0.1",
111
111
  "sctp": "^1.0.0",
112
112
  "ts-jest": "^29.1.0",
113
113
  "tsc-watch": "^6.0.4",
114
- "typescript": "^5.0.4"
114
+ "typescript": "^5.1.3"
115
115
  }
116
116
  }
package/worker/Makefile CHANGED
@@ -208,10 +208,10 @@ xcode: setup
208
208
  $(MESON) setup --buildtype debug --backend xcode $(MEDIASOUP_OUT_DIR)/xcode
209
209
 
210
210
  lint:
211
- $(GULP) --gulpfile ./scripts/gulpfile.js lint:worker
211
+ $(GULP) --gulpfile ./scripts/gulpfile.mjs lint:worker
212
212
 
213
213
  format:
214
- $(GULP) --gulpfile ./scripts/gulpfile.js format:worker
214
+ $(GULP) --gulpfile ./scripts/gulpfile.mjs format:worker
215
215
 
216
216
  test: setup
217
217
  $(MESON) compile -C $(BUILD_DIR) -j $(CORES) mediasoup-worker-test
@@ -1,25 +0,0 @@
1
- const gulp = require('gulp');
2
- const clangFormat = require('gulp-clang-format');
3
-
4
- const workerFiles =
5
- [
6
- '../src/**/*.cpp',
7
- '../include/**/*.hpp',
8
- '../test/src/**/*.cpp',
9
- '../test/include/helpers.hpp',
10
- '../fuzzer/src/**/*.cpp',
11
- '../fuzzer/include/**/*.hpp'
12
- ];
13
-
14
- gulp.task('lint:worker', () =>
15
- {
16
- return gulp.src(workerFiles)
17
- .pipe(clangFormat.checkFormat('file', null, { verbose: true, fail: true }));
18
- });
19
-
20
- gulp.task('format:worker', () =>
21
- {
22
- return gulp.src(workerFiles, { base: '.' })
23
- .pipe(clangFormat.format('file'))
24
- .pipe(gulp.dest('.'));
25
- });