Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "nan", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Native Abstractions for Node.js: C++ header for Node 0.8->0.12 compatibility", | ||
@@ -15,5 +15,6 @@ "main": "include_dirs.js", | ||
"Nathan Rajlich <nathan@tootallnate.net> (https://github.com/TooTallNate)", | ||
"Brett Lawson <brett19@gmail.com> (https://github.com/brett19)" | ||
"Brett Lawson <brett19@gmail.com> (https://github.com/brett19)", | ||
"Ben Noordhuis <info@bnoordhuis.nl> (https://github.com/bnoordhuis)" | ||
], | ||
"license": "MIT" | ||
} |
@@ -6,3 +6,3 @@ Native Abstractions for Node.js | ||
***Current version: 0.7.0*** *(See [nan.h](https://github.com/rvagg/nan/blob/master/nan.h) for complete ChangeLog)* | ||
***Current version: 0.7.1*** *(See [nan.h](https://github.com/rvagg/nan/blob/master/nan.h) for complete ChangeLog)* | ||
@@ -35,3 +35,3 @@ [![NPM](https://nodei.co/npm/nan.png?downloads=true)](https://nodei.co/npm/nan/) [![NPM](https://nodei.co/npm-dl/nan.png?months=6)](https://nodei.co/npm/nan/) | ||
Inclusion of NAN in a project's binding.gyp is now greatly simplified. You can now just use `"<!(node -e \"require('nan')\")"` in your `"include_dirs"`, see example below. | ||
Inclusion of NAN in a project's binding.gyp is now greatly simplified. You can now just use `"<!(node -e \"require('nan')\")"` in your `"include_dirs"`, see example below (note Windows needs the quoting around `require` to be just right: `"require('nan')"` with appropriate `\` escaping). | ||
@@ -718,3 +718,3 @@ <a name="usage"></a> | ||
Because of the difficulties imposed by the changes to `Persistent` handles in V8 in Node 0.11, creating `Persistent` versions of your `Local<Function>` handles is annoyingly tricky. `NanCallback` makes it easier by taking your `Local` handle, making it persistent until the `NanCallback` is deleted and even providing a handy `Call()` method to fetch and execute the callback `Function`. | ||
Because of the difficulties imposed by the changes to `Persistent` handles in V8 in Node 0.11, creating `Persistent` versions of your `Handle<Function>` is annoyingly tricky. `NanCallback` makes it easier by taking your handle, making it persistent until the `NanCallback` is deleted and even providing a handy `Call()` method to fetch and execute the callback `Function`. | ||
@@ -735,3 +735,3 @@ ```c++ | ||
// an error argument: | ||
Local<Value> argv[] = { | ||
Handle<Value> argv[] = { | ||
Exception::Error(String::New("fail!")) | ||
@@ -742,4 +742,4 @@ }; | ||
// a success argument: | ||
Local<Value> argv[] = { | ||
Local<Value>::New(Null()), | ||
Handle<Value> argv[] = { | ||
Null(), | ||
String::New("w00t!") | ||
@@ -750,3 +750,7 @@ }; | ||
`NanCallback` also has a `Local<Function> GetCallback()` method that you can use to fetch a local handle to the underlying callback function if you need it. | ||
`NanCallback` also has a `Local<Function> GetCallback()` method that you can use | ||
to fetch a local handle to the underlying callback function, as well as a | ||
`void SetFunction(Handle<Function>)` for setting the callback on the | ||
`NanCallback`. Additionally a generic constructor is available for using | ||
`NanCallback` without performing heap allocations. | ||
@@ -812,2 +816,3 @@ <a name="api_nan_async_worker"></a> | ||
<tr><th align="left">Brett Lawson</th><td><a href="https://github.com/brett19">GitHub/brett19</a></td><td><a href="http://twitter.com/brett19x">Twitter/@brett19x</a></td></tr> | ||
<tr><th align="left">Ben Noordhuis</th><td><a href="https://github.com/bnoordhuis">GitHub/bnoordhuis</a></td><td><a href="http://twitter.com/bnoordhuis">Twitter/@bnoordhuis</a></td></tr> | ||
</tbody></table> | ||
@@ -814,0 +819,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78833
819