mediasoup-client 3.23.0 → 3.23.1

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.
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * as types from './types';
6
6
  /**
7
7
  * Expose mediasoup-client version.
8
8
  */
9
- export declare const version = "__MEDIASOUP_CLIENT_VERSION__";
9
+ export declare const version = "3.23.1";
10
10
  /**
11
11
  * Expose Device class and device detector helpers.
12
12
  */
package/lib/index.js CHANGED
@@ -46,7 +46,7 @@ exports.types = __importStar(require("./types"));
46
46
  /**
47
47
  * Expose mediasoup-client version.
48
48
  */
49
- exports.version = '__MEDIASOUP_CLIENT_VERSION__';
49
+ exports.version = '3.23.1';
50
50
  /**
51
51
  * Expose Device class and device detector helpers.
52
52
  */
package/npm-scripts.mjs CHANGED
@@ -77,6 +77,7 @@ async function run() {
77
77
  }
78
78
 
79
79
  case 'lint': {
80
+ replaceVersion();
80
81
  lint();
81
82
 
82
83
  break;
@@ -170,6 +171,14 @@ function buildTypescript({ force, args = '' }) {
170
171
 
171
172
  // Generate .js CommonJS code and .d.ts TypeScript declaration files in lib/.
172
173
  executeCmd(`tsc ${args}`);
174
+
175
+ // NOTE: This must happen here (and not just in the `release` task) because
176
+ // the published tarball is built in GitHub Actions: `npm publish` runs the
177
+ // `prepare` script, which transpiles a fresh lib/ (lib/ is gitignored, so
178
+ // whatever `release` patched locally never reaches CI). `prepare` is the
179
+ // last hook NPM runs before assembling the tarball, so replacing the
180
+ // version right after `tsc` is the only reliable place.
181
+ replaceVersion();
173
182
  }
174
183
 
175
184
  function watchTypescript({ args = '' } = {}) {
@@ -321,8 +330,9 @@ async function release({ args = '' } = {}) {
321
330
  // Bump the version in package.json + package-lock.json.
322
331
  executeCmd(`npm version ${version} --no-git-tag-version`);
323
332
 
324
- // Also replace the version in the transpiled JS.
325
- replaceVersion();
333
+ // NOTE: No need to replace the version in the transpiled JS here: lib/ is
334
+ // gitignored and the published tarball is built from scratch in GitHub
335
+ // Actions, where `buildTypescript()` does the replacement.
326
336
 
327
337
  // Commit the bump, tag it, and push both. The pushed tag triggers
328
338
  // `mediasoup-client-npm-publish` workflow, which checks, creates the GitHub
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.23.0",
3
+ "version": "3.23.1",
4
4
  "description": "mediasoup client side TypeScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",