@jsonstudio/zterm-daemon-darwin-arm64 0.0.0-stage → 0.1.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.
Files changed (318) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +2 -2
  3. package/package.json +25 -4
  4. package/runtime/dagpipe.node +0 -0
  5. package/runtime/node_modules/@roamhq/wrtc/AUTHORS +17 -0
  6. package/runtime/node_modules/@roamhq/wrtc/CHANGELOG.md +1094 -0
  7. package/runtime/node_modules/@roamhq/wrtc/LICENSE.md +30 -0
  8. package/runtime/node_modules/@roamhq/wrtc/README.md +74 -0
  9. package/runtime/node_modules/@roamhq/wrtc/lib/binding.js +31 -0
  10. package/runtime/node_modules/@roamhq/wrtc/lib/browser.js +18 -0
  11. package/runtime/node_modules/@roamhq/wrtc/lib/datachannelevent.js +26 -0
  12. package/runtime/node_modules/@roamhq/wrtc/lib/datachannelmessageevent.js +9 -0
  13. package/runtime/node_modules/@roamhq/wrtc/lib/error.js +20 -0
  14. package/runtime/node_modules/@roamhq/wrtc/lib/eventtarget.js +59 -0
  15. package/runtime/node_modules/@roamhq/wrtc/lib/icecandidate.js +43 -0
  16. package/runtime/node_modules/@roamhq/wrtc/lib/index.js +85 -0
  17. package/runtime/node_modules/@roamhq/wrtc/lib/mediadevices.js +30 -0
  18. package/runtime/node_modules/@roamhq/wrtc/lib/peerconnection.js +333 -0
  19. package/runtime/node_modules/@roamhq/wrtc/lib/rtcpeerconnectioniceerrorevent.js +36 -0
  20. package/runtime/node_modules/@roamhq/wrtc/lib/rtcpeerconnectioniceevent.js +20 -0
  21. package/runtime/node_modules/@roamhq/wrtc/lib/sessiondescription.js +19 -0
  22. package/runtime/node_modules/@roamhq/wrtc/package.json +68 -0
  23. package/runtime/node_modules/@roamhq/wrtc/types/index.d.ts +32 -0
  24. package/runtime/node_modules/@roamhq/wrtc/types/nonstandard.d.ts +81 -0
  25. package/runtime/node_modules/@roamhq/wrtc-darwin-arm64/index.js +1 -0
  26. package/runtime/node_modules/@roamhq/wrtc-darwin-arm64/package.json +16 -0
  27. package/runtime/node_modules/@roamhq/wrtc-darwin-arm64/wrtc.node +0 -0
  28. package/runtime/node_modules/node-pty/LICENSE +69 -0
  29. package/runtime/node_modules/node-pty/README.md +165 -0
  30. package/runtime/node_modules/node-pty/binding.gyp +111 -0
  31. package/runtime/node_modules/node-pty/deps/.editorconfig +2 -0
  32. package/runtime/node_modules/node-pty/deps/winpty/.drone.yml +17 -0
  33. package/runtime/node_modules/node-pty/deps/winpty/.gitattributes +19 -0
  34. package/runtime/node_modules/node-pty/deps/winpty/LICENSE +21 -0
  35. package/runtime/node_modules/node-pty/deps/winpty/Makefile +166 -0
  36. package/runtime/node_modules/node-pty/deps/winpty/README.md +151 -0
  37. package/runtime/node_modules/node-pty/deps/winpty/RELEASES.md +280 -0
  38. package/runtime/node_modules/node-pty/deps/winpty/VERSION.txt +1 -0
  39. package/runtime/node_modules/node-pty/deps/winpty/configure +167 -0
  40. package/runtime/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +90 -0
  41. package/runtime/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
  42. package/runtime/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +72 -0
  43. package/runtime/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +117 -0
  44. package/runtime/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +116 -0
  45. package/runtime/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +113 -0
  46. package/runtime/node_modules/node-pty/deps/winpty/misc/DebugClient.py +42 -0
  47. package/runtime/node_modules/node-pty/deps/winpty/misc/DebugServer.py +63 -0
  48. package/runtime/node_modules/node-pty/deps/winpty/misc/DumpLines.py +5 -0
  49. package/runtime/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
  50. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
  51. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
  52. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
  53. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
  54. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
  55. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
  56. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
  57. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
  58. package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
  59. package/runtime/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +100 -0
  60. package/runtime/node_modules/node-pty/deps/winpty/misc/FormatChar.h +21 -0
  61. package/runtime/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +62 -0
  62. package/runtime/node_modules/node-pty/deps/winpty/misc/GetCh.cc +20 -0
  63. package/runtime/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +41 -0
  64. package/runtime/node_modules/node-pty/deps/winpty/misc/GetFont.cc +261 -0
  65. package/runtime/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
  66. package/runtime/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +87 -0
  67. package/runtime/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +90 -0
  68. package/runtime/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
  69. package/runtime/node_modules/node-pty/deps/winpty/misc/Notes.txt +219 -0
  70. package/runtime/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +27 -0
  71. package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
  72. package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +671 -0
  73. package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
  74. package/runtime/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +45 -0
  75. package/runtime/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +32 -0
  76. package/runtime/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +10 -0
  77. package/runtime/node_modules/node-pty/deps/winpty/misc/SetFont.cc +145 -0
  78. package/runtime/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +36 -0
  79. package/runtime/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +12 -0
  80. package/runtime/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +40 -0
  81. package/runtime/node_modules/node-pty/deps/winpty/misc/Spew.py +5 -0
  82. package/runtime/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +172 -0
  83. package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
  84. package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
  85. package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
  86. package/runtime/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +89 -0
  87. package/runtime/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +46 -0
  88. package/runtime/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +122 -0
  89. package/runtime/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +56 -0
  90. package/runtime/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
  91. package/runtime/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +57 -0
  92. package/runtime/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +30 -0
  93. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +26 -0
  94. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +19 -0
  95. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +46 -0
  96. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +70 -0
  97. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +78 -0
  98. package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +44 -0
  99. package/runtime/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
  100. package/runtime/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +106 -0
  101. package/runtime/node_modules/node-pty/deps/winpty/misc/build32.sh +9 -0
  102. package/runtime/node_modules/node-pty/deps/winpty/misc/build64.sh +9 -0
  103. package/runtime/node_modules/node-pty/deps/winpty/misc/color-test.sh +212 -0
  104. package/runtime/node_modules/node-pty/deps/winpty/misc/font-notes.txt +300 -0
  105. package/runtime/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +201 -0
  106. package/runtime/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
  107. package/runtime/node_modules/node-pty/deps/winpty/ship/common_ship.py +53 -0
  108. package/runtime/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +165 -0
  109. package/runtime/node_modules/node-pty/deps/winpty/ship/ship.py +108 -0
  110. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +613 -0
  111. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Agent.h +103 -0
  112. package/runtime/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
  113. package/runtime/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
  114. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +632 -0
  115. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +28 -0
  116. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +852 -0
  117. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +109 -0
  118. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
  119. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
  120. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +152 -0
  121. package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +41 -0
  122. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Coord.h +87 -0
  123. package/runtime/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +239 -0
  124. package/runtime/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +32 -0
  125. package/runtime/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
  126. package/runtime/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +28 -0
  127. package/runtime/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +30 -0
  128. package/runtime/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +99 -0
  129. package/runtime/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +47 -0
  130. package/runtime/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +246 -0
  131. package/runtime/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +114 -0
  132. package/runtime/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
  133. package/runtime/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
  134. package/runtime/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +378 -0
  135. package/runtime/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +125 -0
  136. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +699 -0
  137. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +103 -0
  138. package/runtime/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +75 -0
  139. package/runtime/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +143 -0
  140. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +535 -0
  141. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +69 -0
  142. package/runtime/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
  143. package/runtime/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
  144. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +107 -0
  145. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +67 -0
  146. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
  147. package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
  148. package/runtime/node_modules/node-pty/deps/winpty/src/agent/main.cc +114 -0
  149. package/runtime/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +61 -0
  150. package/runtime/node_modules/node-pty/deps/winpty/src/configurations.gypi +60 -0
  151. package/runtime/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +117 -0
  152. package/runtime/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +41 -0
  153. package/runtime/node_modules/node-pty/deps/winpty/src/include/winpty.h +242 -0
  154. package/runtime/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +131 -0
  155. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
  156. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
  157. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
  158. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
  159. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +46 -0
  160. package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +970 -0
  161. package/runtime/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +38 -0
  162. package/runtime/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
  163. package/runtime/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
  164. package/runtime/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +103 -0
  165. package/runtime/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +102 -0
  166. package/runtime/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +187 -0
  167. package/runtime/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +38 -0
  168. package/runtime/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +138 -0
  169. package/runtime/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +55 -0
  170. package/runtime/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +13 -0
  171. package/runtime/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +54 -0
  172. package/runtime/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +63 -0
  173. package/runtime/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +36 -0
  174. package/runtime/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +45 -0
  175. package/runtime/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
  176. package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +227 -0
  177. package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
  178. package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +55 -0
  179. package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +80 -0
  180. package/runtime/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +63 -0
  181. package/runtime/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
  182. package/runtime/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
  183. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
  184. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +104 -0
  185. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +252 -0
  186. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +29 -0
  187. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +55 -0
  188. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +64 -0
  189. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +57 -0
  190. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +43 -0
  191. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +42 -0
  192. package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +27 -0
  193. package/runtime/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +99 -0
  194. package/runtime/node_modules/node-pty/deps/winpty/src/subdir.mk +5 -0
  195. package/runtime/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +28 -0
  196. package/runtime/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +158 -0
  197. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
  198. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
  199. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
  200. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
  201. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +86 -0
  202. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +31 -0
  203. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
  204. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
  205. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +729 -0
  206. package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +41 -0
  207. package/runtime/node_modules/node-pty/deps/winpty/src/winpty.gyp +234 -0
  208. package/runtime/node_modules/node-pty/deps/winpty/vcbuild.bat +83 -0
  209. package/runtime/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
  210. package/runtime/node_modules/node-pty/lib/conpty_console_list_agent.js.map +1 -0
  211. package/runtime/node_modules/node-pty/lib/eventEmitter2.js +47 -0
  212. package/runtime/node_modules/node-pty/lib/eventEmitter2.js.map +1 -0
  213. package/runtime/node_modules/node-pty/lib/eventEmitter2.test.js +30 -0
  214. package/runtime/node_modules/node-pty/lib/eventEmitter2.test.js.map +1 -0
  215. package/runtime/node_modules/node-pty/lib/index.js +52 -0
  216. package/runtime/node_modules/node-pty/lib/index.js.map +1 -0
  217. package/runtime/node_modules/node-pty/lib/interfaces.js +7 -0
  218. package/runtime/node_modules/node-pty/lib/interfaces.js.map +1 -0
  219. package/runtime/node_modules/node-pty/lib/shared/conout.js +11 -0
  220. package/runtime/node_modules/node-pty/lib/shared/conout.js.map +1 -0
  221. package/runtime/node_modules/node-pty/lib/terminal.js +190 -0
  222. package/runtime/node_modules/node-pty/lib/terminal.js.map +1 -0
  223. package/runtime/node_modules/node-pty/lib/terminal.test.js +139 -0
  224. package/runtime/node_modules/node-pty/lib/terminal.test.js.map +1 -0
  225. package/runtime/node_modules/node-pty/lib/testUtils.test.js +28 -0
  226. package/runtime/node_modules/node-pty/lib/testUtils.test.js.map +1 -0
  227. package/runtime/node_modules/node-pty/lib/types.js +7 -0
  228. package/runtime/node_modules/node-pty/lib/types.js.map +1 -0
  229. package/runtime/node_modules/node-pty/lib/unixTerminal.js +346 -0
  230. package/runtime/node_modules/node-pty/lib/unixTerminal.js.map +1 -0
  231. package/runtime/node_modules/node-pty/lib/unixTerminal.test.js +351 -0
  232. package/runtime/node_modules/node-pty/lib/unixTerminal.test.js.map +1 -0
  233. package/runtime/node_modules/node-pty/lib/utils.js +39 -0
  234. package/runtime/node_modules/node-pty/lib/utils.js.map +1 -0
  235. package/runtime/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
  236. package/runtime/node_modules/node-pty/lib/windowsConoutConnection.js.map +1 -0
  237. package/runtime/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
  238. package/runtime/node_modules/node-pty/lib/windowsPtyAgent.js.map +1 -0
  239. package/runtime/node_modules/node-pty/lib/windowsPtyAgent.test.js +90 -0
  240. package/runtime/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +1 -0
  241. package/runtime/node_modules/node-pty/lib/windowsTerminal.js +199 -0
  242. package/runtime/node_modules/node-pty/lib/windowsTerminal.js.map +1 -0
  243. package/runtime/node_modules/node-pty/lib/windowsTerminal.test.js +219 -0
  244. package/runtime/node_modules/node-pty/lib/windowsTerminal.test.js.map +1 -0
  245. package/runtime/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
  246. package/runtime/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +1 -0
  247. package/runtime/node_modules/node-pty/package.json +64 -0
  248. package/runtime/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  249. package/runtime/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  250. package/runtime/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  251. package/runtime/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  252. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  253. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  254. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
  255. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
  256. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  257. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  258. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
  259. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
  260. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
  261. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
  262. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
  263. package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
  264. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  265. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  266. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  267. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
  268. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  269. package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  270. package/runtime/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  271. package/runtime/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
  272. package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  273. package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
  274. package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  275. package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
  276. package/runtime/node_modules/node-pty/scripts/gen-compile-commands.js +8 -0
  277. package/runtime/node_modules/node-pty/scripts/increment-version.js +54 -0
  278. package/runtime/node_modules/node-pty/scripts/post-install.js +80 -0
  279. package/runtime/node_modules/node-pty/scripts/prebuild.js +34 -0
  280. package/runtime/node_modules/node-pty/src/conpty_console_list_agent.ts +15 -0
  281. package/runtime/node_modules/node-pty/src/eventEmitter2.test.ts +30 -0
  282. package/runtime/node_modules/node-pty/src/eventEmitter2.ts +48 -0
  283. package/runtime/node_modules/node-pty/src/index.ts +52 -0
  284. package/runtime/node_modules/node-pty/src/interfaces.ts +130 -0
  285. package/runtime/node_modules/node-pty/src/native.d.ts +54 -0
  286. package/runtime/node_modules/node-pty/src/shared/conout.ts +15 -0
  287. package/runtime/node_modules/node-pty/src/terminal.test.ts +119 -0
  288. package/runtime/node_modules/node-pty/src/terminal.ts +211 -0
  289. package/runtime/node_modules/node-pty/src/testUtils.test.ts +23 -0
  290. package/runtime/node_modules/node-pty/src/tsconfig.json +22 -0
  291. package/runtime/node_modules/node-pty/src/types.ts +15 -0
  292. package/runtime/node_modules/node-pty/src/unix/pty.cc +799 -0
  293. package/runtime/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
  294. package/runtime/node_modules/node-pty/src/unixTerminal.test.ts +367 -0
  295. package/runtime/node_modules/node-pty/src/unixTerminal.ts +388 -0
  296. package/runtime/node_modules/node-pty/src/utils.ts +29 -0
  297. package/runtime/node_modules/node-pty/src/win/conpty.cc +583 -0
  298. package/runtime/node_modules/node-pty/src/win/conpty.h +41 -0
  299. package/runtime/node_modules/node-pty/src/win/conpty_console_list.cc +44 -0
  300. package/runtime/node_modules/node-pty/src/win/path_util.cc +95 -0
  301. package/runtime/node_modules/node-pty/src/win/path_util.h +26 -0
  302. package/runtime/node_modules/node-pty/src/win/winpty.cc +333 -0
  303. package/runtime/node_modules/node-pty/src/windowsConoutConnection.ts +82 -0
  304. package/runtime/node_modules/node-pty/src/windowsPtyAgent.test.ts +94 -0
  305. package/runtime/node_modules/node-pty/src/windowsPtyAgent.ts +321 -0
  306. package/runtime/node_modules/node-pty/src/windowsTerminal.test.ts +229 -0
  307. package/runtime/node_modules/node-pty/src/windowsTerminal.ts +203 -0
  308. package/runtime/node_modules/node-pty/src/worker/conoutSocketWorker.ts +22 -0
  309. package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  310. package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
  311. package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  312. package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  313. package/runtime/node_modules/node-pty/typings/node-pty.d.ts +211 -0
  314. package/runtime/server.cjs +27142 -0
  315. package/support/terminal-config-command.cjs +579 -0
  316. package/support/zterm-daemon +0 -0
  317. package/support/zterm-daemon.sh +742 -0
  318. package/zterm-package.json +27 -0
