|
7 | 7 | - Refactored the node-oracledb implementation to use |
8 | 8 | [N-API](https://nodejs.org/api/n-api.html) in place of |
9 | 9 | [NAN](https://github.com/nodejs/nan). |
10 | | - - Node.js 8.16 or Node.js 10.16, or higher, is required by this version of node-oracledb. Node.js 8.16, 10.16, 11.12 and 12 contain an important N-API performance fix. |
| 10 | + - 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 | 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. |
12 | 12 | - Oracle Client libraries are still required at runtime. These can be from Oracle Instant Client, the full Oracle Client, or an Oracle Database installation. |
13 | | - - The string representation of classes has changed to `[Object Object]` as a consequence of using N-API. |
| 13 | + - The string representation of classes has changed to `[Object Object]` as a consequence of using N-API. Use `Object.getPrototypeOf()` to get class information. |
14 | 14 | - The C compiler required for building from source code no longer needs C++11 compatibility. The node-oracledb source code is now pure C. |
15 | 15 |
|
16 | | -- Added support for Oracle Advanced Queuing (AQ) RAW queues, allowing |
17 | | - String and Buffer messages to be used. |
| 16 | +- Oracle Advanced Queuing (AQ): |
18 | 17 |
|
19 | | -- Added support for getting the [registration |
20 | | - id](https://oracle.github.io/node-oracledb/doc/api.html#consubscribecallback) |
21 | | - for CQN subscriptions. |
| 18 | + - Added support for "RAW" queues, allowing String and Buffer |
| 19 | + messages to be used. |
22 | 20 |
|
23 | | -- Added support for AQ notifications with `oracledb.SUBSCR_NAMESPACE_AQ`. |
| 21 | + - Added support for notifications with `oracledb.SUBSCR_NAMESPACE_AQ`. |
24 | 22 |
|
25 | 23 | - Added support for Implicit Results, allowing query results to be |
26 | 24 | returned from PL/SQL without needing parameters or bind variables. |
27 | 25 |
|
28 | 26 | - Added |
29 | 27 | [`lob.getData()`](https://oracle.github.io/node-oracledb/doc/api.html#lobgetdata) |
30 | | - to return a LOBs data from a Lob instance. |
31 | | - |
32 | | -- Class methods are now configurable. For example via |
33 | | - `Object.defineProperty`. |
| 28 | + to return data from a Lob instance. |
34 | 29 |
|
35 | 30 | - Enhanced BIND_IN of PL/SQL Collection Associative Arrays (Index-by) |
36 | | - so a bind definition object can be omitted |
37 | | - [#1039](https://github.com/oracle/node-oracledb/issues/1039). |
| 31 | + so a bind definition object can be omitted (see |
| 32 | + [#1039](https://github.com/oracle/node-oracledb/issues/1039)). |
| 33 | + |
| 34 | +- Continuous Query Notification (CQN): |
| 35 | + |
| 36 | + - Added support for getting the [registration |
| 37 | + id](https://oracle.github.io/node-oracledb/doc/api.html#consubscribecallback) |
| 38 | + for CQN subscriptions. |
| 39 | + |
| 40 | + - Added support and message type constants for database startup |
| 41 | + and shutdown events. |
38 | 42 |
|
39 | | -- CQN support and message type constants were added for database |
40 | | - startup and shutdown events. |
| 43 | + - Fixed a crash that occurred when unsubscribing from CQN while |
| 44 | + notifications were ongoing ([ODPI-C |
| 45 | + change](https://github.com/oracle/odpi/commit/b96b11b7fe58f32f011c7f7419555e40268d5bf4)). |
41 | 46 |
|
42 | | -- Added a `connection.currentSchema` attribute for setting the schema |
43 | | - qualifier to be used when a qualifier is omitted in SQL statements. |
44 | | - This is an efficient alternative to `ALTER SESSION SET |
45 | | - CURRENT_SCHEMA`. |
| 47 | +- Added |
| 48 | + [`connection.currentSchema`](https://oracle.github.io/node-oracledb/doc/api.html#propconncurrentschema) |
| 49 | + for setting the schema qualifier to be used when a qualifier is |
| 50 | + omitted in SQL statements. This is an efficient alternative to |
| 51 | + `ALTER SESSION SET CURRENT_SCHEMA`. |
46 | 52 |
|
47 | 53 | - Renumbered [node-oracledb Type |
48 | 54 | Constants](https://oracle.github.io/node-oracledb/doc/api.html#oracledbconstantsnodbtype) |
|
58 | 64 |
|
59 | 65 | - Improved the performance of `oracledb.outFormat = oracledb.OUT_FORMAT_OBJECT`. |
60 | 66 |
|
61 | | -- Updated the JavaScript syntax in class implementations. |
62 | | - |
63 | | -- Fixed writing of multi-byte characters to CLOBs when multiple writes |
64 | | - are required. |
65 | | - |
66 | | -- Fixed a crash that occurred when unsubscribing from CQN while |
67 | | - notifications were ongoing ([ODPI-C change](https://github.com/oracle/odpi/commit/b96b11b7fe58f32f011c7f7419555e40268d5bf4)). |
| 67 | +- Improved the fetch performance of LOBs in some cases by reducing the |
| 68 | + number of round-trips required between node-oracledb and Oracle |
| 69 | + Database ([ODPI-C |
| 70 | + change](https://github.com/oracle/odpi/commit/58e6a07ff5bb428a09068456ef5231884fcb77db)). |
68 | 71 |
|
69 | | -- Fixed a crash occuring when draining the connection pool ([ODPI-C |
70 | | - change](https://github.com/oracle/odpi/commit/https://github.com/oracle/odpi/commit/7666dc3208087383f7f0f5e49c1ee423cb154997)) |
| 72 | +- Updated the JavaScript syntax in class implementations. |
71 | 73 |
|
72 | | -- Corrected `pool.status` to be read-only, as was documented. |
| 74 | +- Class methods are now configurable. For example via |
| 75 | + `Object.defineProperty`. |
73 | 76 |
|
74 | 77 | - Error handling changes: |
75 | 78 |
|
|
97 | 100 | using Oracle Client 18.5 or Oracle Client 19.3, or later. The |
98 | 101 | new node-oracledb 4.0 methods `sodaCollection.insertMany()` and |
99 | 102 | `sodaCollection.insertManyAndGet()` are in Preview status and |
100 | | - should not be used in production |
| 103 | + should not be used in production. |
101 | 104 |
|
102 | 105 | - Corrected the type of |
103 | 106 | [`sodaCollection.metaData`](https://oracle.github.io/node-oracledb/doc/api.html#sodacollectionpropmetadata). |
|
108 | 111 | - Corrected the error message parameter number for SODA |
109 | 112 | [`sodaDatabase.getCollectionNames()`](https://oracle.github.io/node-oracledb/doc/api.html#sodadbgetcollectionnames). |
110 | 113 |
|
| 114 | +- Fixed writing of multi-byte characters to CLOBs when multiple writes |
| 115 | + are required. |
| 116 | + |
| 117 | +- Fixed a crash occuring when draining the connection pool ([ODPI-C |
| 118 | + change](https://github.com/oracle/odpi/commit/https://github.com/oracle/odpi/commit/7666dc3208087383f7f0f5e49c1ee423cb154997)). |
| 119 | + |
| 120 | +- Corrected `pool.status` to be read-only, as was documented. |
| 121 | + |
111 | 122 | - Updated documentation. |
112 | 123 |
|
113 | 124 | - Added new tests. |
|
0 commit comments