oracledb 5.1.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +164 -2
  2. package/LICENSE.txt +443 -0
  3. package/NOTICE.txt +1 -0
  4. package/README.md +15 -13
  5. package/THIRD_PARTY_LICENSES.txt +52 -0
  6. package/build/Release/oracledb-5.4.0-darwin-x64.node +0 -0
  7. package/build/Release/oracledb-5.4.0-darwin-x64.node-buildinfo.txt +1 -0
  8. package/build/Release/oracledb-5.4.0-linux-x64.node +0 -0
  9. package/build/Release/oracledb-5.4.0-linux-x64.node-buildinfo.txt +1 -0
  10. package/build/Release/oracledb-5.4.0-win32-x64.node +0 -0
  11. package/build/Release/oracledb-5.4.0-win32-x64.node-buildinfo.txt +1 -0
  12. package/lib/aqDeqOptions.js +1 -1
  13. package/lib/aqEnqOptions.js +1 -1
  14. package/lib/aqMessage.js +1 -1
  15. package/lib/aqQueue.js +9 -5
  16. package/lib/connection.js +233 -33
  17. package/lib/dbObject.js +17 -17
  18. package/lib/lob.js +17 -5
  19. package/lib/oracledb.js +74 -11
  20. package/lib/pool.js +271 -163
  21. package/lib/poolStatistics.js +124 -0
  22. package/lib/queryStream.js +8 -6
  23. package/lib/resultset.js +37 -9
  24. package/lib/sodaCollection.js +46 -21
  25. package/lib/sodaDatabase.js +8 -4
  26. package/lib/sodaDocCursor.js +7 -3
  27. package/lib/sodaDocument.js +1 -1
  28. package/lib/sodaOperation.js +21 -9
  29. package/lib/util.js +80 -20
  30. package/package/README.md +8 -8
  31. package/package/install.js +8 -7
  32. package/package/prunebinaries.js +4 -5
  33. package/package.json +2 -2
  34. package/LICENSE.md +0 -2685
  35. package/build/Release/oracledb-5.1.0-darwin-x64.node +0 -0
  36. package/build/Release/oracledb-5.1.0-darwin-x64.node-buildinfo.txt +0 -1
  37. package/build/Release/oracledb-5.1.0-linux-x64.node +0 -0
  38. package/build/Release/oracledb-5.1.0-linux-x64.node-buildinfo.txt +0 -1
  39. package/build/Release/oracledb-5.1.0-win32-x64.node +0 -0
  40. package/build/Release/oracledb-5.1.0-win32-x64.node-buildinfo.txt +0 -1
package/package/README.md CHANGED
@@ -16,8 +16,8 @@ In a clone or copy of the repository:
16
16
 
17
17
  You can run `npm run buildbinary` on each operating system architecture that
18
18
  you want to include in your package. Copy the node-oracledb binaries and
19
- related build metadata information files to the `package/Staging` directory on
20
- one machine.
19
+ related build metadata information files from all `package/Staging`
20
+ directories to the `package/Staging` directory on one machine.
21
21
 
22
22
  - Run `npm run buildpackage`. This calls `buildpackage.js` to make the
23
23
  node-oracledb package containing the node-oracledb JavaScript files, the
@@ -28,22 +28,22 @@ In a clone or copy of the repository:
28
28
 
29
29
  # Package Installation
30
30
 
31
- - As part of an `npm install` that uses the created package, the `package.json`
31
+ - When running `npm install` with the created package, the `package.json`
32
32
  install script runs `install.js` to check the availability of a binary module
33
33
  for the current Node.js version and operating system architecture.
34
34
 
35
- If a suitable binary is not available, installation will fail. Users must
35
+ - If installation succeeds, space conscious users can then run `npm run prune`
36
+ which removes pre-built binaries for all other architectures.
37
+
38
+ - If `npm install` fails because a suitable binary is not available, users must
36
39
  then compile node-oracledb using source code from GitHub. Alternatively a
37
40
  different version of node-oracledb, Node.js, or different operating system may
38
41
  have a suitable pre-built binary available. See
