Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mariadb

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mariadb - npm Package Versions

1245

2.5.2

Diff

Changelog

Source

2.5.2 (04 Dec 2020)

Full Changelog

  • [CONJS-151] bulk batch error (parameter truncation) #137
  • [CONJS-152] correction when enabling the permitLocalInfile option and some initial commands
  • [CONJS-154] Timezone support correction and clarification
  • [CONJS-155] correction to support for node.js 10.13 to 10.19
  • [CONJS-156] Ensure setting capability PLUGIN_AUTH only if server has it

documentation improvement

rusher
published 2.5.1 •

Changelog

Source

2.5.1 (23 Oct 2020)

Full Changelog

  • CONJS-149 - [CONJS-149] correcting possible TypeError [ERR_UNKNOWN_ENCODING], Node v15 compatibility
rusher
published 2.5.0 •

Changelog

Source

2.5.0 (15 Oct 2020)

Full Changelog

  • CONJS-148 - permit setting socket keep alive (option keepAliveDelay)

  • CONJS-145 - batch rewrite error when packet reach maxAllowedPacket

  • CONJS-146 - Using callback API, batch, avoid return error if connection not established

  • CONJS-144 - TypeScript type ssl wrong definitions

  • CONJS-143 - Array parameter escaping differ from mysql/mysql2

  • CONJS-133 - Support ES2020 BigInt object (option supportBigInt)

  • CONJS-77 - Support MySQL caching_sha256_password authentication

  • CONJS-76 - Support MySQL sha256_password authentication

New Options

|option|description|type|default| |---:|---|:---:|:---:| | arrayParenthesis | Indicate if array are included in parenthesis. This option permit compatibility with version < 2.5|boolean | false | | rsaPublicKey | Indicate path/content to MySQL server RSA public key. use requires Node.js v11.6+ |string | | | cachingRsaPublicKey | Indicate path/content to MySQL server caching RSA public key. use requires Node.js v11.6+ |string | | | allowPublicKeyRetrieval | Indicate that if rsaPublicKey or cachingRsaPublicKey public key are not provided, if client can ask server to send public key. |boolean | false | | supportBigInt | Whether resultset should return javascript ES2020 BigInt for BIGINT data type. This ensures having expected value even for value > 2^53 (see safe range). |boolean | false | | keepAliveDelay | permit to enable socket keep alive, setting delay. 0 means not enabled. Keep in mind that this don't reset server @@wait_timeout (use pool option idleTimeout for that). in ms |int | |

CONJS-143 is a breaking change. Queries that have a IN parameter with array parameters format change. previous format did not accept parenthesis :

conn.query('SELECT * FROM arrayParam WHERE id = ? AND val IN ?', [1, ['b', 'c']]);

now, format is

conn.query('SELECT * FROM arrayParam WHERE id = ? AND val IN (?)', [1, ['b', 'c']]);

same than mysql/mysql2 drivers. previous behaviour can be reverted setting option arrayParenthesis to true.

rusher
published 2.4.2 •

Changelog

Source

2.4.2 (23 Jul 2020)

Full Changelog

  • CONJS-142 - Number parsing loss of precision
rusher
published 2.4.1 •

Changelog

Source

2.4.1 (01 Jul 2020)

Full Changelog

  • CONJS-138 - pool.getConnection() might not timeout even with acquireTimeout set
  • CONJS-139 - createConnection(string)` does not support URL-encoded credentials
  • CONJS-140 - Support passing null values in array when doing queries. thanks to @koendeschacht
  • CONJS-141 - set default value of option restoreNodeTimeout to 1000 to avoid using blacklisted pool in cluster
rusher
published 2.4.0 •

Changelog

Source

2.4.0 (24 May 2020)

Full Changelog

This version remove compatibility with Node.js 6, needing 10+ version !

  • CONJS-86 - Support extension type format
  • CONJS-128 - Error when using multipleStatements with metaAsArray
  • CONJS-129 - Support 10.5 pluggable type
  • CONJS-131 - checkDuplicate option is indicated in error when having dupplicate
  • CONJS-132 - performance improvement
  • CONJS-136 - typescript SqlError interface
rusher
published 2.3.1 •

Changelog

Source

2.3.1 (19 Mar. 2020)

Full Changelog

Corrective release of 2.3.0, changing new connection option timeout to queryTimeout to avoid any confusion.

rusher
published 2.3.0 •

Changelog

Source

2.3.0 (19 Mar. 2020)

Full Changelog

  • CONJS-127 - Resultset with same identifier skip data. Now an error will be thrown.
  • CONJS-126 - permit setting session query timeout per option
  • CONJS-124 - Force connection.escapeId to emit backtick #101
  • CONJS-123 - exporting SqlError class to permit instanceOf checks #100
  • CONJS-122 - fix undefined localTz with timezone: 'Z' issue #92
  • CONJS-121 - Connection.escapeId must always quote value to permit reserved words

misc:

  • appveyor testing server version upgrade
  • better debug logging trace format
  • correct ssl test
rusher
published 2.2.0 •

Changelog

Source

2.2.0 (03 Feb. 2020)

Full Changelog

CONJS-119 Add an option to detect Server version using a dedicated SELECT @@version
Azure is using a proxy that will return a MySQL handshake not reflecting real server.
A new option `forceVersionCheck` is added to permit issuing a new `SELECT @@Version` command on connection creation, 
to retrieve the correct server version. Connector will then act according to that server version.
CONJS-20 add query timeout implementation
This option is only permitted for MariaDB server >= 10.1.2, and permits to set a timeout to query operation. 
Driver internally use `SET STATEMENT max_statement_time=<timeout> FOR <command>` permitting to cancel operation when timeout is reached, 

Implementation of max_statement_time is engine dependent, so there might be some differences: For example, with Galera engine, a commits will ensure replication to other nodes to be done, possibly then exceeded timeout, to ensure proper server state.
 
CONJS-110 fast-authentication improvement:
  * add mysql_native_password to fast-authentication path
  * plugin 'mysql_native_password' is used by default if default server plugin is unknown
  * unexpected packet type during handshake result will throw a good error.
  
CONJS-117 Implement a pool leak detection
A new option `leakDetection` permits 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   
Additionally, some error messages have improved:
- Connection timeout now indicate that this correspond to socket failing to establish
- differentiate timeout error when closing pool to standard connection retrieving timeout

misc:

  • CONJS-120 Permit values in SQL object to permits compatibility with mysql/mysql2
  • CONJS-118 missing import for Error when asking for connection when pool is closed. Thanks to @WayneMDB
  • correcting typescript import of @types/node to version >8 thanks to @SimonSchick
  • dependencies update
rusher
published 2.1.5 •

Changelog

Source

2.1.5 (07 Jan. 2020)

Full Changelog

  • CONJS-115 Batch improvement
    • supporting array of parameters if only one parameter per query, not only array of array
    • supporting empty array for query without parameters
  • correction on licence tag: LGPL-2.1-or-later (was tag LGPL-2.1+ that is deprecated)
  • dependencies update
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc