Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx bundlesize prints numerous warnings on Linux #283

Open
rsimha opened this issue Mar 5, 2019 · 1 comment
Open

npx bundlesize prints numerous warnings on Linux #283

rsimha opened this issue Mar 5, 2019 · 1 comment

Comments

@rsimha
Copy link

rsimha commented Mar 5, 2019

This is the output of npx bundlesize on linux. I'd imagine something is missing in this project's package.json?

../brotli/dec/decode.c: In function ‘BrotliDecoderDecompressStream’:
../brotli/dec/decode.c:2013:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_METABLOCK_BEGIN;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2015:7: note: here
       case BROTLI_STATE_METABLOCK_BEGIN:
       ^~~~
../brotli/dec/decode.c:2018:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_METABLOCK_HEADER;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2020:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER:
       ^~~~
../brotli/dec/decode.c:2089:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_1;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2091:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_1: {
       ^~~~
../brotli/dec/decode.c:2096:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_2;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2099:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_2: {
       ^~~~
../brotli/dec/decode.c:2104:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_3;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2107:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_3: {
       ^~~~
../brotli/dec/decode.c:2119:45: warning: this statement may fall through [-Wimplicit-fallthrough=]
       case BROTLI_STATE_METABLOCK_HEADER_2: {
                                             ^
../brotli/dec/decode.c:2142:7: note: here
       case BROTLI_STATE_CONTEXT_MODES:
       ^~~~
../brotli/dec/decode.c:2147:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_CONTEXT_MAP_1;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2149:7: note: here
       case BROTLI_STATE_CONTEXT_MAP_1:
       ^~~~
../brotli/dec/decode.c:2157:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_CONTEXT_MAP_2;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2159:7: note: here
       case BROTLI_STATE_CONTEXT_MAP_2:
       ^~~~
../brotli/dec/decode.c:2185:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_TREE_GROUP;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2187:7: note: here
       case BROTLI_STATE_TREE_GROUP:
       ^~~~
../brotli/dec/decode.c:2281:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_DONE;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2283:7: note: here
       case BROTLI_STATE_DONE:
       ^~~~
../brotli/dec/decode.c: In function ‘DecodeMetaBlockLength’:
../brotli/dec/decode.c:193:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_EMPTY;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:196:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_EMPTY:
       ^~~~
../brotli/dec/decode.c:204:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NIBBLES;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:207:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_NIBBLES:
       ^~~~
../brotli/dec/decode.c:218:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_SIZE;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:221:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_SIZE:
       ^~~~
../brotli/dec/decode.c:233:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header =
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
             BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED;
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:237:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED:
       ^~~~
../brotli/dec/decode.c:255:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_BYTES;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:258:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_BYTES:
       ^~~~
../brotli/dec/decode.c:267:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_METADATA;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:270:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_METADATA:
       ^~~~
../brotli/dec/decode.c: In function ‘CopyUncompressedBlockToOutput’:
../brotli/dec/decode.c:1317:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_WRITE;
         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:1320:7: note: here
       case BROTLI_STATE_UNCOMPRESSED_WRITE: {
       ^~~~
../brotli/dec/decode.c: In function ‘DecodeVarLenUint8’:
../brotli/dec/decode.c:139:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (bits == 0) {
          ^
../brotli/dec/decode.c:145:5: note: here
     case BROTLI_STATE_DECODE_UINT8_SHORT:
     ^~~~
../brotli/dec/decode.c:156:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
       *value = bits;
       ~~~~~~~^~~~~~
../brotli/dec/decode.c:159:5: note: here
     case BROTLI_STATE_DECODE_UINT8_LONG:
     ^~~~
../brotli/dec/decode.c: In function ‘ReadHuffmanCode’:
../brotli/dec/decode.c:703:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (s->sub_loop_counter != 1) {
            ^
../brotli/dec/decode.c:715:7: note: here
       case BROTLI_STATE_HUFFMAN_SIMPLE_SIZE:
       ^~~~
../brotli/dec/decode.c:721:29: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->sub_loop_counter = 0;
         ~~~~~~~~~~~~~~~~~~~~^~~
../brotli/dec/decode.c:723:7: note: here
       case BROTLI_STATE_HUFFMAN_SIMPLE_READ: {
       ^~~~
../brotli/dec/decode.c:723:46: warning: this statement may fall through [-Wimplicit-fallthrough=]
       case BROTLI_STATE_HUFFMAN_SIMPLE_READ: {
                                              ^
../brotli/dec/decode.c:731:7: note: here
       case BROTLI_STATE_HUFFMAN_SIMPLE_BUILD: {
       ^~~~
../brotli/dec/decode.c:772:29: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_huffman = BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS;
         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:775:7: note: here
       case BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS: {
       ^~~~
../brotli/dec/decode.c: In function ‘DecodeContextMap’:
../brotli/dec/decode.c:949:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_READ_PREFIX;
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:951:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: {
     ^~~~
../brotli/dec/decode.c:951:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: {
                                                ^
../brotli/dec/decode.c:969:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_HUFFMAN:
     ^~~~
../brotli/dec/decode.c:974:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_DECODE;
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:976:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_DECODE: {
     ^~~~
../brotli/dec/decode.c:976:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case BROTLI_STATE_CONTEXT_MAP_DECODE: {
                                           ^
../brotli/dec/decode.c:1024:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_TRANSFORM: {
     ^~~~
In file included from ../brotli/enc/./block_splitter.h:14:0,
                 from ../brotli/enc/block_splitter.c:9:
../brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorLiteral’:
../brotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../brotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorCommand’:
../brotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../brotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorDistance’:
../brotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../brotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
     uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
../brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
In file included from ../brotli/enc/././block_splitter.h:14:0,
                 from ../brotli/enc/./metablock.h:14,
                 from ../brotli/enc/metablock.c:10:
../brotli/enc/metablock.c: In function ‘ContextBlockSplitterFinishBlock’:
../brotli/enc/metablock.c:279:45: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
         BROTLI_ALLOC(m, HistogramLiteral, 2 * num_contexts);
../brotli/enc/./././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
   ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
     ^
../src/dec/stream_decode.cc: In constructor ‘StreamDecode::StreamDecode(v8::Local<v8::Object>)’:
../src/dec/stream_decode.cc:14:81: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject();
                                                                                 ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/dec/stream_decode.h:4,
                 from ../src/dec/stream_decode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/dec/stream_decode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamDecode::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/dec/stream_decode.cc:40:58: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   StreamDecode* obj = new StreamDecode(info[0]->ToObject());
                                                          ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/dec/stream_decode.h:4,
                 from ../src/dec/stream_decode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/dec/stream_decode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamDecode::Transform(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/dec/stream_decode.cc:48:44: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<Object> buffer = info[0]->ToObject();
                                            ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/dec/stream_decode.h:4,
                 from ../src/dec/stream_decode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/dec/stream_decode_worker.cc: In member function ‘virtual void StreamDecodeWorker::HandleOKCallback()’:
../src/dec/stream_decode_worker.cc:46:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(1, argv);
                           ^
In file included from ../src/dec/stream_decode_worker.h:4:0,
                 from ../src/dec/stream_decode_worker.cc:1:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/dec/stream_decode_worker.cc:52:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(2, argv);
                           ^
In file included from ../src/dec/stream_decode_worker.h:4:0,
                 from ../src/dec/stream_decode_worker.cc:1:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/enc/stream_encode.cc: In constructor ‘StreamEncode::StreamEncode(v8::Local<v8::Object>)’:
../src/enc/stream_encode.cc:14:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     val = Nan::Get(params, key).ToLocalChecked()->Int32Value();
                                                              ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:26:0,
                 from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/enc/stream_encode.cc:20:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     val = Nan::Get(params, key).ToLocalChecked()->Int32Value();
                                                              ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:26:0,
                 from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/enc/stream_encode.cc:26:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     val = Nan::Get(params, key).ToLocalChecked()->Int32Value();
                                                              ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:26:0,
                 from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/enc/stream_encode.cc:32:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     val = Nan::Get(params, key).ToLocalChecked()->Int32Value();
                                                              ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:26:0,
                 from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/enc/stream_encode.cc:44:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     val = Nan::Get(params, key).ToLocalChecked()->Int32Value();
                                                              ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:26:0,
                 from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/enc/stream_encode.cc:50:81: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject();
                                                                                 ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/enc/stream_encode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamEncode::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/enc/stream_encode.cc:76:58: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   StreamEncode* obj = new StreamEncode(info[0]->ToObject());
                                                          ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/enc/stream_encode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamEncode::Transform(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/enc/stream_encode.cc:84:44: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   Local<Object> buffer = info[0]->ToObject();
                                            ^
In file included from /usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/node.h:63:0,
                 from ../../nan/nan.h:53,
                 from ../src/enc/stream_encode.h:4,
                 from ../src/enc/stream_encode.cc:1:
/usr/local/google/home/rsimha/.node-gyp/10.15.2/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/enc/stream_encode_worker.cc: In member function ‘virtual void StreamEncodeWorker::HandleOKCallback()’:
../src/enc/stream_encode_worker.cc:47:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(1, argv);
                           ^
In file included from ../src/enc/stream_encode_worker.h:4:0,
                 from ../src/enc/stream_encode_worker.cc:1:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/enc/stream_encode_worker.cc:53:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(2, argv);
                           ^
In file included from ../src/enc/stream_encode_worker.h:4:0,
                 from ../src/enc/stream_encode_worker.cc:1:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
 PASS  dist/amp.js: 349.56KB (gzip) 

@siddharthkp
Copy link
Owner

I'd imagine something is missing in this project's package.json?

Umm not really.

Looks like the brotli package we use is not compatible with this flavor of unix 🤔

bundlesize 1.0.0 will make brotli optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants