@todesktop/nan
Advanced tools
Comparing version 2.17.0 to 2.23.0
# NAN ChangeLog | ||
**Version 2.16.0: current Node 18.2.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
**Version 2.22.0: current Node 22.9.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
### 2.22.0 Oct 11 2024 | ||
- Feature: replace SetAccessor -> SetNativeDataProperty (#977) 6bd62c9a0004339d5d1e18a945c84929d0f6b808 | ||
### 2.21.0 Oct 10 2024 | ||
- Feature: Support for node version 20.17.0 (#976) a7df36eda8a7fe8581c00a18590f5e4faafca7ae | ||
### 2.20.0 Jun 12 2024 | ||
- Feature: fix removal of v8::CopyablePersistent (#970) 5805ca5c4c2eef9a65316b68741e29f4825c511f | ||
### 2.19.0 Mar 6 2024 | ||
- Feature: Fix builds for Electron 29 (#966) 1b630ddb3412cde35b64513662b440f9fd71e1ff | ||
### 2.18.0 Sep 12 2023 | ||
- Feature: Cast v8::Object::GetInternalField() return value to v8::Value (#956) bdfee1788239f735b67fe6b46b1439da755e9b62 | ||
### 2.17.0 Oct 10 2022 | ||
- Feature: overload deprecated AccessorSignatures (#943) 7f9ceb80fbc45c9ba1a10e6591ccbef9e8dee6b4 | ||
### 2.16.0 May 25 2022 | ||
@@ -6,0 +30,0 @@ |
@@ -7,3 +7,3 @@ ## Errors | ||
Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information. | ||
Also consult the V8 Embedders Guide section on [Exceptions](https://v8.dev/docs/embed#exceptions) for more information. | ||
@@ -10,0 +10,0 @@ - <a href="#api_nan_error"><b><code>Nan::Error()</code></b></a> |
@@ -213,3 +213,3 @@ ## JavaScript-accessible methods | ||
Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors). | ||
Also see the V8 Embedders Guide documentation on [Accessors](https://v8.dev/docs/embed#accessors). | ||
@@ -241,3 +241,3 @@ <a name="api_nan_setter"></a> | ||
Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors). | ||
Also see the V8 Embedders Guide documentation on [Accessors](https://v8.dev/docs/embed#accessors). | ||
@@ -267,3 +267,3 @@ <a name="api_nan_property_getter"></a> | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -293,3 +293,3 @@ <a name="api_nan_property_setter"></a> | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -315,3 +315,3 @@ <a name="api_nan_property_enumerator"></a> | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -339,3 +339,3 @@ <a name="api_nan_property_deleter"></a> | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -363,3 +363,3 @@ <a name="api_nan_property_query"></a> | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on named property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -386,3 +386,3 @@ <a name="api_nan_index_getter"></a> | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -412,3 +412,3 @@ <a name="api_nan_index_setter"></a> | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -434,3 +434,3 @@ <a name="api_nan_index_enumerator"></a> | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -457,3 +457,3 @@ <a name="api_nan_index_deleter"></a> | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -480,3 +480,3 @@ <a name="api_nan_index_query"></a> | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). | ||
Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://v8.dev/docs/embed#interceptors). | ||
@@ -523,3 +523,4 @@ <a name="api_nan_set_method"></a> | ||
```c++ | ||
void SetAccessor(v8::Local<v8::ObjectTemplate> tpl, | ||
// The signature parameter was deprecated in Node 16 and subsequently removed | ||
NAN_DEPRECATED void SetAccessor(v8::Local<v8::ObjectTemplate> tpl, | ||
v8::Local<v8::String> name, | ||
@@ -532,2 +533,9 @@ Nan::GetterCallback getter, | ||
imp::Sig signature = imp::Sig()); | ||
void SetAccessor(v8::Local<v8::ObjectTemplate> tpl, | ||
v8::Local<v8::String> name, | ||
Nan::GetterCallback getter, | ||
Nan::SetterCallback setter = 0, | ||
v8::Local<v8::Value> data = v8::Local<v8::Value>(), | ||
v8::AccessControl settings = v8::DEFAULT, | ||
v8::PropertyAttribute attribute = v8::None); | ||
bool SetAccessor(v8::Local<v8::Object> obj, | ||
@@ -534,0 +542,0 @@ v8::Local<v8::String> name, |
@@ -15,3 +15,3 @@ ## Persistent references | ||
Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles). | ||
Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://v8.dev/docs/embed#handles-and-garbage-collection). | ||
@@ -18,0 +18,0 @@ <a name="api_nan_persistent_base"></a> |
@@ -14,3 +14,3 @@ ## V8 internals | ||
- <a href="#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a> | ||
- <a href="#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a> | ||
- <a href="#api_nan_idle_notification"><del><b><code>Nan::IdleNotification()</code></b></del></a> | ||
- <a href="#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a> | ||
@@ -132,3 +132,3 @@ - <a href="#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a> | ||
<a name="api_nan_idle_notification"></a> | ||
### Nan::IdleNotification() | ||
### <del>Nan::IdleNotification()</del> | ||
@@ -138,6 +138,6 @@ Signature: | ||
```c++ | ||
bool Nan::IdleNotification(int idle_time_in_ms) | ||
NAN_DEPRECATED bool Nan::IdleNotification(int idle_time_in_ms) | ||
``` | ||
Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version. | ||
Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version. Removed in V8 12.7.41. | ||
@@ -144,0 +144,0 @@ <a name="api_nan_low_memory_notification"></a> |
{ | ||
"name": "@todesktop/nan", | ||
"version": "2.17.0", | ||
"description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 18 compatibility", | ||
"version": "2.23.0", | ||
"description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 23 compatibility", | ||
"main": "include_dirs.js", | ||
@@ -13,3 +13,4 @@ "repository": { | ||
"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", | ||
"rebuild-tests-2015": "node-gyp rebuild --msvs_version=2015 --directory test", | ||
"rebuild-tests": "node-gyp rebuild --directory test", | ||
"docs": "doc/.build.sh" | ||
@@ -16,0 +17,0 @@ }, |
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, 9, 10, 11, 12, 13, 14, 15, 16, 17 and 18.** | ||
**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, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 and 23.** | ||
***Current version: 2.16.0*** | ||
***Current version: 2.22.0*** | ||
@@ -140,3 +140,3 @@ *(See [CHANGELOG.md](https://github.com/nodejs/nan/blob/master/CHANGELOG.md) for complete ChangeLog)* | ||
Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles). | ||
Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://v8.dev/docs/embed#handles-and-garbage-collection). | ||
@@ -231,3 +231,3 @@ ### New | ||
Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information. | ||
Also consult the V8 Embedders Guide section on [Exceptions](https://v8.dev/docs/embed#exceptions) for more information. | ||
@@ -302,3 +302,3 @@ - <a href="doc/errors.md#api_nan_error"><b><code>Nan::Error()</code></b></a> | ||
- <a href="doc/v8_internals.md#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a> | ||
- <a href="doc/v8_internals.md#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a> | ||
- <a href="doc/v8_internals.md#api_nan_idle_notification"><del><b><code>Nan::IdleNotification()</code></b></del></a> | ||
- <a href="doc/v8_internals.md#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a> | ||
@@ -305,0 +305,0 @@ - <a href="doc/v8_internals.md#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a> |
@@ -186,3 +186,3 @@ #!/usr/bin/env node | ||
/* create the master RegExp, whis is the union of all the groups' expressions */ | ||
/* create the master RegExp, which is the union of all the groups' expressions */ | ||
master = new RegExp(groups.map(function (a) { return a[1]; }).join('|'), 'gm'); | ||
@@ -189,0 +189,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
Sorry, the diff of this file is not supported yet
442215
48