39
42
  https://github.com/oracle/node-oracledb/releases for information about Node.js
40
43
  versions and pre-built node-oracledb binaries.
41
44
 
42
- - After install, space conscious users can run `npm run prune` which removes
43
- pre-built binaries for all other architectures.
44
-
45
45
  The
46
- [`package.json`](https://github.com/oracle/node-oracledb/blob/master/package.json)
46
+ [`package.json`](https://github.com/oracle/node-oracledb/blob/main/package.json)
47
47
  in GitHub doesn't have an `install` script target by default. This means that
48
48
  node-gyp will be invoked to compile node-oracledb. This allows installation
49
49
  from GitHub [source
@@ -1,4 +1,4 @@
1
- /* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. */
1
+ /* Copyright (c) 2017, 2022, Oracle and/or its affiliates. */
2
2
 
3
3
  /******************************************************************************
4
4
  *
@@ -76,7 +76,7 @@ function done(err) {
76
76
  }
77
77
 
78
78
  log('********************************************************************************');
79
- log('** Node-oracledb ' + nodbUtil.PACKAGE_JSON_VERSION + ' installed for Node.js ' + process.versions.node + ' (' + process.platform + ', ' + process.arch +')');
79
+ log('** Node-oracledb ' + nodbUtil.PACKAGE_JSON_VERSION + ' installed in Node.js ' + process.versions.node + ' (' + process.platform + ', ' + process.arch + ')');
80
80
  log('**');
81
81
  log('** To use node-oracledb:');
82
82
  log('** - Oracle Client libraries (' + arch + ') must be available.');
@@ -86,11 +86,12 @@ function done(err) {
86
86
  }
87
87
  }
88
88
 
89
- // Check for a usable binary file for the node-oracledb module.
90
- // Node.js 8.16 and 10.16 (and 12.0) contain an important N-API
91
- // performance regression fix. If you're using the obsolete Node.js 9
92
- // or 11 versions, install will work but you're on your own regarding
93
- // performance and functionality.
89
+ // Check for a usable binary file for the node-oracledb module. Node.js 8.16
90
+ // and 10.16 (and 12.0) contain an important Node-API performance regression fix.
91
+ // Note that the checked versions are the minimum required for Node-API
92
+ // compatibility; as new Node.js versions are released, older Node.js versions
93
+ // are dropped from the node-oracledb test plan. For example, the obsolete
94
+ // Node.js 9 and 11 versions are not tested.
94
95
 
95
96
  function checkAvailable(cb) {
96
97
  let vs = process.version.substring(1).split(".").map(Number);
@@ -1,4 +1,4 @@
1
- /* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. */
1
+ /* Copyright (c) 2019, 2022, Oracle and/or its affiliates. */
2
2
 
3
3
  /******************************************************************************
4
4
  *
@@ -19,13 +19,12 @@
19
19
  * prunebinaries.js
20
20
  *
21
21
  * DESCRIPTION
22
- * Removes pre-built binaries for all other Node.js releases and architectures.
23
- * It keeps only the binary for the current Node.js version and architecture.
22
+ * Removes pre-built binaries for all other architectures.
24
23
  * This can be used to reduce the footprint of a node-oracledb install.
25
24
  *
26
25
  * USAGE
27
26
  * Invoke this from the top level directory.
28
- * After an 'npm install oracledb' installs pre-built binaries it
27
+ * After an 'npm install oracledb' installs pre-built binaries, this file
29
28
  * can be run with 'npm run prune'.
30
29
  *
31
30
  *****************************************************************************/
@@ -46,6 +45,6 @@ try {
46
45
  fs.unlinkSync(dir + '/' + f[i]);
47
46
  }
48
47
  }
49
- } catch(err) {
48
+ } catch (err) {
50
49
  console.error(err.message);
51
50
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oracledb",
3
- "version": "5.1.0",
4
- "description": "A Node.js module for Oracle Database access",
3
+ "version": "5.4.0",
4
+ "description": "A Node.js module for Oracle Database access from JavaScript and TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://oracle.github.io/node-oracledb/",
7
7
  "keywords": [