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

Migrate to Node 12 #16

Closed

Conversation

briannielson
Copy link

Still a work in progress, but wanted to highlight some changes with this package.

@@ -1,8 +1,11 @@
{
'targets': [
{
'include_dirs':[
'<(module_root_dir)/node_modules/nan',
Copy link
Author

@briannielson briannielson May 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to change binding.gyp to pull from the server node_modules directory if at all possible, but I don't think I can.

"colors": "~0.6.0-1",
"bindings": "*"
"nan": "^2.14.1"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bringing in nan to help with some of the string and integer types.

}

void init(v8::Handle<v8::Object> target) {
void init(v8::Local<v8::Object> target) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v8::Handle has been deprecated for a while, but it was finally removed in v8 used for node 12.

v8::Isolate* isolate = args.GetIsolate();
args[0]->ToString(Nan::GetCurrentContext()).FromMaybe(v8::Local<v8::String>())->WriteUtf8(isolate, (char*) &title);
int32_t facility = args[1]->ToInt32(Nan::GetCurrentContext()).ToLocalChecked()->Value();
int32_t log_upto = args[2]->ToInt32(Nan::GetCurrentContext()).ToLocalChecked()->Value();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helpful notes on migration from another repo bcoin-org/bcrypto#7

@briannielson briannielson marked this pull request as ready for review May 11, 2020 01:29
@briannielson briannielson deleted the bb-migrateNode12 branch May 11, 2020 01:31
@briannielson
Copy link
Author

Whoops, looks like I was on the wrong repo.

Feel free to use any of this if you want.

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

Successfully merging this pull request may close these issues.

1 participant