martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.33k stars 424 forks source link

Utf8Value is deprecated #562

Open yhojann-cl opened 3 years ago

yhojann-cl commented 3 years ago

When install using npm install irc on Ubuntu 20.04 says:

$ npm install irc

> iconv@2.2.3 install /.../app/node_modules/iconv
> node-gyp rebuild

make: se entra en el directorio '/.../app/node_modules/iconv/build'
  CXX(target) Release/obj.target/iconv/src/binding.o
../src/binding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Iconv::Make(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:84:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   84 |     String::Utf8Value from_encoding(info[0]);
      |                                            ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2892:28: note: declared here
 2892 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/binding.cc:85:42: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   85 |     String::Utf8Value to_encoding(info[1]);
      |                                          ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2892:28: note: declared here
 2892 |                   explicit Utf8Value(Local<v8::Value> obj));
      |                            ^~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/binding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Iconv::Convert(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:106:47: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  106 |     size_t input_start = info[2]->Uint32Value();
      |                                               ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2477:47: note: declared here
 2477 |   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
      |                                               ^~~~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/binding.cc:107:46: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  107 |     size_t input_size = info[3]->Uint32Value();
      |                                              ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2477:47: note: declared here
 2477 |   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
      |                                               ^~~~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/binding.cc:109:48: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  109 |     size_t output_start = info[5]->Uint32Value();
      |                                                ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2477:47: note: declared here
 2477 |   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
      |                                               ^~~~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
../src/binding.cc:110:47: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  110 |     size_t output_size = info[6]->Uint32Value();
      |                                               ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/v8.h:26,
                 from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../../nan/nan.h:56,
                 from ../src/binding.cc:18:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:2477:47: note: declared here
 2477 |   V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
      |                                               ^~~~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
  324 |   declarator __attribute__((deprecated(message)))
      |   ^~~~~~~~~~
  CC(target) Release/obj.target/iconv/deps/libiconv/lib/iconv.o
  SOLINK_MODULE(target) Release/obj.target/iconv.node
  COPY Release/iconv.node
make: se sale del directorio '/.../app/node_modules/iconv/build'

> node-icu-charset-detector@0.2.0 install /.../app/node_modules/node-icu-charset-detector
> node-gyp rebuild

make: se entra en el directorio '/.../app/node_modules/node-icu-charset-detector/build'
  CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
In file included from ../node-icu-charset-detector.cpp:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../node-icu-charset-detector.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE CharsetMatch::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../node-icu-charset-detector.cpp:72:59: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   72 |         v8::Handle<v8::Object> buffer = info[0]->ToObject();
      |                                                           ^
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../node-icu-charset-detector.cpp:1:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:10046:15: note: declared here
10046 | Local<Object> Value::ToObject() const {
      |               ^~~~~
In file included from ../node-icu-charset-detector.cpp:1:
../node-icu-charset-detector.cpp: At global scope:
/home/.../.cache/node-gyp/10.19.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  573 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/.../.cache/node-gyp/10.19.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
  607 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../node-icu-charset-detector.cpp:128:1: note: in expansion of macro ‘NODE_MODULE’
  128 | NODE_MODULE(node_icu_charset_detector, RegisterModule);
      | ^~~~~~~~~~~
In file included from /home/.../.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../node-icu-charset-detector.cpp:1:
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/.../.cache/node-gyp/10.19.0/include/node/node_object_wrap.h:84:78:   required from here
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9502 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/.../.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/node-icu-charset-detector.node
/bin/sh: 1: icu-config: not found
  COPY Release/node-icu-charset-detector.node
make: se sale del directorio '/.../app/node_modules/node-icu-charset-detector/build'
npm WARN nw-demo@0.0.1 No description
npm WARN nw-demo@0.0.1 No repository field.
npm WARN nw-demo@0.0.1 No license field.

+ irc@0.5.2
added 5 packages from 20 contributors and audited 5 packages in 13.736s
found 0 vulnerabilities
Throne3d commented 3 years ago

This seems related to #558: I'd recommend trying out a more updated fork of this repo, such as mine (irc-upd on npm), since this repo has gone without any updates for a long time!