@webrtc-node/webrtc 0.2.1 → 0.2.2

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
@@ -45,7 +45,7 @@ execute_process(
45
45
  string(REPLACE "\"" "" NODE_ADDON_API_DIR "${NODE_ADDON_API_DIR}")
46
46
  string(REPLACE "\\" "/" NODE_ADDON_API_DIR "${NODE_ADDON_API_DIR}")
47
47
 
48
- set(LIBDATACHANNEL_PINNED_COMMIT "188ec93f6a0b01c2032ddb4c8c013118f7f30232" CACHE STRING
48
+ set(LIBDATACHANNEL_PINNED_COMMIT "6b1e2e620f1e37f0eafeee702eaea0043cb305fd" CACHE STRING
49
49
  "Audited libdatachannel commit for this binding.")
50
50
 
51
51
  set(LIBDATACHANNEL_REPOSITORY "https://github.com/paullouisageneau/libdatachannel.git" CACHE STRING
package/README.md CHANGED
@@ -56,7 +56,7 @@ to a `cmake-js` source build.
56
56
 
57
57
  | OS | Prebuild targets | Node 20 | Node 22 | Node 24 |
58
58
  | --- | --- | --- | --- | --- |
59
- | Linux | x64 glibc, x64 musl | ✅ | ✅ | ✅ |
59
+ | Linux | x64 glibc, x64 musl, arm64 glibc | ✅ | ✅ | ✅ |
60
60
  | macOS | x64, arm64 | ✅ | ✅ | ✅ |
61
61
  | Windows | x64, arm64 | ✅ | ✅ | ✅ |
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webrtc-node/webrtc",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Data-channel-first WebRTC for Node.js with W3C-style RTCPeerConnection and RTCDataChannel APIs.",
5
5
  "author": "webrtc-node contributors",
6
6
  "homepage": "https://github.com/webrtc-node/webrtc#readme",
@@ -76,12 +76,12 @@
76
76
  "dependencies": {
77
77
  "cmake-js": "^8.0.0",
78
78
  "detect-libc": "^2.1.2",
79
- "node-addon-api": "^8.3.1",
80
- "tar": "^7.5.15"
79
+ "node-addon-api": "^8.9.0",
80
+ "tar": "^7.5.19"
81
81
  },
82
82
  "devDependencies": {
83
- "@biomejs/biome": "2.5.0",
84
- "playwright-core": "1.61.0",
83
+ "@biomejs/biome": "2.5.3",
84
+ "playwright-core": "1.61.1",
85
85
  "typescript": "^6.0.3"
86
86
  },
87
87
  "engines": {
@@ -47,6 +47,12 @@ function expectedBinary(platform, arch, libcTag) {
47
47
  }
48
48
  return { format: "ELF", machine: 62, libcTag };
49
49
  }
50
+ if (platform === "linux" && arch === "arm64") {
51
+ if (libcTag !== "glibc") {
52
+ throw new Error(`unsupported Linux libc target ${libcTag || "unknown"} for arm64`);
53
+ }
54
+ return { format: "ELF", machine: 183, libcTag };
55
+ }
50
56
  if (platform === "win32" && arch === "x64") {
51
57
  return { format: "PE", machine: 0x8664 };
52
58
  }