node-datachannel 0.5.4 → 0.5.5

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/CMakeLists.txt CHANGED
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
2
2
  cmake_policy(SET CMP0091 NEW)
3
3
  cmake_policy(SET CMP0042 NEW)
4
4
 
5
- project(node_datachannel VERSION 0.5.4)
5
+ project(node_datachannel VERSION 0.5.5)
6
6
 
7
7
  # -Dnapi_build_version=8
8
8
  add_definitions(-DNAPI_VERSION=8)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-datachannel",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "libdatachannel node bindings",
5
5
  "type": "module",
6
6
  "exports": {
@@ -222,6 +222,7 @@ export default class _RTCPeerConnection extends EventTarget {
222
222
  });
223
223
 
224
224
  this.#peerConnection.close();
225
+ this.#peerConnection.destroy();
225
226
  }
226
227
 
227
228
  createAnswer() {
@@ -86,5 +86,4 @@ peer2
86
86
  setTimeout(() => {
87
87
  peer1.close();
88
88
  peer2.close();
89
- nodeDataChannel.cleanup();
90
89
  }, 5 * 1000);