Comparing version 2.5.4 to 2.5.5
# Change Log | ||
## [2.5.5](https://github.com/mariadb-corporation/mariadb-connector-nodejs/tree/2.5.5) (19 Oct 2021) | ||
[Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-nodejs/compare/2.5.4...2.5.5) | ||
* [CONJS-170] Pool.query(undefined) never release connection | ||
* [CONJS-173] not permitting providing null as a value without an array | ||
* [CONJS-175] Missing leakDetectionTimeout option in Typescript description | ||
## [2.5.4](https://github.com/mariadb-corporation/mariadb-connector-nodejs/tree/2.5.4) (08 Jun 2021) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-nodejs/compare/2.5.3...2.5.4) |
@@ -25,3 +25,3 @@ 'use strict'; | ||
start(out, opts, info) { | ||
if (!this.initialValues) { | ||
if (this.initialValues === undefined) { | ||
//shortcut if no parameters | ||
@@ -28,0 +28,0 @@ out.startPacket(this); |
@@ -112,2 +112,3 @@ 'use strict'; | ||
module.exports.ER_MINIMUM_NODE_VERSION_REQUIRED = 45045; | ||
module.exports.ER_POOL_UNDEFINED_SQL = 45049; | ||
@@ -114,0 +115,0 @@ const keys = Object.keys(module.exports); |
@@ -210,2 +210,18 @@ 'use strict'; | ||
const addRequest = function (pool, sql, values, isBatch) { | ||
if (isBatch != undefined && !sql) { | ||
// request for query/batch without sql | ||
return Promise.reject( | ||
Errors.createError( | ||
'sql parameter is mandatory', | ||
null, | ||
false, | ||
null, | ||
'HY000', | ||
Errors.ER_POOL_UNDEFINED_SQL, | ||
undefined, | ||
false | ||
) | ||
); | ||
} | ||
if (closed) { | ||
@@ -212,0 +228,0 @@ return Promise.reject( |
{ | ||
"name": "mariadb", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"description": "fast mariadb/mysql connector.", | ||
@@ -5,0 +5,0 @@ "main": "promise.js", |
@@ -148,3 +148,3 @@ <p align="center"> | ||
[travis-image]:https://travis-ci.com/mariadb-corporation/mariadb-connector-nodejs.svg?branch=master | ||
[travis-url]:https://travis-ci.com/mariadb-corporation/mariadb-connector-nodejs | ||
[travis-url]:https://app.travis-ci.com/github/mariadb-corporation/mariadb-connector-nodejs | ||
[npm-image]:https://img.shields.io/npm/v/mariadb.svg | ||
@@ -151,0 +151,0 @@ [npm-url]:http://npmjs.org/package/mariadb |
@@ -380,2 +380,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
noControlAfterUse?: boolean; | ||
/** | ||
* Permit to indicate a timeout to log connection borrowed from pool. | ||
* When a connection is borrowed from pool and this timeout is reached, | ||
* a message will be logged to console indicating a possible connection leak. | ||
* Another message will tell if the possible logged leak has been released. | ||
* A value of 0 (default) meaning Leak detection is disable | ||
*/ | ||
leakDetectionTimeout?: number; | ||
} | ||
@@ -382,0 +391,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
533492
13973
2