Bump version to 4.0.0 production

This commit is contained in:
Christopher Jones 2019-07-17 14:43:56 +10:00
parent d0122e3b7f
commit c39587aca1
5 changed files with 7 additions and 13 deletions

View File

@ -1,8 +1,6 @@
# Change Log
## node-oracledb v4.0.0-dev (DD Mon YYYY)
**This release is under development**
## node-oracledb v4.0.0 (25 Jul 2019)
- Refactored the node-oracledb implementation to use
[N-API](https://nodejs.org/api/n-api.html) in place of

View File

@ -1,4 +1,4 @@
# node-oracledb 4.0.0-dev Documentation for the Oracle Database Node.js Add-on
# node-oracledb 4.0 Documentation for the Oracle Database Node.js Add-on
*Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.*

View File

@ -1,6 +1,6 @@
{
"name": "oracledb",
"version": "4.0.0-dev",
"version": "4.0.0",
"description": "A Node.js module for Oracle Database access",
"license": "Apache-2.0",
"homepage": "http://oracle.github.io/node-oracledb/",

View File

@ -38,11 +38,11 @@
// Keep the version in sync with package.json.
// The suffix should be something like "-dev" or "-beta.1".
// For production, leave NJS_NODE_ORACLEDB_SUFFIX undefined (not "")
// For production, use: #define NJS_NODE_ORACLEDB_SUFFIX ""
#define NJS_NODE_ORACLEDB_MAJOR 4
#define NJS_NODE_ORACLEDB_MINOR 0
#define NJS_NODE_ORACLEDB_PATCH 0
#define NJS_NODE_ORACLEDB_SUFFIX "-dev"
#define NJS_NODE_ORACLEDB_SUFFIX ""
// define stringified version and driver name
#define NJS_STR_HELPER(x) #x

View File

@ -1005,7 +1005,7 @@ static napi_value njsOracleDb_getVersionString(napi_env env,
napi_callback_info info)
{
return njsUtils_convertToString(env, NJS_VERSION_STRING,
strlen(NJS_VERSION_STRING));
sizeof(NJS_VERSION_STRING)-1);
}
@ -1016,12 +1016,8 @@ static napi_value njsOracleDb_getVersionString(napi_env env,
static napi_value njsOracleDb_getVersionSuffix(napi_env env,
napi_callback_info info)
{
#ifdef NJS_NODE_ORACLEDB_SUFFIX
return njsUtils_convertToString(env, NJS_NODE_ORACLEDB_SUFFIX,
strlen(NJS_NODE_ORACLEDB_SUFFIX));
#else
return NULL;
#endif
sizeof(NJS_NODE_ORACLEDB_SUFFIX)-1);
}