node-datachannel 0.3.2 → 0.3.3

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.
@@ -2,7 +2,7 @@ name: Build - Linux
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
5
- create:
5
+ push:
6
6
  tags:
7
7
  - v*
8
8
 
@@ -2,7 +2,7 @@ name: Build - Mac
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
5
- create:
5
+ push:
6
6
  tags:
7
7
  - v*
8
8
 
@@ -2,7 +2,7 @@ name: Build - Win
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
5
- create:
5
+ push:
6
6
  tags:
7
7
  - v*
8
8
 
@@ -1,10 +1,7 @@
1
1
  name: Lint
2
2
 
3
3
  on:
4
- push:
5
- branches: [ main ]
6
4
  pull_request:
7
- branches: [ main ]
8
5
  workflow_dispatch:
9
6
 
10
7
  jobs:
package/CMakeLists.txt CHANGED
@@ -33,7 +33,7 @@ include(FetchContent)
33
33
  FetchContent_Declare(
34
34
  libdatachannel
35
35
  GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git
36
- GIT_TAG "v0.17.3"
36
+ GIT_TAG "v0.17.6"
37
37
  )
38
38
 
39
39
  option(NO_MEDIA "Disable media transport support in libdatachannel" OFF)
package/README.md CHANGED
@@ -104,9 +104,11 @@ export interface RtcConfig {
104
104
  iceServers: (string | IceServer)[];
105
105
  proxyServer?: ProxyServer;
106
106
  enableIceTcp?: boolean;
107
+ enableIceUdpMux?: boolean;
107
108
  portRangeBegin?: number;
108
109
  portRangeEnd?: number;
109
110
  maxMessageSize?: number;
111
+ mtu?: number;
110
112
  iceTransportPolicy?: TransportPolicy;
111
113
  }
112
114
 
package/lib/index.d.ts CHANGED
@@ -53,6 +53,7 @@ export interface RtcConfig {
53
53
  portRangeBegin?: number;
54
54
  portRangeEnd?: number;
55
55
  maxMessageSize?: number;
56
+ mtu?: number;
56
57
  iceTransportPolicy?: TransportPolicy;
57
58
  }
58
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-datachannel",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "libdatachannel node bindings",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -182,7 +182,11 @@ PeerConnectionWrapper::PeerConnectionWrapper(const Napi::CallbackInfo &info) : N
182
182
 
183
183
  // Max Message Size
184
184
  if (config.Get("maxMessageSize").IsNumber())
185
- rtcConfig.maxMessageSize = config.Get("maxMessageSize").As<Napi::Number>().Uint32Value();
185
+ rtcConfig.maxMessageSize = config.Get("maxMessageSize").As<Napi::Number>().Int32Value();
186
+
187
+ // MTU
188
+ if (config.Get("mtu").IsNumber())
189
+ rtcConfig.mtu = config.Get("mtu").As<Napi::Number>().Int32Value();
186
190
 
187
191
  // ICE transport policy
188
192
  if (!config.Get("iceTransportPolicy").IsUndefined())