@@ -29,3 +29,3 @@ # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
| - node-version: lts/* | ||
| os: macos-13 # macOS on Intel | ||
| os: macos-15-intel # macOS on Intel | ||
| - node-version: lts/* | ||
@@ -32,0 +32,0 @@ os: macos-latest # macOS on arm64 |
+4
-1
| # NAN ChangeLog | ||
| **Version 2.23.1: current Node 25.1.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
| **Version 2.24.0: current Node 25.2.1, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1** | ||
| ### 2.24.0 Dec 03 2025 | ||
| - Feature: Adding new Nan::TryEncode() wrapper for node::TryEncode() (#1005) fd5ff3f5ab3f5bb6bb6dd2d247f3eccd79227854 | ||
| ### 2.23.1 Nov 05 2025 | ||
@@ -6,0 +9,0 @@ - Feature: Adding WriteUtf8V2() and SetPrototypeV2() methods to support v8 14.3 (#1004) 9e1106ab7b7036d262df7f430eee3bff33757e9a |
+19
-0
@@ -7,2 +7,3 @@ ## Strings & Bytes | ||
| - <a href="#api_nan_encode"><b><code>Nan::Encode()</code></b></a> | ||
| - <a href="#api_nan_try_encode"><b><code>Nan::TryEncode()</code></b></a> | ||
| - <a href="#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a> | ||
@@ -29,2 +30,4 @@ - <a href="#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a> | ||
| **Note** `node::Encode()` was deprecated in Node 24 but will remain to maintain backwards compatibility. For Node 24 and higher consider using [`Nan::TryEncode()`](#api_nan_try_encode). | ||
| Signature: | ||
@@ -39,2 +42,18 @@ | ||
| <a name="api_nan_try_encode"></a> | ||
| ### Nan::TryEncode() | ||
| A wrapper around `node::TryEncode()` that provides a consistent implementation across supported versions of Node. | ||
| **Note** Only available in Node 24 and higher. For earlier versions use [`Nan::Encode()`](#api_nan_encode). | ||
| Signature: | ||
| ```c++ | ||
| Nan::MaybeLocal<v8::Value> Nan::TryEncode(const void *buf, | ||
| size_t len, | ||
| enum Nan::Encoding encoding = BINARY); | ||
| ``` | ||
| <a name="api_nan_decode_bytes"></a> | ||
@@ -41,0 +60,0 @@ ### Nan::DecodeBytes() |
+1
-1
| { | ||
| "name": "nan", | ||
| "version": "2.23.1", | ||
| "version": "2.24.0", | ||
| "description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 25 compatibility", | ||
@@ -5,0 +5,0 @@ "main": "include_dirs.js", |
+2
-1
@@ -6,3 +6,3 @@ Native Abstractions for Node.js | ||
| ***Current version: 2.23.1*** | ||
| ***Current version: 2.24.0*** | ||
@@ -276,2 +276,3 @@ *(See [CHANGELOG.md](https://github.com/nodejs/nan/blob/master/CHANGELOG.md) for complete ChangeLog)* | ||
| - <a href="doc/string_bytes.md#api_nan_encode"><b><code>Nan::Encode()</code></b></a> | ||
| - <a href="doc/string_bytes.md#api_nan_try_encode"><b><code>Nan::TryEncode()</code></b></a> | ||
| - <a href="doc/string_bytes.md#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a> | ||
@@ -278,0 +279,0 @@ - <a href="doc/string_bytes.md#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a> |
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
448559
0.42%457
0.22%