Releases: nwoltman/node-mysql-plus
Releases · nwoltman/node-mysql-plus
0.4.1
0.4.0
Deprecations
- lib: Deprecate the
Type
namespace in favour of the newColTypes
namespace (56f56e1
) - MySQLTable: Deprecate
tableName
property in favour of newname
property (1916ddc
) - MySQLTable: Deprecate the
.insertIgnore()
and.replace()
methods (9613737
) - ColumnDefinition: Deprecate usage of
.default('CURRENT_TIMESTAMP')
(4dec938
)- Use the
.defaultRaw()
method instead
- Use the
New features and other changes
- deps: Bump minimum mysql and lodash versions to most recent (
c29c9d6
) - MySQLTable: Add the
.transacting()
method (8c4905e
) - PoolPlus: Use a transaction when syncing defined tables (
2f75c04
) - PoolPlus: Implement a
.transaction()
method (ee352a1
) - MySQLTable: Make methods return a promise if the callback is omitted (
f7cf915
) - Connection: Extend with the
.pquery()
method (6db49f9
) - PoolPlus: Add
.pquery()
method (08e7ee8
) - ColumnDefinition: Add
.oldName()
method (1e78383
) - ColumnDefinition: Add
.defaultRaw()
method (4dec938
) - test: Fix COMPRESSION table option and add tests+coverage (
78cb795
) - ci: Test on Node.js v7 (
5d67ba4
) - ci: Test with MySQL 5.7 (
5f42b10
) - lib: Prevent unnecessary ALTER TABLE operation when the collation is unchanged (
b5ae554
)
0.3.0
Breaking Changes
- MySQLTable: No longer escapes the first argument to
.select()
if it is a string (025a584) - MySQLTable: Fix escaping bug in
.insert()
and.update()
(a271b9d)- This fix required the signature to
.update()
to be changed. Now thedata
argument is optional(ish) and can only be an object.
- This fix required the signature to
- doc: Require all instances of the
values
argument inMySQLTable
to be an Array (7cc7699)- Technically only a documentation change, but officially non-array values for the
values
argument are no longer supported and their use may cause undefined behaviour
- Technically only a documentation change, but officially non-array values for the