@@ -0,0 +1,1094 @@
1
+ # 0.10.0
2
+
3
+ ## New Features
4
+
5
+ - Update libwebrtc to M106!
6
+
7
+ ## Bug Fixes
8
+
9
+ - Fix segfault/abort during program cleanup; some destructors that relied on
10
+ the V8 environment were being called after said environment had shut down.
11
+ Forcing them to run earlier (on `pc.close()`) seems to fix things.
12
+
13
+ # 0.9.1
14
+
15
+ ## Bug Fixes
16
+
17
+ - Fix I420 helpers for images with odd resolutions
18
+ (<https://github.com/WonderInventions/node-webrtc/pull/38>)
19
+
20
+ # 0.9.0
21
+
22
+ ## New Features
23
+
24
+ - Added support for RTCRtpTransceiverDirection "stopped".
25
+ (<https://github.com/node-webrtc/node-webrtc/pull/672>)
26
+ - More standards-compliance for `addIceCandidate`; now, all the different
27
+ "empty candidate" options are accepted as an "end-of-candidates" signal.
28
+
29
+ ## Bug Fixes
30
+
31
+ - Fixed too-early GCs (<https://github.com/node-webrtc/node-webrtc/pull/667>)
32
+
33
+ # 0.8.0
34
+
35
+ ## New Features
36
+
37
+ - Update libwebrtc to M98!
38
+ - Compile linux-x64 with GCC 10 in order to support stabler Linux distributions
39
+ like Amazon Linux 2023.
40
+
41
+ ## Bug Fixes
42
+
43
+ - Changed binary path resolution to make things more consistent on environments
44
+ that don't automatically resolve `node_modules`, like Amazon Linux 2023.
45
+
46
+ # 0.7.3
47
+
48
+ ## Bug Fixes
49
+
50
+ - `ondata` audio problems should be fixed
51
+ (<https://github.com/WonderInventions/node-webrtc/issues/2>)
52
+
53
+ # 0.7.2
54
+
55
+ Added `linux-arm64` prebuilt binary, built & unit-tested all x64 binaries on
56
+ Node 20.
57
+
58
+ # 0.7.0
59
+
60
+ ## New Features
61
+
62
+ - Update to libwebrtc M94! This brings some quality improvements over M87's
63
+ encoders and other network capabilities.
64
+
65
+ ## Breaking Changes
66
+
67
+ - Remove `legacyGetStats` API from `RTCPeerConnection`.
68
+
69
+ ## Bug Fixes
70
+
71
+ - `RTCIceTransport.getGatheringState()` no longer always returns `"complete"`.
72
+
73
+ # 0.6.0
74
+
75
+ ## New Features
76
+
77
+ - `RTCPeerConnection.getStats()` can now take in a `MediaStreamTrack` as a
78
+ selector, updating that API to the latest WebRTC standard.
79
+ - Typescript definition files provided to let this library (somewhat
80
+ inaccurately, unfortunately) polyfill for WebRTC types included with the
81
+ standard, and also define the `nonstandard` types.
82
+
83
+ # 0.5.1
84
+
85
+ ## Bug Fixes
86
+
87
+ - Take care of case where `RTCPeerConnection` is closed while `OnTrack` events
88
+ are still pending.
89
+
90
+ # 0.5.0
91
+
92
+ ## New Features
93
+
94
+ - Support Node 18, with updated build system
95
+ - Newer prebuilt binary system not dependent on node-pre-gyp
96
+
97
+ # 0.4.6
98
+
99
+ ## New Features
100
+
101
+ - Added `target` property to RTCPeerConnection events (thanks, @CharlesRA).
102
+ - Support for additional APIs in `lib/browser.js` (thanks, @piranna).
103
+ - Added a naïve version of `getDeviceMedia` that delegates to `getUserMedia`
104
+ (thanks, @piranna).
105
+
106
+ ## Bug Fixes
107
+
108
+ - Although Node 14 support was confirmed in v0.4.5, it was not included in the
109
+ "engines" property of package.json (thanks, @farnabaz).
110
+ - Potential fix for a crash mentioned in #637 (thanks, @thedracle).
111
+
112
+ # 0.4.5
113
+
114
+ ## New Features
115
+
116
+ - Updated to WebRTC M81.
117
+ - Added support for Node 14.
118
+ - Added rollback support.
119
+
120
+ ## Bug Fixes
121
+
122
+ - RTCPeerConnection no longer raises "icegatheringstatechange" when the
123
+ RTCPeerConnection is closed. Thanks, @arlolra. (#625)
124
+
125
+ ## Breaking Changes
126
+
127
+ - With the update from M79 to M81, the `dtx`, `ptime`, and `codecPayloadType`
128
+ parameters to RTCRtpEncodingParameters no longer take affect. They've also
129
+ been removed from the WebRTC 1.0 specification (see [here](https://github.com/w3c/webrtc-pc/issues/2350)).
130
+ Although this is technically a SemVer-breaking change, few users of this
131
+ library are depending on the removed functionality, and I prefer not to
132
+ increment the version number at this time.
133
+
134
+ # 0.4.4
135
+
136
+ ## New Features
137
+
138
+ - `addTrack` now supports multiple MediaStream arguments (#548). Additionally,
139
+ MediaStreams can now be constructed with arbitrary IDs. For more information,
140
+ see below. Thanks, @csheely and @sgodin.
141
+ - `setStreams` now supports multiple MediaStream arguments.
142
+
143
+ ## MediaStream
144
+
145
+ MediaStreams in node-webrtc can be constructed with arbitrary IDs. For example,
146
+ the following MediaStream, `stream`, has its ID set to "foo".
147
+
148
+ ```js
149
+ const stream = new MediaStream({ id: "foo" });
150
+ stream.id === "foo"; // true
151
+ ```
152
+
153
+ # 0.4.3
154
+
155
+ ## New Features
156
+
157
+ - Updated to WebRTC M79.
158
+ - Added support for Node 13.
159
+ - Added support for a number of new standard APIs (see below).
160
+
161
+ ### RTCPeerConnection
162
+
163
+ - Added support for `restartIce`.
164
+ - Added support for "icecandidateerror" events.
165
+
166
+ ### RTCDtlsTransport
167
+
168
+ - Added support for `getRemoteCertificates`.
169
+
170
+ ### RTCRtpSender, RTCRtpReceiver & RTCRtpTransceiver
171
+
172
+ - Added support for `getCapabilities` to RTCRtpSender and RTCRtpReceiver.
173
+ - Added support for `setParameters` to RTCRtpSender.
174
+ - Added support for `setStreams` to RTCRtpSender (at this time, up to one
175
+ MediaStream argument is supported).
176
+ - Added support for `sendEncodings` to RTCRtpTransceiverInit.
177
+ - Added support for `setCodecPreferences` to RTCRtpTransceiver.
178
+
179
+ ## Bug Fixes
180
+
181
+ - Fixed a bug where VideoFrame timestamps reported via RTCP were incorrect
182
+ (#566). Thanks, @lonocvb.
183
+ - Fixed a bug where, in some cases, Ninja builds failed on macOS (#582). Thanks,
184
+ @taylorhoward92.
185
+ - Fixed bugs related to N-API usage in recent version of Node 12 and 13.
186
+
187
+ # 0.4.2
188
+
189
+ ## Bug Fixes
190
+
191
+ - Fix image stride issue at certain resolutions. (#536)
192
+
193
+ # 0.4.1
194
+
195
+ ## Bug Fixes
196
+
197
+ - Fix memory leak when receiving strings over RTCDataChannel. (#528)
198
+
199
+ # 0.4.0
200
+
201
+ node-webrtc is now implemented using N-API, which is ABI stable across Node
202
+ releases. This means we can now ship fewer binaries while supporting a
203
+ potentially greater number of Node releases. As of 0.4.0, node-webrtc targets
204
+ N-API version 3.
205
+
206
+ ## New Features
207
+
208
+ - Updated to WebRTC M74.
209
+ - Added support for Node 12.
210
+ - Added support for Electron 4 and 5.
211
+ - Added initial RTCIceTransport support (see below).
212
+ - Added initial RTCSctpTransport support (see below).
213
+ - Expanded RTCIceCandidate support (see below).
214
+
215
+ ## Bug Fixes
216
+
217
+ - Avoid crashing when `createDataChannel` fails. (#508)
218
+
219
+ ## Breaking Changes
220
+
221
+ - Dropped support for Node 6.
222
+ - Installing from NPM only downloads pre-built binaries. If you wish to build
223
+ from source, install from the source repository. (#200)
224
+ - Unified Plan is now the default. For Plan B behavior, set the `sdpSemantics`
225
+ RTCConfiguration property or the `SDP_SEMANTICS` environment variable to
226
+ "plan-b".
227
+
228
+ ## RTCIceTransport
229
+
230
+ RTCDtlsTransport now exposes RTCIceTransport under the `iceTransport` property.
231
+
232
+ The following attributes are supported:
233
+
234
+ - `role`
235
+ - `component`
236
+ - `state`
237
+ - `gatheringState`
238
+
239
+ The following events are supported:
240
+
241
+ - "statechange"
242
+ - "gatheringstatechange"
243
+
244
+ ## RTCSctpTransport
245
+
246
+ RTCPeerConnection now exposes RTCSctpTransport under the `sctp` property.
247
+
248
+ The following attributes are supported:
249
+
250
+ - `transport`
251
+ - `state`
252
+
253
+ The following attributes are partially supported:
254
+
255
+ - `maxMessageSize` (always `null`)
256
+ - `maxChannels` (always `null`)
257
+
258
+ The "statechange" event is also supported.
259
+
260
+ ## RTCIceCandidate
261
+
262
+ RTCIceCandidates now include the following attributes:
263
+
264
+ - `foundation`
265
+ - `component`
266
+ - `priority`
267
+ - `address`
268
+ - `protocol`
269
+ - `port`
270
+ - `type`
271
+ - `tcpType`
272
+ - `relatedAddress`
273
+ - `relatedPort`
274
+ - `usernameFragment`
275
+
276
+ # 0.3.7
277
+
278
+ ## New Features
279
+
280
+ ### RTCDtlsTransport
281
+
282
+ RTCRtpSender and RTCRtpReceiver now provide access to RTCDtlsTransport via the
283
+ `transport` property (initially `null`). Currently, RTCDtlsTransport only
284
+ supports the `state` property, the "statechange" event, and the "error" event.
285
+
286
+ ### Miscellaneous
287
+
288
+ - Updated to WebRTC M73.
289
+ - Added `maxPacketLifeTime` getter to RTCDataChannel (#492).
290
+ - Added `negotiated` getter to RTCDataChannel.
291
+
292
+ ## Bug Fixes
293
+
294
+ - Fixed `addIceCandidate` queueing behavior (#498).
295
+
296
+ # 0.3.6
297
+
298
+ ## New Features
299
+
300
+ ### Programmatic Audio
301
+
302
+ This release of node-webrtc adds non-standard, programmatic audio APIs in the
303
+ form of RTCAudioSource and RTCAudioSink. These APIs are similar to the
304
+ previously added RTCVideoSource and RTCVideoSink APIs. With these APIs, you can
305
+
306
+ - Pass audio samples to RTCAudioSource via the `onData` method. Then use the
307
+ RTCAudioSource's `createTrack` method to create a local audio
308
+ MediaStreamTrack.
309
+ - Construct an RTCAudioSink from a local or remote audio MediaStreamTrack. The
310
+ RTCAudioSink will emit a "data" event every time audio samples are received.
311
+ When you're finished, stop the RTCAudioSink by calling `stop`.
312
+
313
+ Because these APIs are non-standard, they are exposed via a `nonstandard`
314
+ property on node-webrtc's exports object. For example,
315
+
316
+ ```js
317
+ const { RTCAudioSource, RTCAudioSink } = require("wrtc").nonstandard;
318
+
319
+ const source = new RTCAudioSource();
320
+ const track = source.createTrack();
321
+ const sink = new RTCAudioSink(track);
322
+
323
+ const sampleRate = 8000;
324
+ const samples = new Int16Array(sampleRate / 100); // 10 ms of 16-bit mono audio
325
+
326
+ const data = {
327
+ samples,
328
+ sampleRate,
329
+ };
330
+
331
+ const interval = setInterval(() => {
332
+ // Update audioData in some way before sending.
333
+ source.onData(data);
334
+ });
335
+
336
+ sink.ondata = (data) => {
337
+ // Do something with the received audio samples.
338
+ };
339
+
340
+ setTimeout(() => {
341
+ clearInterval(interval);
342
+ track.stop();
343
+ sink.stop();
344
+ }, 10000);
345
+ ```
346
+
347
+ #### RTCAudioSource
348
+
349
+ ```webidl
350
+ [constructor]
351
+ interface RTCAudioSource {
352
+ MediaStreamTrack createTrack();
353
+ void onData(RTCAudioData data);
354
+ };
355
+
356
+ dictionary RTCAudioData {
357
+ required Int16Array samples;
358
+ required unsigned short sampleRate;
359
+ octet bitsPerSample = 16;
360
+ octet channelCount = 1;
361
+ unsigned short numberOfFrames;
362
+ };
363
+ ```
364
+
365
+ - Calling `createTrack` will return a local audio MediaStreamTrack whose source
366
+ is the RTCAudioSource.
367
+ - Calling `onData` with RTCAudioData pushes a new audio samples to every
368
+ non-stopped local audio MediaStreamTrack created with `createTrack`.
369
+ - RTCAudioData should represent 10 ms worth of 16-bit audio samples.
370
+
371
+ #### RTCAudioSink
372
+
373
+ ```webidl
374
+ [constructor(MediaStreamTrack track)]
375
+ interface RTCAudioSink {
376
+ void stop();
377
+ readonly attribute boolean stopped;
378
+ attribute EventHandler ondata;
379
+ };
380
+ ```
381
+
382
+ - RTCAudioSink's constructor accepts a local or remote audio MediaStreamTrack.
383
+ - As long as neither the RTCAudioSink nor the RTCAudioSink's MediaStreamTrack
384
+ are stopped, the RTCAudioSink will raise a "data" event any time RTCAudioData
385
+ is received.
386
+ - The "data" event has all the properties of RTCAudioData.
387
+ - RTCAudioSink must be stopped by calling `stop`.
388
+
389
+ ### RTCVideoFrame `rotation`
390
+
391
+ The RTCVideoFrame raised in RTCVideoSink's "frame" event now includes a
392
+ property, `rotation`, which indicates rotation of the RTCVideoFrame. Possible
393
+ values are 0, 90, 180, and 270.
394
+
395
+ ### EventListener `handleEvent`
396
+
397
+ EventListener instances now support [`handleEvent`](https://developer.mozilla.org/en-US/docs/Web/API/EventListener/handleEvent).
398
+
399
+ # 0.3.5
400
+
401
+ ## New Features
402
+
403
+ ### Programmatic Video
404
+
405
+ This release of node-webrtc adds non-standard, programmatic video APIs in the
406
+ form of RTCVideoSource and RTCVideoSink. With these APIs, you can
407
+
408
+ - Pass [I420](https://wiki.videolan.org/YUV/#I420) frames to RTCVideoSource via
409
+ the `onFrame` method. Then use RTCVideoSource's `createTrack` method to create
410
+ a local video MediaStreamTrack.
411
+ - Construct an RTCVideoSink from a local or remote video MediaStreamTrack. The
412
+ RTCVideoSink will emit a "frame" event every time an I420 frame is received.
413
+ When you're finished, stop the RTCVideoSink by calling `stop`.
414
+
415
+ Because these APIs are non-standard, they are exposed via a `nonstandard`
416
+ property on node-webrtc's exports object. For example,
417
+
418
+ ```js
419
+ const { RTCVideoSource, RTCVideoSink } = require("wrtc").nonstandard;
420
+
421
+ const source = new RTCVideoSource();
422
+ const track = source.createTrack();
423
+ const sink = new RTCVideoSink(track);
424
+
425
+ const width = 320;
426
+ const height = 240;
427
+ const data = new Uint8ClampedArray(width * height * 1.5);
428
+ const frame = { width, height, data };
429
+
430
+ const interval = setInterval(() => {
431
+ // Update the frame in some way before sending.
432
+ source.onFrame(frame);
433
+ });
434
+
435
+ sink.onframe = ({ frame }) => {
436
+ // Do something with the received frame.
437
+ };
438
+
439
+ setTimeout(() => {
440
+ clearInterval(interval);
441
+ track.stop();
442
+ sink.stop();
443
+ }, 10000);
444
+ ```
445
+
446
+ This release also adds bindings to some [libyuv](https://chromium.googlesource.com/libyuv/libyuv/)
447
+ functions for handling I420 frames. These can be useful when converting to and
448
+ from RGBA.
449
+
450
+ #### RTCVideoSource
451
+
452
+ ```webidl
453
+ [constructor(optional RTCVideoSourceInit init)]
454
+ interface RTCVideoSource {
455
+ readonly attribute boolean isScreencast;
456
+ readonly attribute boolean? needsDenoising;
457
+ MediaStreamTrack createTrack();
458
+ void onFrame(RTCVideoFrame frame);
459
+ };
460
+
461
+ dictionary RTCVideoSourceInit {
462
+ boolean isScreencast = false;
463
+ boolean needsDenoising;
464
+ };
465
+
466
+ dictionary RTCVideoFrame {
467
+ required unsigned long width;
468
+ required unsigned long height;
469
+ required Uint8ClampedArray data;
470
+ };
471
+ ```
472
+
473
+ - Calling `createTrack` will return a local video MediaStreamTrack whose source
474
+ is the RTCVideoSource.
475
+ - Calling `onFrame` with an RTCVideoFrame pushes a new video frame to every
476
+ non-stopped local video MediaStreamTrack created with `createTrack`.
477
+ - An RTCVideoFrame represents an I420 frame.
478
+
479
+ #### RTCVideoSink
480
+
481
+ ```webidl
482
+ [constructor(MediaStreamTrack track)]
483
+ interface RTCVideoSink {
484
+ void stop();
485
+ readonly attribute boolean stopped;
486
+ attribute EventHandler onframe;
487
+ };
488
+ ```
489
+
490
+ - RTCVideoSink's constructor accepts a local or remote video MediaStreamTrack.
491
+ - As long as neither the RTCVideoSink nor the RTCVideoSink's MediaStreamTrack
492
+ are stopped, the RTCVideoSink will raise a "frame" event any time an
493
+ RTCVideoFrame is received.
494
+ - The "frame" event has a property, `frame`, of type RTCVideoFrame.
495
+ - RTCVideoSink must be stopped by calling `stop`.
496
+
497
+ #### `i420ToRgba` and `rgbaToI420`
498
+
499
+ These two functions are bindings to libyuv that provide conversions between I420
500
+ and RGBA frames. WebRTC expects I420, whereas APIs like the
501
+ [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) expect
502
+ RGBA, so these functions are useful for converting between. For example,
503
+
504
+ ```js
505
+ const { i420ToRgba, rgbaToI420 } = require("wrtc").nonstandard;
506
+
507
+ const width = 640;
508
+ const height = 480;
509
+ const i420Data = new Uint8ClampedArray(width * height * 1.5);
510
+ const rgbaData = new Uint8ClampedArray(width * height * 4);
511
+ const i420Frame = { width, height, data: i420Data };
512
+ const rgbaFrame = { width, height, data: rgbaData };
513
+
514
+ i420ToRgba(i420Frame, rgbaFrame);
515
+ rgbaToI420(rgbaFrame, i420Frame);
516
+ ```
517
+
518
+ ### MediaStreamTrack
519
+
520
+ - Added support for setting MediaStreamTrack's `enabled` property (#475).
521
+
522
+ # 0.3.4
523
+
524
+ ## New Features
525
+
526
+ - Updated to WebRTC M71.
527
+ - Relay remote audio MediaStreamTracks on Windows (0.1.5 initially introduced
528
+ this feature for Linux and macOS; now, Windows supports it, too).
529
+ - Added support for [pkg](https://github.com/zeit/pkg) (#404).
530
+
531
+ ## Bug Fixes
532
+
533
+ - Calling certain methods, like `addTrack`, `removeTrack`, etc., with objects
534
+ that were not instances of MediaStreamTrack, RTCRtpSender, etc., could lead to
535
+ segfaults. This was because we did not properly validate objects before
536
+ attempting to unwrap them. (#448)
537
+
538
+ # 0.3.3
539
+
540
+ ## New Features
541
+
542
+ - Experimental support for armv7l and arm64. Binaries built for these
543
+ architectures have been tested with QEMU but not on real devices. Please test
544
+ them out. If you install node-webrtc directly on an ARM device, node-pre-gyp
545
+ should pull the correct binaries automatically. Otherwise, you may need to set
546
+ the `TARGET_ARCH` environment variable to "arm" (armv7l) or "arm64". For
547
+ example,
548
+
549
+ ```
550
+ TARGET_ARCH=arm64 npm install
551
+ ```
552
+
553
+ - Set `DEBUG=true` to install debug binaries (Linux- and macOS-only). For
554
+ example,
555
+
556
+ ```
557
+ DEBUG=true npm install
558
+ ```
559
+
560
+ # 0.3.2
561
+
562
+ ## New Features
563
+
564
+ - Support for Node 11 on Windows.
565
+
566
+ # 0.3.1
567
+
568
+ This release adds a number of new features and brings us closer to
569
+ spec-compliance, thanks to the tests at
570
+ [web-platform-tests/wpt](http://github.com/web-platform-tests/wpt).
571
+
572
+ ## New Features
573
+
574
+ ### `getUserMedia`
575
+
576
+ This release adds limited `getUserMedia` support. You can create audio and video
577
+ MediaStreamTracks; however, the resulting MediaStreamTracks do not capture any
578
+ media. You can add these MediaStreamTracks to an RTCPeerConnection; however, no
579
+ media will be transmitted. You can confirm by checking `bytesSent` and
580
+ `bytesReceived` in `getStats`.
581
+
582
+ ```js
583
+ const { getUserMedia } = require("wrtc");
584
+
585
+ getUserMedia({
586
+ audio: true,
587
+ video: true,
588
+ }).then((stream) => {
589
+ stream.getTracks().forEach((track) => stop());
590
+ });
591
+ ```
592
+
593
+ Although we will parse and validate some members of the MediaStreamConstraints
594
+ and related dictionaries, we do not use their values at this time.
595
+
596
+ ### `getStats`
597
+
598
+ This release adds limited standards-compliant `getStats` support. Previous
599
+ node-webrtc releases exposed the legacy, callback-based `getStats` API. This
600
+ release preserves that API but adds the Promise-based API. Neither the
601
+ MediaStreamTrack selector argument nor the RTCRtpSender- and
602
+ RTCRtpReceiver-level `getStats` APIs are implemented at this time.
603
+
604
+ ```js
605
+ // Legacy API
606
+ pc.getStats((response) => {
607
+ /* ... */
608
+ }, console.error);
609
+
610
+ // Standards-compliant API
611
+ pc.getStats().then((report) => {
612
+ /* ... */
613
+ }, console.error);
614
+ ```
615
+
616
+ ### Unified Plan and `sdpSemantics`
617
+
618
+ This release adds support for RTCRtpTransceivers and Unified Plan SDP via
619
+
620
+ - A non-standard RTCConfiguration option, `sdpSemantics`, and
621
+ - An environment variable, `SDP_SEMANTICS`.
622
+
623
+ Construct an RTCPeerConnection with `sdpSemantics` set to "unified-plan" or
624
+ launch your application with `SDP_SEMANTICS=unified-plan` to enable
625
+ RTCRtpTransceiver support; otherwise, "plan-b" is the default.
626
+
627
+ ```js
628
+ const { RTCPeerConnection } = require("wrtc");
629
+
630
+ const pc = new RTCPeerConnection({
631
+ sdpSemantics: "unified-plan", // default is "plan-b"
632
+ });
633
+ ```
634
+
635
+ ```
636
+ SDP_SEMANTICS=unified-plan node app.js
637
+ ```
638
+
639
+ ### RTCRtpTransceiver
640
+
641
+ You can use RTCRtpTransceivers and related APIs when Unified Plan is enabled.
642
+ This includes the following RTCPeerConnection methods
643
+
644
+ - `addTransceiver`
645
+ - `getTransceivers`
646
+
647
+ and the following RTCTrackEvent properties
648
+
649
+ - `transceiver`
650
+
651
+ The following RTCRtpTransceiver methods are supported
652
+
653
+ - `stop`
654
+
655
+ as well as the following RTCRtpTransceiver properties
656
+
657
+ - `mid`
658
+ - `sender`
659
+ - `receiver`
660
+ - `stopped`
661
+ - `direction`
662
+ - `currentDirection`
663
+
664
+ `setCodecPreferences` is not yet implemented. When calling `addTransceiver`,
665
+ only the following RTCRtpTransceiverInit dictionary members are supported
666
+
667
+ - `direction`
668
+ - `streams`
669
+
670
+ ```js
671
+ const assert = require("assert");
672
+ const { MediaStream, RTCPeerConnection, RTCRtpTransceiver } = require("wrtc");
673
+
674
+ const pc = new RTCPeerConnection({
675
+ sdpSemantics: "unified-plan",
676
+ });
677
+
678
+ const t1 = pc.addTransceiver("audio", {
679
+ direction: "recvonly",
680
+ });
681
+
682
+ const t2 = pc.addTransceiver(t1.receiver.track, {
683
+ direction: "sendonly",
684
+ streams: [new MediaStream()],
685
+ });
686
+ ```
687
+
688
+ ### MediaStreamTrack
689
+
690
+ Added limited support for the `muted` property (it always returns `false`).
691
+
692
+ ### Miscellaneous
693
+
694
+ - APIs that should throw DOMExceptions, such as `addTrack`, will use
695
+ [domexception](https://github.com/jsdom/domexception) to construct those
696
+ DOMExceptions, if installed.
697
+
698
+ ## Bug Fixes
699
+
700
+ - Calling `addTrack` twice with the same MediaStreamTrack should throw an
701
+ InvalidAccessError (#442).
702
+ - MediaStream's `getTrackById` did not work for video MediaStreamTracks.
703
+ - MediaStream's `clone` method did not `clone` MediaStreamTracks.
704
+ - MediaStreamTrack's `readyState` was not updated when `stop` was called.
705
+
706
+ # 0.3.0
707
+
708
+ ## New Features
709
+
710
+ - Support for Node 11. Binaries are available for Linux and macOS. Windows
711
+ binaries will become available in a subsequent release once AppVeyor gains
712
+ support for Node 11.
713
+ - Updated to WebRTC M70. This release no longer uses
714
+ [mayeut/libwebrtc](https://github.com/mayeut/libwebrtc); instead, WebRTC is
715
+ built from source.
716
+
717
+ ## Breaking Changes
718
+
719
+ - Dropped support for Node 9
720
+ - Minimum CMake version bumped to 3.12
721
+ - Minimum GCC version bumped to 5.4
722
+ - Minimum Microsoft Visual Studio version bumped to 2017
723
+
724
+ ## Bug Fixes
725
+
726
+ - Updating to WebRTC M70 fixes an RTCDataChannel-related interop bug with recent
727
+ Firefox releases (#444).
728
+
729
+ # 0.2.2
730
+
731
+ ## Bug Fixes
732
+
733
+ - Destroy AudioDeviceModule on the worker thread.
734
+
735
+ # 0.2.1
736
+
737
+ ## Bug Fixes
738
+
739
+ - Fixed an AudioDeviceModule memory and thread leak (#429).
740
+ - Fixed an issue where closing an RTCPeerConnection would raise "open" events on
741
+ any RTCDataChannels whose `readyState` was "connecting" (#436).
742
+
743
+ # 0.2.0
744
+
745
+ ## Breaking Changes
746
+
747
+ - Dropped support for Node 4, 5 and 7 (#408).
748
+
749
+ ## Bug Fixes
750
+
751
+ - Fixed a race when closing an RTCDataChannel (#358).
752
+ - Fixed memory leaks in `createOffer`, `createAnswer`, `addIceCandidate`, and
753
+ `getStats` (#425).
754
+
755
+ # 0.1.6
756
+
757
+ ## Bug Fixes
758
+
759
+ - Fixed an issue with receiving multiple ArrayBuffers over an RTCDataChannel
760
+ that could cause invalid memory accesses (#406).
761
+
762
+ # 0.1.5
763
+
764
+ ## New Features
765
+
766
+ - This release allows relaying remote MediaStreamTracks. This can be useful for
767
+ test applications. **Note:** currently, Windows cannot relay audio
768
+ MediaStreamTracks, only video.
769
+
770
+ ### MediaStream
771
+
772
+ This release adds support for MediaStream. Most MediaStream APIs are supported,
773
+ excluding the "addtrack" and "removetrack" events. You can construct
774
+ MediaStreams as follows:
775
+
776
+ ```js
777
+ const { MediaStream } = require("wrtc");
778
+
779
+ const stream1 = new MediaStream();
780
+ const stream2 = new MediaStream(stream1);
781
+ ```
782
+
783
+ Assuming you already have some Array of MediaStreamTracks, `tracks`, you can
784
+ also construct a MediaStream with
785
+
786
+ ```js
787
+ const stream3 = new MediaStream(tracks);
788
+ ```
789
+
790
+ Or, if you have an existing MediaStream, you can `clone` it.
791
+
792
+ ```js
793
+ const stream4 = stream3.clone();
794
+ ```
795
+
796
+ This release also adds support for the following methods
797
+
798
+ - `getTracks`
799
+ - `getAudioTracks`
800
+ - `getVideoTracks`
801
+ - `getTrackById`
802
+ - `addTrack`
803
+ - `removeTrack`
804
+
805
+ and the following attributes
806
+
807
+ - `id`
808
+ - `active`
809
+
810
+ ### RTCTrackEvent
811
+
812
+ This release adds support for the `streams` property.
813
+
814
+ ### RTCPeerConnection
815
+
816
+ This release adds support for `addTrack`, `removeTrack`, and `getSenders`.
817
+ Although we don't yet provide a way to construct local MediaStreamTracks, you
818
+ can relay remote MediaStreamTracks as follows:
819
+
820
+ ```js
821
+ pc.ontrack = ({ track, streams }) => {
822
+ pc.addTrack(track, ...streams);
823
+ };
824
+ ```
825
+
826
+ ### RTCRtpSender
827
+
828
+ This release adds support for the following methods
829
+
830
+ - `getCapabilities` (always throws for now)
831
+ - `getParameters`
832
+ - `setParameters` (always returns a rejected Promise for now)
833
+ - `getStats` (always returns a rejected Promise for now)
834
+ - `replaceTrack`
835
+
836
+ and the following attributes
837
+
838
+ - `track`
839
+ - `transport` (always returns `null` for now)
840
+ - `rtcpTransport` (always returns `null` for now)
841
+
842
+ # 0.1.4
843
+
844
+ ## New Features
845
+
846
+ - Added support for Node 10 (#402)
847
+
848
+ ### RTCPeerConnection
849
+
850
+ - Added support for `getReceivers`.
851
+ - Added partial support for the RTCTrackEvent. RTCPeerConnection will emit the
852
+ RTCTrackEvent with two attributes: `track` and `receiver`. In the future, we
853
+ will add support for the `streams` and `transceiver` attributes.
854
+
855
+ ### RTCRtpReceiver
856
+
857
+ This release adds partial support for RTCRtpReceiver, including methods
858
+
859
+ - `getParameters`
860
+ - `getContributingSources` (always returns an empty array for now)
861
+ - `getSynchronizationSources` (always returns an empty array for now)
862
+ - `getStats` (always returns a rejected Promise for now)
863
+
864
+ and attributes
865
+
866
+ - `track`
867
+ - `transport` (always returns `null` for now)
868
+ - `rtcpTransport` (always returns `null` for now)
869
+
870
+ RTCRtpReceiver also includes partial support for the static method
871
+ `getCapabilities`; however, it always returns a rejected Promise.
872
+
873
+ ### MediaStreamTrack
874
+
875
+ This release adds partial support for remote MediaStreamTracks, including
876
+ attributes
877
+
878
+ - `enabled` (read-only for now)
879
+ - `id`
880
+ - `kind`
881
+ - `readyState`
882
+
883
+ # 0.1.3
884
+
885
+ ## Bug Fixes
886
+
887
+ - Fixed memory leaks related to RTCPeerConnection events.
888
+
889
+ # 0.1.2
890
+
891
+ ## Bug Fixes
892
+
893
+ - Fixed memory leaks related to sending and receiving messages over
894
+ RTCDataChannels (#205, #304, #319). There are some less severe leaks related
895
+ to RTCPeerConnection events that remain. These will be addressed in a future
896
+ release.
897
+
898
+ # 0.1.1
899
+
900
+ ## Bug Fixes
901
+
902
+ - Calling `createDataChannel` on a closed RTCPeerConnection no longer returns
903
+ `undefined`; instead, it raises an InvalidStateError (#314, #382).
904
+ - Worked around WebRTC [Issue 7585](https://bugs.chromium.org/p/webrtc/issues/detail?id=7585)
905
+ on Linux by backporting the `epoll`-based PhysicalSocketServer from WebRTC
906
+ M61 into node-webrtc. This allows many more concurrent RTCPeerConnections on
907
+ Linux (for example, up to 3000 in my tests, not exceeding thread limits).
908
+ (#362)
909
+
910
+ # 0.1.0
911
+
912
+ This project will begin to follow [SemVer](https://semver.org) in preparation
913
+ for a 1.0.0 release.
914
+
915
+ ## New Features
916
+
917
+ Besides updating to WebRTC M60 (using
918
+ [mayeut/libwebrtc](https://github.com/mayeut/libwebrtc)), this release adds a
919
+ number of features that bring node-webrtc closer to standards-compliance. We
920
+ still have a ways to go, but we're now testing against
921
+ [w3c/web-platform-tests](https://github.com/w3c/web-platform-tests).
922
+
923
+ ### RTCConfiguration
924
+
925
+ RTCPeerConnection's constructor now accepts the following standard properties:
926
+
927
+ - `bundlePolicy`
928
+ - `iceCandidatePoolSize`
929
+ - `iceServers` (no support for OAuth yet)
930
+ - `iceTransportPolicy`
931
+ - `rtcpMuxPolicy`
932
+
933
+ RTCConfiguration also accepts a non-standard property, `portRange`. This
934
+ property constrains the port range used by the RTCPeerConnection's ICE
935
+ transports. For example,
936
+
937
+ ```js
938
+ const { RTCPeerConnection } = require("wrtc");
939
+
940
+ const pc = new RTCPeerConnection({
941
+ portRange: {
942
+ min: 10000, // defaults to 0
943
+ max: 20000, // defaults to 65535
944
+ },
945
+ });
946
+ ```
947
+
948
+ ### RTCPeerConnection
949
+
950
+ RTCPeerConnection now supports two new methods:
951
+
952
+ - `getConfiguration`
953
+ - `setConfiguration`
954
+
955
+ RTCPeerConnection now supports the following properties:
956
+
957
+ - `canTrickleIceCandidates` (always returns `null` for now)
958
+ - `connectionState` (derived from `iceConnectionState`)
959
+ - `currentLocalDescription`
960
+ - `currentRemoteDescription`
961
+ - `pendingLocalDescription`
962
+ - `pendingRemoteDescription`
963
+
964
+ RTCPeerConnection now supports the following events:
965
+
966
+ - "connectionstatechange"
967
+ - "negotiationneeded"
968
+
969
+ ### RTCOfferOptions and RTCAnswerOptions
970
+
971
+ RTCPeerConnection's `createOffer` method now accepts RTCOfferOptions, and
972
+ RTCPeerConnection's `createAnswer` method now accepts RTCAnswerOptions.
973
+ RTCOfferOptions supports
974
+
975
+ - `iceRestart`
976
+ - `offerToReceiveAudio`
977
+ - `offerToReceiveVideo`
978
+
979
+ Both RTCOfferOptions and RTCAnswerOptions support `voiceActivityDetection`.
980
+
981
+ ### RTCDataChannelInit
982
+
983
+ RTCPeerConnection's `createDataChannel` method now accepts
984
+
985
+ - `id`
986
+ - `maxPacketLifeTime`
987
+ - `maxRetransmits`
988
+ - `negotiated`
989
+ - `ordered`
990
+ - `protocol`
991
+
992
+ ### RTCDataChannel
993
+
994
+ RTCDataChannel supports the following properties:
995
+
996
+ - `id`
997
+ - `maxRetransmits`
998
+ - `ordered`
999
+ - `priority` (always returns "high")
1000
+ - `protocol`
1001
+
1002
+ RTCDataChannel's `send` method now supports sending Blobs provided by
1003
+ [jsdom](https://github.com/jsdom/jsdom); however, there is no support for
1004
+ receiving Blobs.
1005
+
1006
+ ### Top-level Exports
1007
+
1008
+ Added top-level exports for
1009
+
1010
+ - RTCDataChannel
1011
+ - RTCDataChannelEvent
1012
+ - RTCPeerConnectionIceEvent
1013
+
1014
+ ## Bug Fixes
1015
+
1016
+ - Fixed a failed assertion when closing RTCPeerConnection's or RTCDataChannel's
1017
+ event loop (#376).
1018
+ - Moved AudioDeviceModule construction to the worker thread. This fixes a thread
1019
+ checker assertion raised by debug builds of libwebrtc.
1020
+ - Copy StatsReports on the signaling thread. This fixes a thread checker
1021
+ assertion raised by debug builds of libwebrtc.
1022
+
1023
+ ## Breaking Changes
1024
+
1025
+ - Dropped support for "moz"- and "webkit"-prefixed WebRTC APIs in
1026
+ `lib/browser.js`. This means that, when bundling JavaScript that depends on
1027
+ node-webrtc for the browser, the resulting bundle will no longer depend on
1028
+ these APIs (#369).
1029
+ - Dropped support for the now non-standard `url` attribute in RTCIceServer.
1030
+ - Dropped support for the `RTCIceConnectionStates`, `RTCIceGatheringStates`, and
1031
+ `RTCSignalingStates` properties on the RTCPeerConnection prototype. These were
1032
+ an implementation detail that some libraries used for detecting node-webrtc.
1033
+ - Dropped support for the `RTCDataStates` and `BinaryTypes` properties on the
1034
+ RTCDataChannel prototype. This, too, was an implementation detail.
1035
+
1036
+ # 0.0.67
1037
+
1038
+ ## Bug Fixes
1039
+
1040
+ - ObjectWrap instances accessed in an event loop (like PeerConnection and
1041
+ DataChannel) were getting freed before the event loop completed, which caused
1042
+ segfaults. Now, we call `Ref` in the ObjectWrap instances' constructors and
1043
+ `Unref` in their event loops.
1044
+ - Fixed another source of segfaults, where, if a DataChannel's
1045
+ PeerConnectionFactory was freed, accessing the underlying DataChannelInterface
1046
+ would try to use Threads which had been freed.
1047
+
1048
+ # 0.0.66
1049
+
1050
+ ## Bug Fixes
1051
+
1052
+ - Fixed a CPU regression introduced in 0.0.63. We now share a single
1053
+ PeerConnectionFactoryInterface across PeerConnectionInterfaces, and we now use
1054
+ a "dummy" AudioDeviceModule instead of FakeAudioDeviceModule.
1055
+
1056
+ # 0.0.65
1057
+
1058
+ ## New Features
1059
+
1060
+ - Added support for sending Buffers (#103)
1061
+
1062
+ ## Bug Fixes
1063
+
1064
+ - Sending an ArrayBufferView over an RTCDataChannel did not take into account
1065
+ the ArrayBufferView's `offset` or `length` properties. This resulted in
1066
+ sending the entire backing ArrayBuffer instead of just the data in the
1067
+ ArrayBufferView.
1068
+ - unzip-stream 0.2.2 breaks compatibility with Node 4 and 5. This release pins
1069
+ to unzip-stream 0.2.1.
1070
+
1071
+ ## Breaking Changes
1072
+
1073
+ - Building from source requires CMake 3.1 or newer
1074
+
1075
+ # 0.0.64
1076
+
1077
+ ## Bug Fixes
1078
+
1079
+ - We no longer `Externalize` ArrayBuffers. This fixes an error when sending
1080
+ ArrayBuffers mutliple times (#262 and #264) and a memory leak (#304).
1081
+ - Fixed RTCDataChannel-related segfaults by checking for `nullptr` (#236 and
1082
+ #325)
1083
+
1084
+ # 0.0.63
1085
+
1086
+ ## New Features
1087
+
1088
+ - Support for Node 9
1089
+ - Updated to WebRTC M57 (using [libwebrtc](https://github.com/aisouard/libwebrtc))
1090
+
1091
+ ## Breaking Changes
1092
+
1093
+ - Minimum Mac OS X version bumped to 10.9
1094
+ - Minimum Microsoft Visual Studio version bumped to 2015