Comments (4)
Shame on them for not showing a proper deprecation warning for this one. I thought we had this all ready.
Codebase is big to rewrite to NAPI, but probably worth it in the long run.
Something I've considered for a while along with the other rewrite to nettle. The problem I have with that is that it's impossible to do incrementally. It's all or nothing. So we couldn't even test the code until it's completely rewritten.
from bcrypto.
It seems Set/Get is will need to change as well.
../src/aead.cc: In static member function ‘static void BAEAD::Init(v8::Local<v8::Object>&)’:
../src/aead.cc:40:44: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Nan::GetFunction(ctor).ToLocalChecked());
^
In file included from /home/nd/.node-gyp/12.1.0/include/node/v8-internal.h:14,
from /home/nd/.node-gyp/12.1.0/include/node/v8.h:25,
from /home/nd/.node-gyp/12.1.0/include/node/node.h:63,
from ../src/common.h:3,
from ../src/aead.cc:1:
/home/nd/.node-gyp/12.1.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
I think these apply to bcrypto, deprecated:
Local<Value> Get(uint32_t index)
bool Set(Local<Value> key, Local<Value> value)
bool Set(uint32_t index, Local<Value> value)
from bcrypto.
I'm going to build node 12 now and test this. If Set
is deprecated on return values, we have a lot of work to do =/
from bcrypto.
It should be Nan::Set
, I think it will handle the issue.
If there are no problems Nan::Set
from bcrypto.
Related Issues (20)
- Switch to N-API and deprecate NAN HOT 4
- Pre-built binaries ? HOT 2
- bcrypto 5.0.0 fails to install on Windows HOT 5
- Symbol not found: _mpn_zero_p HOT 1
- [security] randomBytes() falling back to Math.random()
- Use of `BCRYPTO_FORCE_BIGINT` may silently error and fallback to JS without BigInt
- bcrypto fails to build on windows HOT 8
- "A dynamic link library (DLL) initialization routine failed" when run in Windows under Electron or PKG HOT 5
- Update secp256k1
- Feature request: ESM support HOT 2
- Typescript support
- Monorepo
- Error when I run `yarn add bcrypto` HOT 6
- Implicitly declaring library function memcpy... on MacOS 10.15.7 HOT 6
- [SECURITY] Timing leaks in lib/native/bn.js HOT 3
- close
- AWS Lambda runtime error: version "GLIBC_2.28" not found HOT 1
- Usage with browsers HOT 4
- bech32m is not replaced with bench32m-browser when using browser HOT 3
- v5.5.0 not found on NPM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcrypto.