Skip to content

Commit 3d01315

Browse files
committed
Bump N-API version to 4
1 parent 89b5746 commit 3d01315

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[N-API](https://nodejs.org/api/n-api.html) in place of
99
[NAN](https://github.com/nodejs/nan).
1010
- Node-oracledb 4 requires Node.js 8.16 or Node.js 10.16, or higher. Node.js 8.16, 10.16, 11.12 and 12 contain an important N-API performance fix.
11-
- N-API allows node-oracledb binaries to be portable between Node.js versions on a given operating system, subject to N-API compatibility. Node-oracledb uses N-API version 2.
11+
- N-API allows node-oracledb binaries to be portable between Node.js versions on a given operating system, subject to N-API compatibility. Node-oracledb uses N-API version 4.
1212
- Oracle Client libraries are still required at runtime. These can be from Oracle Instant Client, the full Oracle Client, or an Oracle Database installation.
1313
- The string representation of classes has changed to `[Object Object]` as a consequence of using N-API. Use `Object.getPrototypeOf()` to get class information.
1414
- The C compiler required for building from source code no longer needs C++11 compatibility. The node-oracledb source code is now pure C.

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ guaranteed to be available or usable in your environment.
7171

7272
#### <a name="mig40"></a> 1.1 Installation Changes in node-oracledb version 4.0
7373

74-
Node-oracledb 4.0 was refactored to use [N-API][53] version 2. On
74+
Node-oracledb 4.0 was refactored to use [N-API][53] version 4. On
7575
each operating system, a node-oracledb binary will work with a number
7676
of Node.js versions from Node.js 8.16 and Node.js 10.16 onward,
7777
dependent on N-API compatibility. This means that when upgrading

src/njsModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef __NJSMODULE_H__
2727
#define __NJSMODULE_H__
2828

29-
#define NAPI_VERSION 2
29+
#define NAPI_VERSION 4
3030

3131
#include <node_api.h>
3232
#include <stdarg.h>

0 commit comments

Comments
 (0)