Comparing version 2.10.0 to 2.11.0
# NAN ChangeLog | ||
**Version 2.10.0: current Node 9.8.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
**Version 2.11.0: current Node 10.9.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
### 2.11.0 Aug 25 2018 | ||
- Removal: remove `FunctionCallbackInfo::Callee` for nodejs `>= 10` 1a56c0a6efd4fac944cb46c30912a8e023bda7d4 | ||
- Bugfix: Fix `AsyncProgressWorkerBase::WorkProgress` sends invalid data b0c764d1dab11e9f8b37ffb81e2560a4498aad5e | ||
- Feature: Introduce `GetCurrentEventLoop` b4911b0bb1f6d47d860e10ec014d941c51efac5e | ||
- Feature: Add `NAN_MODULE_WORKER_ENABLED` macro as a replacement for `NAN_MODULE` b058fb047d18a58250e66ae831444441c1f2ac7a | ||
### 2.10.0 Mar 16 2018 | ||
@@ -6,0 +13,0 @@ |
@@ -48,3 +48,3 @@ ## JavaScript-accessible methods | ||
ReturnValue<T> GetReturnValue() const; | ||
v8::Local<v8::Function> Callee(); | ||
v8::Local<v8::Function> Callee(); // NOTE: Not available in NodeJS >= 10.0.0 | ||
v8::Local<v8::Value> Data(); | ||
@@ -62,2 +62,4 @@ v8::Local<v8::Object> Holder(); | ||
**Note:** `FunctionCallbackInfo::Callee` is removed in Node.js after `10.0.0` because it is was deprecated in V8. Consider using `info.Data()` to pass any information you need. | ||
<a name="api_nan_property_callback_info"></a> | ||
@@ -64,0 +66,0 @@ ### Nan::PropertyCallbackInfo |
@@ -13,3 +13,3 @@ ## Miscellaneous Node Helpers | ||
When calling back into JavaScript asynchornously, special care must be taken to ensure that the runtime can properly track | ||
When calling back into JavaScript asynchronously, special care must be taken to ensure that the runtime can properly track | ||
async hops. `Nan::AsyncResource` is a class that provides an RAII wrapper around `node::EmitAsyncInit`, `node::EmitAsyncDestroy`, | ||
@@ -16,0 +16,0 @@ and `node::MakeCallback`. Using this mechanism to call back into JavaScript, as opposed to `Nan::MakeCallback` or |
@@ -103,3 +103,3 @@ ## Object Wrappers | ||
v8::Local<v8::Function> cons = Nan::New(constructor()); | ||
info.GetReturnValue().Set(cons->NewInstance(argc, argv)); | ||
info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked()); | ||
} | ||
@@ -106,0 +106,0 @@ } |
{ | ||
"name": "nan", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 9 compatibility", | ||
@@ -12,2 +12,3 @@ "main": "include_dirs.js", | ||
"test": "tap --gc --stderr test/js/*-test.js", | ||
"test:worker": "node --experimental-worker test/tap-as-worker.js --gc --stderr test/js/*-test.js", | ||
"rebuild-tests": "node-gyp rebuild --msvs_version=2015 --directory test", | ||
@@ -14,0 +15,0 @@ "docs": "doc/.build.sh" |
Native Abstractions for Node.js | ||
=============================== | ||
**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8 and 9.** | ||
**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10.** | ||
***Current version: 2.10.0*** | ||
***Current version: 2.11.0*** | ||
@@ -8,0 +8,0 @@ *(See [CHANGELOG.md](https://github.com/nodejs/nan/blob/master/CHANGELOG.md) for complete ChangeLog)* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
412174