node-datachannel
Advanced tools
Comparing version 0.3.6 to 0.4.0
@@ -52,2 +52,6 @@ # API | ||
**destroy: () => void** | ||
Close Peer Connection & Clear all callbacks | ||
**setRemoteDescription: (sdp: string, type: DescriptionType) => void** | ||
@@ -54,0 +58,0 @@ |
cmake_minimum_required(VERSION 3.15) | ||
cmake_policy(SET CMP0091 NEW) | ||
project(node_datachannel VERSION 0.3.6) | ||
project(node_datachannel VERSION 0.4.0) | ||
@@ -41,3 +41,3 @@ # Workaround for https://github.com/murat-dogan/node-datachannel/issues/65 | ||
GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git | ||
GIT_TAG "v0.17.9" | ||
GIT_TAG "v0.17.10" | ||
) | ||
@@ -77,5 +77,8 @@ | ||
# For compatibility with Node.js 12 | ||
# This should be removed along with the napi-thread-safe-callback-cancellable dependency when dropping support at end-of-life | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE -DLEGACY_NAPI_THREAD_SAFE_CALLBACK) | ||
if( NODE_RUNTIMEVERSION VERSION_LESS "16.0.0") | ||
# For compatibility with Node.js 12 | ||
# This should be removed along with the napi-thread-safe-callback-cancellable dependency when dropping support at end-of-life | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE -DLEGACY_NAPI_THREAD_SAFE_CALLBACK) | ||
endif() | ||
target_include_directories(${PROJECT_NAME} PRIVATE | ||
@@ -82,0 +85,0 @@ ${CMAKE_SOURCE_DIR}/node_modules/napi-thread-safe-callback-cancellable |
@@ -207,2 +207,3 @@ import * as stream from 'stream'; | ||
close(): void; | ||
destroy(): void; | ||
setLocalDescription(type?: DescriptionType): void; | ||
@@ -209,0 +210,0 @@ setRemoteDescription(sdp: string, type: DescriptionType): void; |
{ | ||
"name": "node-datachannel", | ||
"version": "0.3.6", | ||
"version": "0.4.0", | ||
"description": "libdatachannel node bindings", | ||
@@ -16,2 +16,3 @@ "main": "lib/index.js", | ||
"build": "cmake-js build", | ||
"build:debug": "cmake-js build -D", | ||
"_prebuild": "prebuild --backend cmake-js", | ||
@@ -18,0 +19,0 @@ "clean": "cmake-js clean", |
@@ -33,2 +33,3 @@ # Easy to use WebRTC data channels and media transport | ||
| Node V17 | + | + | + | + | + | + | | ||
| Node V18 | + | + | + | + | + | + | | ||
@@ -35,0 +36,0 @@ 1) Please note that; For Linux-arm64 platform we need OpenSSL to be installed locally. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1324757
20211
123