audreyt / node-webworker-threads

Lightweight Web Worker API implementation with native threads
https://npmjs.org/package/webworker-threads
Other
2.3k stars 149 forks source link

Can't install with yarn #190

Closed aprilmintacpineda closed 4 years ago

aprilmintacpineda commented 5 years ago

After yarn add -D webworker-threads, I got this output:

Summary:

112 warnings and 9 errors generated.
make: *** [Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/11.0.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/11.0.0/bin/node" "/usr/local/Cellar/node/11.0.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sprlwrks/projects/PWA-W88/node_modules/webworker-threads
gyp ERR! node -v v11.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

More info

error /Users/sprlwrks/projects/PWA-W88/node_modules/webworker-threads: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /Users/sprlwrks/projects/PWA-W88/node_modules/webworker-threads
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.0.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.0.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/sprlwrks/projects/PWA-W88/node_modules/webworker-threads/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/Cellar/node/11.0.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/sprlwrks/.node-gyp/11.0.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/sprlwrks/.node-gyp/11.0.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/11.0.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/sprlwrks/.node-gyp/11.0.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/sprlwrks/projects/PWA-W88/node_modules/webworker-threads',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
In file included from ../src/WebWorkerThreads.cc:12:
../../nan/nan.h:1064:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                           ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2537:3: note: 'ToString' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:140:79: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
        void    WriteLengthPrefixedString(const Local<String>& value)   { count += value->Utf8Length()+5; }
                                                                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:142:69: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
        void    WriteString(const Local<String>& value)                                 { count += value->Utf8Length() + 1; }   // This returns the number of bytes exclusive of the NULL terminator
                                                                                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:165:102: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    void        WriteByte(const Local<Object>& object, const Local<String>& key)        { *p++ = object->Get(key)->Int32Value(); }
                                                                                                                   ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:175:70: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    void        WriteBool(const Local<Value>& value)                                    { WriteByte(value->BooleanValue() ? 1 : 0); }
                                                                                                           ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:176:72: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    void        WriteInt32(const Local<Value>& value)                                   { WriteInt32(value->Int32Value());                      }
                                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:178:72: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    void        WriteInt64(const Local<Value>& value)                                   { WriteInt64(value->IntegerValue());            }
                                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:179:74: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    void        WriteDouble(const Local<Value>& value)                                  { WriteDouble(value->NumberValue());            }
                                                                                                             ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:182:81: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
        void    WriteLengthPrefixedString(const Local<String>& value)   { WriteInt32(value->Utf8Length()+1); WriteString(value); }
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:184:65: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        void    WriteString(const Local<String>& value)                                 { p += value->WriteUtf8(p); }           // This returns the number of bytes inclusive of the NULL terminator.
                                                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:20: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
        object->Get(key)->ToString()->Write(buffer, 0, 12);
                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:32: warning: 'Write' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        object->Get(key)->ToString()->Write(buffer, 0, 12);
                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2740:3: note: 'Write' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:71:30: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
        size_t keyLength = keyName->Utf8Length();
                                    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:77:11: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        keyName->WriteUtf8(keyStringBuffer);
                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:62: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& propertyName = propertyNames->Get(i)->ToString();
                                                                           ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:49: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Array> array = Local<Array>::Cast(value->ToObject());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:151:31: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
                double doubleValue = value->NumberValue();
                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:167:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:200:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:204:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& object = value->ToObject();
                                                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:229:87: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                uint32_t length = object->Get(Nan::New(bson->_binaryPositionString))->Uint32Value();
                                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:230:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                Local<Object> bufferObj = object->Get(Nan::New(bson->_binaryBufferString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:235:71: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                if(object->Get(Nan::New(bson->_binarySubTypeString))->Int32Value() == 0x02) {
                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:249:98: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(object->Get(Nan::New(bson->_symbolValueString))->ToString());
                                                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:253:95: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& function = object->Get(Nan::New(bson->_codeCodeString))->ToString();
                                                                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:254:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& scope = object->Get(Nan::New(bson->_codeScopeString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:267:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:274:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:319:45: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                         uint32_t length = Buffer::Length(value->ToObject());
                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:324:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                        this->WriteData(Buffer::Data(value->ToObject()), length);
                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:511:30: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                        return RegExp::New(regex->ToString(), (RegExp::Flags) options);
                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:511:11: error: too few arguments to function call, expected 3, have 2; did you mean 'Nan::New'?
                        return RegExp::New(regex->ToString(), (RegExp::Flags) options);
                               ^~~~~~
                               Nan::New
../../nan/nan_new.h:336:1: note: 'Nan::New' declared here
New(v8::Local<v8::String> pattern, v8::RegExp::Flags flags) {
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:527:41: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                        Local<Value> argv[] = { code, scope->ToObject() };
                                                             ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:715:51: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                Local<String> functionName = func->GetName()->ToString();
                                                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:789:42: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Object> options = info[1]->ToObject();
                                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:792:93: warning: 'ToBoolean' is deprecated: Use maybe version [-Wdeprecated-declarations]
            promoteLongs = options->Get(Nan::New<String>("promoteLongs").ToLocalChecked())->ToBoolean()->Value();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2546:10: note: 'ToBoolean' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version",
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:797:34: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local<Object> obj = info[0]->ToObject();
                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:864:35: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Object> object = argValue->ToObject();
                                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:872:18: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                return result->ToObject();
                               ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:898:64: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    bool serializeFunctions = (info.Length() >= 4) && info[3]->BooleanValue();
                                                               ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:914:81: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        bool checkKeys = info.Length() >= 3 && info[1]->IsBoolean() && info[1]->BooleanValue();
                                                                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:935:96: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                Local<Value> bin_value = Nan::Encode(serialized_object, object_size, (Nan::Encoding)BINARY)->ToString();
                                                                                                             ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:951:64: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    bool serializeFunctions = (info.Length() >= 2) && info[1]->BooleanValue();
                                                               ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:976:38: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Object> obj = info[2]->ToObject();
                                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:980:26: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
        index = info[3]->Uint32Value();
                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:981:81: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        bool checkKeys = info.Length() >= 4 && info[1]->IsBoolean() && info[1]->BooleanValue();
                                                                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:982:68: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        bool serializeFunctions = (info.Length() == 5) && info[4]->BooleanValue();
                                                                   ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1021:34: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local<Object> obj = info[0]->ToObject();
                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1022:43: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    uint32_t numberOfDocuments = info[2]->Uint32Value();
                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1023:31: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    uint32_t index = info[1]->Uint32Value();
                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1024:37: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    uint32_t resultIndex = info[4]->Uint32Value();
                                    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1029:42: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Object> options = info[5]->ToObject();
                                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1033:93: warning: 'ToBoolean' is deprecated: Use maybe version [-Wdeprecated-declarations]
            promoteLongs = options->Get(Nan::New<String>("promoteLongs").ToLocalChecked())->ToBoolean()->Value();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2546:10: note: 'ToBoolean' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version",
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:1051:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local<Object> documents = info[3]->ToObject();
                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:32:20: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
        String::Utf8Value exception(try_catch->Exception());
                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:40:21: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
                String::Utf8Value filename(message->GetScriptResourceName());
                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:41:40: error: too few arguments to function call, single argument 'context' was not specified
                int linenum = message->GetLineNumber();
                              ~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1757:3: note: 'GetLineNumber' declared here
  V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber(Local<Context> context) const;
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:418:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:44:55: error: too few arguments to function call, single argument 'context' was not specified
                String::Utf8Value sourceline(message->GetSourceLine());
                                             ~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1732:3: note: 'GetSourceLine' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> GetSourceLine(
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:418:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:66:21: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
                String::Utf8Value stack_trace(try_catch->StackTrace().ToLocalChecked());
                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:77:22: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
    FILE *f = fopen(*String::Utf8Value(Local<String>::Cast(info[0])), "rb");
                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:125:45: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
            fprintf(fd, "%s%s: ", indent, *(String::Utf8Value(Local<String>::Cast(ar->Get(i)))));
                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:132:49: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
                fprintf(fd, "%s%s\n", indent, *(String::Utf8Value(Local<String>::Cast(lv))));
                                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:149:49: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
                fprintf(fd, "%s%s\n", indent, *(String::Utf8Value(Local<String>::Cast(lv))));
                                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:18:
../src/jslib.cc:154:41: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
        fprintf(fd, "%s%s\n", indent, *(String::Utf8Value(Local<String>::Cast(v))));
                                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:168:23: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
    String::Utf8Value c_str(info[i]);
                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:182:27: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
        String::Utf8Value c_str(info[i]);
                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:280:116: error: too few arguments to function call, expected at least 2, have 1
    Local<Object> dispatchEvents= Nan::CallAsFunction(Script::Compile(Nan::New<String>(kEvents_js).ToLocalChecked())->Run()->ToObject(), threadObject, 0, NULL).ToLocalChecked()->ToObject();
                                                      ~~~~~~~~~~~~~~~                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
../src/WebWorkerThreads.cc:281:108: error: too few arguments to function call, expected at least 2, have 1
    Local<Object> dispatchNextTicks= Script::Compile(Nan::New<String>(kThread_nextTick_js).ToLocalChecked())->Run()->ToObject();
                                     ~~~~~~~~~~~~~~~                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
../src/WebWorkerThreads.cc:285:64: error: too few arguments to function call, expected at least 2, have 1
    Script::Compile(Nan::New<String>(kLoad_js).ToLocalChecked())->Run();
    ~~~~~~~~~~~~~~~                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
../src/WebWorkerThreads.cc:334:44: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
              job->typeEval.resultado= new String::Utf8Value(job->typeEval.error ? onError.Exception() : resultado);
                                           ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:383:74: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
          Local<Object> result = deserializer.DeserializeDocument(true)->ToObject();
                                                                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:407:45: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
            nextTickQueueLength= resultado->NumberValue();
                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:555:74: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
          Local<Object> result = deserializer.DeserializeDocument(true)->ToObject();
                                                                         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:615:39: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local<Object> local_cb = info[1]->ToObject();
                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:618:46: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  job->typeEval.scriptText_StringObject= new String::Utf8Value(info[0]);
                                             ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:631:25: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  v8::String::Utf8Value c_str(path);
                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:673:35: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
  char* source= readFile(info[0]->ToString());  //@Bruno: here we don't know if the file was not found or if it was an empty file
                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:681:39: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local<Object> local_cb = info[1]->ToObject();
                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:713:33: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  job->typeEvent.eventName= new String::Utf8Value(info[0]);
                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:718:41: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
    job->typeEvent.argumentos[i-1]= new String::Utf8Value(info[i]);
                                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:743:43: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  job->typeEventSerialized.eventName= new String::Utf8Value(info[0]);
                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:809:3: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  POST_EVENT("message");
  ^
../src/WebWorkerThreads.cc:780:43: note: expanded from macro 'POST_EVENT'
  job->typeEventSerialized.eventName= new String::Utf8Value(Nan::New<String>(eventname).ToLocalChecked()); \
                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:813:3: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  POST_EVENT("error");
  ^
../src/WebWorkerThreads.cc:780:43: note: expanded from macro 'POST_EVENT'
  job->typeEventSerialized.eventName= new String::Utf8Value(Nan::New<String>(eventname).ToLocalChecked()); \
                                          ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:829:33: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
  job->typeEvent.eventName= new String::Utf8Value(info[0]);
                                ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:834:41: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
    job->typeEvent.argumentos[i-1]= new String::Utf8Value(info[i]);
                                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:875:115: error: too few arguments to function call, expected at least 2, have 1
    Local<Value> dispatchEvents= Nan::CallAsFunction(Script::Compile(Nan::New<String>(kEvents_js).ToLocalChecked())->Run()->ToObject(), local_JSObject, 0, NULL).ToLocalChecked();
                                                     ~~~~~~~~~~~~~~~                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
../src/WebWorkerThreads.cc:876:55: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Object> local_dispatchEvents = dispatchEvents->ToObject();
                                                             ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/WebWorkerThreads.cc:917:70: error: too few arguments to function call, expected at least 2, have 1
    Script::Compile(Nan::New<String>(kCreatePool_js).ToLocalChecked())->Run()->ToObject());
    ~~~~~~~~~~~~~~~                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
../src/WebWorkerThreads.cc:919:86: error: too few arguments to function call, expected at least 2, have 1
    Nan::CallAsFunction(Script::Compile(Nan::New<String>(kWorker_js).ToLocalChecked())->Run()->ToObject(), target, 0, NULL).ToLocalChecked()->ToObject());
                        ~~~~~~~~~~~~~~~                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:1359:3: note: 'Compile' declared here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
  ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:62: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& propertyName = propertyNames->Get(i)->ToString();
                                                                           ^
../src/bson.cc:907:11: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeDocument' requested here
                counter.SerializeDocument(object);
                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:151:31: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
                double doubleValue = value->NumberValue();
                                            ^
../src/bson.cc:118:4: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeValue' requested here
                        SerializeValue(typeLocation, propertyValue);
                        ^
../src/bson.cc:907:11: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeDocument' requested here
                counter.SerializeDocument(object);
                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:167:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:200:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:204:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& object = value->ToObject();
                                                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:229:87: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                uint32_t length = object->Get(Nan::New(bson->_binaryPositionString))->Uint32Value();
                                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:230:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                Local<Object> bufferObj = object->Get(Nan::New(bson->_binaryBufferString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:235:71: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                if(object->Get(Nan::New(bson->_binarySubTypeString))->Int32Value() == 0x02) {
                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:249:98: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(object->Get(Nan::New(bson->_symbolValueString))->ToString());
                                                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:253:95: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& function = object->Get(Nan::New(bson->_codeCodeString))->ToString();
                                                                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:254:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& scope = object->Get(Nan::New(bson->_codeScopeString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:267:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:274:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:319:45: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                         uint32_t length = Buffer::Length(value->ToObject());
                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:324:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                        this->WriteData(Buffer::Data(value->ToObject()), length);
                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:49: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Array> array = Local<Array>::Cast(value->ToObject());
                                                       ^
../src/bson.cc:177:3: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeArray' requested here
                SerializeArray(value);
                ^
../src/bson.cc:118:4: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeValue' requested here
                        SerializeValue(typeLocation, propertyValue);
                        ^
../src/bson.cc:907:11: note: in instantiation of member function 'BSONSerializer<CountStream>::SerializeDocument' requested here
                counter.SerializeDocument(object);
                        ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:62: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& propertyName = propertyNames->Get(i)->ToString();
                                                                           ^
../src/bson.cc:916:8: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeDocument' requested here
                data.SerializeDocument(object);
                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:151:31: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
                double doubleValue = value->NumberValue();
                                            ^
../src/bson.cc:118:4: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeValue' requested here
                        SerializeValue(typeLocation, propertyValue);
                        ^
../src/bson.cc:916:8: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeDocument' requested here
                data.SerializeDocument(object);
                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:167:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:200:42: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(value->ToString());
                                                       ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:204:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& object = value->ToObject();
                                                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:229:87: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                uint32_t length = object->Get(Nan::New(bson->_binaryPositionString))->Uint32Value();
                                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:230:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                Local<Object> bufferObj = object->Get(Nan::New(bson->_binaryBufferString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:235:71: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                if(object->Get(Nan::New(bson->_binarySubTypeString))->Int32Value() == 0x02) {
                                                                      ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:249:98: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                this->WriteLengthPrefixedString(object->Get(Nan::New(bson->_symbolValueString))->ToString());
                                                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:253:95: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<String>& function = object->Get(Nan::New(bson->_codeCodeString))->ToString();
                                                                                              ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:254:93: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                const Local<Object>& scope = object->Get(Nan::New(bson->_codeScopeString))->ToObject();
                                                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:267:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:274:48: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
                                        this->WriteLengthPrefixedString(function->ToString());
                                                                                  ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:319:45: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                         uint32_t length = Buffer::Length(value->ToObject());
                                                                 ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:324:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
                        this->WriteData(Buffer::Data(value->ToObject()), length);
                                                            ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:49: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local<Array> array = Local<Array>::Cast(value->ToObject());
                                                       ^
../src/bson.cc:177:3: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeArray' requested here
                SerializeArray(value);
                ^
../src/bson.cc:118:4: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeValue' requested here
                        SerializeValue(typeLocation, propertyValue);
                        ^
../src/bson.cc:916:8: note: in instantiation of member function 'BSONSerializer<DataStream>::SerializeDocument' requested here
                data.SerializeDocument(object);
                     ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/sprlwrks/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
chfle commented 5 years ago

I had the same problem with npm and node version 11+. Use Node version 10.15.0 LTS or older.

matthewatabet commented 4 years ago

Confirmed that @christianlehnert 's suggestion works. I was on node 13, and downgraded via brew to node 10. Works now.

Are there plans to support recent versions of Node? Thanks!

audreyt commented 4 years ago

There is currently no plan to support recent versions of node as https://www.npmjs.com/package/web-worker supports the new https://nodejs.org/api/worker_threads.html API.

audreyt commented 4 years ago

(pull requests to deprecate this module in favor of web-worker for recent node versions are very much welcome.)