Releases: Okanjo/okanjo-app-mysql
Releases · Okanjo/okanjo-app-mysql
v5.0.1
v5.0.0
- MySQL 5.7 not supported using MySQL's driver
- Port numbers must be numeric values
- getAffectedRowsCount is now getAffectedItemsCount
- MariaDB returns BigInt for count fields
- MySQLService.js:
- query.getRawStatement is now query.getSQL
- column.getColumnLabel is now a thing, and needs to be used in conjunction with column.getColumnName
- column.type is now column.getType(), and returns a string enum instead of numeric mysql binary types
- Updated all dependencies to latest
v4.3.0
Added debug module for query level diagnostics on MySQL and MariaDB services
v4.2.0
Added support for MariaDB!
- Added MariaDBService, MariaDBCrudService classes
- Added tests for new services
- Added example-mariadb-app to docs
- Fixed typos in other example docs
- Updated travis build spec
- Updated docs
v4.1.0
- Fixed both crud services not using the correct default service schema
- Added constructor validation of required options to both crud services
- Updated docs
v4.0.0
Adds new CollectionCrudService!
Breaking Changes
- CrudService:
- Renamed
service.databasetoservice.schemafor consistency - Removed
_prefix from crud service functions
- Renamed
Other Changes
- Added new CollectionCrudService for working with MySQL document collections.
- Added
init()system to CrudService - Added two example applications, demonstrating usage of the CrudService and CollectionCrudService
- Added new unit tests for CollectionCrudService
- Updated unit tests file names to match their respective components
- Added dependency on base-id, for ID generation support (e.g. MySQL 5.7)
- Updated travis build to test both MySQL 5.7 and MySQL 8
- Added
cover_nocleanpackage script to prevent nyc from clearing coverage files (to combine results from unit test runs against 5.7 and 8) - Updated docs
v3.0.0
Breaking Changes:
- Node v10+ only (unless you polyfill Promise.prototype.finally support yourself)
- Changed MySQL driver from mysqljs/mysql to mysql/mysql-connector-nodejs
- MySQLService:
*configargument has changed. See README.md for options.
*poolproperty has been removed. A new propertyclientbasically replaces the pool.
*querysignature has changed from (query, options, callback) to (sql, args, callback, options)
*wrapQueryhas been removed
*getConnectionhas been replaced withgetSession - CrudService:
*connectionoption in crud methods has been replaced withsession.
*CrudService.MAX_VALUEconstant class has been replaced with a simple string version.
Other Changes:
- Updated example app to work with v3 and demonstrated fields too
- Tests: Updated tests to validate v3 changes
- Updated dependencies and configurations
- Updated docs
- Updated travis-ci build to test both MySQL 5.7 and MySQL 8
v2.0.0
Breaking Changes:
- MySQLService:
*querycallback now returns a single parameterresponseobject with properties:resultsandfieldsfor compatibility with promises - CrudService:
*_createarguments have changed todata, options, callback,suppressCollisionErrorhas moved intooptions
*_createWithRetryarguments have changed todata, objectClosure, options, callback(recursiveattempthas been removed)
* All crud methods return a Promise for async compatibility. Callback is an optional param. Fields have been removed as a response argument.
*_updateis now an async function
Other Changes:
- Updated example app to work with v2 and demonstrated fields too
- Tests: Updated tests to validate v2 changes
- Updated dependencies and configurations
- Updated docs
- Removed yarn
v1.2.0
- Added
optionsto crud functions that did not previously have them - Added: All crud functions will use
options.connectionto execute queries if given (supports transactions)
v1.1.0
- Added CrudService for MySQL that works just like our MongoService/CrudService
- MySQLService#query now returns the underlying query object