Skip to content

Commit

Permalink
Remove support for nodejs v16
Browse files Browse the repository at this point in the history
  • Loading branch information
laverdet committed May 21, 2024
1 parent 901cd70 commit 6d92b1d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 695 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "isolated-vm.js",
"types": "isolated-vm.d.ts",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"scripts": {
"install": "prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)",
Expand Down
10 changes: 1 addition & 9 deletions src/isolate/v8_inspector_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
#include "v8_inspector/nodejs_v20.0.0.h"
#elif V8_AT_LEAST(10, 2, 154)
#include "v8_inspector/nodejs_v18.3.0.h"
#elif V8_AT_LEAST(10, 1, 124)
#include "v8_inspector/nodejs_v18.0.0.h"
#elif NODE_MODULE_VERSION >= 93
#if V8_AT_LEAST(9, 4, 146)
#include "v8_inspector/nodejs_v16.11.0.h"
#else
#include "v8_inspector/nodejs_v16.0.0.h"
#endif
#else
#include <v8-inspector.h>
#include "v8_inspector/nodejs_v18.0.0.h"
#endif
4 changes: 0 additions & 4 deletions src/module/context_handle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

using namespace v8;

#if !V8_AT_LEAST(10, 1, 1)
#define CompileFunction CompileFunctionInContext
#endif

namespace ivm {
namespace {

Expand Down
336 changes: 0 additions & 336 deletions vendor/v8_inspector/nodejs_v16.0.0.h

This file was deleted.

Loading

0 comments on commit 6d92b1d

Please sign in to comment.