From 40e4adcb8caa8e00d54416d6d57a38e2e8e8da6b Mon Sep 17 00:00:00 2001
From: Avaer Kazmer
Date: Tue, 19 Mar 2019 21:41:33 -0400
Subject: [PATCH 01/15] Update index.js blocker to support node 12
---
src/index.js | 25 ++-----------------------
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/src/index.js b/src/index.js
index c28cdbacea..6dcea090a6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,28 +1,7 @@
#!/usr/bin/env node
-if (require.main === module) {
- if (/^11\./.test(process.versions.node)) {
- const hasWorkerThread = (() => {
- try {
- require('worker_threads');
- return true;
- } catch(err) {
- return false;
- }
- })();
- if (!hasWorkerThread) {
- try {
- require('child_process').execFileSync(process.argv0, ['--experimental-worker'].concat(process.argv.slice(1)), {
- stdio: 'inherit',
- });
- process.exit();
- } catch(err) {
- process.exit(err.status);
- }
- }
- } else {
- throw new Error('node 11 required');
- }
+if (require.main === module && !/^1[12]\./.test(process.versions.node)) {
+ throw new Error('node 11 or 12 required');
}
// const cwd = process.cwd();
// process.chdir(__dirname); // needed for global bin to find libraries
From 3847dd7178551ede7d317c4bce0c57842858dea6 Mon Sep 17 00:00:00 2001
From: Avaer Kazmer
Date: Tue, 19 Mar 2019 21:52:26 -0400
Subject: [PATCH 02/15] Update some module dependencies
---
package.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 7b63e21491..2a4fd73ddf 100644
--- a/package.json
+++ b/package.json
@@ -84,9 +84,9 @@
"window-classlist": "0.0.4",
"window-fetch": "0.0.10",
"window-selector": "0.0.6",
- "window-worker": "0.0.100",
+ "window-worker": "0.0.101",
"window-xhr": "0.0.29",
- "worker-native": "0.0.4",
+ "worker-native": "0.0.29",
"ws": "^6.1.2"
},
"devDependencies": {
From 320cfe5e57cf786adee448d048593576913d368f Mon Sep 17 00:00:00 2001
From: Avaer Kazmer
Date: Tue, 19 Mar 2019 22:57:10 -0400
Subject: [PATCH 03/15] Bump ws module version
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 2a4fd73ddf..501a5b3ee8 100644
--- a/package.json
+++ b/package.json
@@ -87,7 +87,7 @@
"window-worker": "0.0.101",
"window-xhr": "0.0.29",
"worker-native": "0.0.29",
- "ws": "^6.1.2"
+ "ws": "^6.2.0"
},
"devDependencies": {
"chai": "^4.1.2",
From 96030cf86d2b5b55a715f0b08131cbbef4e23a64 Mon Sep 17 00:00:00 2001
From: Avaer Kazmer
Date: Wed, 20 Mar 2019 19:39:38 -0400
Subject: [PATCH 04/15] Major node 12 C++ API update
---
.../exokit-bindings/browser/include/browser.h | 2 +-
deps/exokit-bindings/browser/src/browser.cpp | 80 +-
.../canvascontext/include/canvas-context.h | 2 +-
.../canvascontext/include/canvas-gradient.h | 2 +-
.../canvascontext/include/canvas-pattern.h | 2 +-
.../canvascontext/include/image-context.h | 2 +-
.../include/imageBitmap-context.h | 2 +-
.../canvascontext/include/imageData-context.h | 2 +-
.../canvascontext/include/path2d-context.h | 2 +-
.../canvascontext/src/canvas-context.cc | 282 ++---
.../canvascontext/src/canvas-gradient.cc | 30 +-
.../canvascontext/src/canvas-pattern.cc | 6 +-
.../canvascontext/src/image-context.cc | 6 +-
.../canvascontext/src/imageBitmap-context.cc | 21 +-
.../canvascontext/src/imageData-context.cc | 12 +-
.../canvascontext/src/path2d-context.cc | 42 +-
deps/exokit-bindings/glfw/src/glfw.cc | 44 +-
.../leapmotion/include/leapmotion.h | 4 +-
.../leapmotion/src/leapmotion.cc | 6 +-
deps/exokit-bindings/util/include/defines.h | 8 +
deps/exokit-bindings/util/src/defines.cc | 2 +-
.../videocontext/include/Video.h | 4 +-
.../videocontext/src/Video.cpp | 16 +-
.../webaudiocontext/include/AnalyserNode.h | 2 +-
.../webaudiocontext/include/Audio.h | 2 +-
.../webaudiocontext/include/AudioBuffer.h | 4 +-
.../webaudiocontext/include/AudioContext.h | 2 +-
.../include/AudioDestinationNode.h | 2 +-
.../webaudiocontext/include/AudioListener.h | 2 +-
.../webaudiocontext/include/AudioNode.h | 2 +-
.../webaudiocontext/include/AudioParam.h | 2 +-
.../webaudiocontext/include/AudioSourceNode.h | 2 +-
.../webaudiocontext/include/FakeAudioParam.h | 2 +-
.../webaudiocontext/include/GainNode.h | 2 +-
.../include/MediaStreamTrack.h | 2 +-
.../include/MicrophoneMediaStream.h | 2 +-
.../webaudiocontext/include/OscillatorNode.h | 2 +-
.../webaudiocontext/include/PannerNode.h | 2 +-
.../include/ScriptProcessorNode.h | 4 +-
.../include/StereoPannerNode.h | 2 +-
.../webaudiocontext/src/AnalyserNode.cpp | 8 +-
.../webaudiocontext/src/Audio.cpp | 10 +-
.../webaudiocontext/src/AudioBuffer.cpp | 34 +-
.../webaudiocontext/src/AudioContext.cpp | 48 +-
.../src/AudioDestinationNode.cpp | 6 +-
.../webaudiocontext/src/AudioListener.cpp | 20 +-
.../webaudiocontext/src/AudioNode.cpp | 20 +-
.../webaudiocontext/src/AudioParam.cpp | 36 +-
.../webaudiocontext/src/AudioSourceNode.cpp | 12 +-
.../webaudiocontext/src/FakeAudioParam.cpp | 16 +-
.../webaudiocontext/src/GainNode.cpp | 8 +-
.../webaudiocontext/src/MediaStreamTrack.cpp | 8 +-
.../src/MicrophoneMediaStream.cpp | 6 +-
.../webaudiocontext/src/OscillatorNode.cpp | 8 +-
.../webaudiocontext/src/PannerNode.cpp | 36 +-
.../src/ScriptProcessorNode.cpp | 24 +-
.../webaudiocontext/src/StereoPannerNode.cpp | 8 +-
.../exokit-bindings/webglcontext/src/webgl.cc | 1003 +++++++++--------
deps/exokit-bindings/webrtc/include/common.h | 2 +
.../webrtc/include/datachannel.h | 2 +-
.../webrtc/include/peerconnection.h | 2 +-
.../webrtc/include/peerconnectionfactory.h | 2 +-
.../webrtc/include/rtcstatsreport.h | 2 +-
.../webrtc/include/rtcstatsresponse.h | 2 +-
deps/exokit-bindings/webrtc/include/webrtc.h | 2 +-
deps/exokit-bindings/webrtc/src/binding.cc | 2 +-
.../exokit-bindings/webrtc/src/datachannel.cc | 10 +-
.../webrtc/src/peerconnection.cc | 82 +-
.../webrtc/src/peerconnectionfactory.cc | 6 +-
.../webrtc/src/rtcstatsreport.cc | 9 +-
.../webrtc/src/rtcstatsresponse.cc | 7 +-
.../windowsystem/src/windowsystem.cc | 74 +-
deps/openvr/include/openvr-util.h | 20 +-
deps/openvr/src/ivrcompositor.cpp | 2 +-
deps/openvr/src/ivrsystem.cpp | 38 +-
deps/openvr/src/openvr-bindings.cpp | 26 +-
exokit.cpp | 14 +-
77 files changed, 1121 insertions(+), 1111 deletions(-)
diff --git a/deps/exokit-bindings/browser/include/browser.h b/deps/exokit-bindings/browser/include/browser.h
index 775b14ca0f..a9e0ba424d 100644
--- a/deps/exokit-bindings/browser/include/browser.h
+++ b/deps/exokit-bindings/browser/include/browser.h
@@ -26,7 +26,7 @@ namespace browser {
class Browser : public ObjectWrap {
public:
- static Handle