Giter Site home page Giter Site logo

flac-seektable's People

Contributors

dependabot[bot] avatar lammas avatar

Stargazers

 avatar

Watchers

 avatar

flac-seektable's Issues

flac-seektable does not build on node 12

The deprecation warnings under node 11 are now errors:

sephsmac:ff josephg$ node --version
v12.1.0
sephsmac:ff josephg$ npm i flac-seektable

> [email protected] install /Users/josephg/test/ff/node_modules/flac-seektable
> node-gyp rebuild

  CXX(target) Release/obj.target/flac-seektable/src/main.o
../src/main.cpp:303:37: error: no matching member function for call to
      'ToObject'
        Local<Object> bufferObj = info[0]->ToObject();
                                  ~~~~~~~~~^~~~~~~~
/Users/josephg/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/josephg/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate
      function not viable: requires single argument 'isolate', but no arguments
      were provided
                    Local<Object> ToObject(Isolate* isolate) const);
                                  ^
../src/main.cpp:381:10: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
                        tags->Set(index, New(*it).ToLocalChecked());
                              ^
/Users/josephg/.node-gyp/12.1.0/include/node/v8.h:3367:3: note: 'Set' has been
      explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/josephg/.node-gyp/12.1.0/include/node/v8config.h:322:29: note: expanded
      from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/main.cpp:392:15: warning: 'Set' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
                seekpoints->Set(i, pt);
                            ^
/Users/josephg/.node-gyp/12.1.0/include/node/v8.h:3367:3: note: 'Set' has been
      explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/josephg/.node-gyp/12.1.0/include/node/v8config.h:322:29: note: expanded
      from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
2 warnings and 1 error generated.
make: *** [Release/obj.target/flac-seektable/src/main.o] Error 1

nan is updated & works for node 12, though just like my module I'm not sure if updating it here will fix the issue. Also napi works great, and has been backported to earlier versions of node.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.