Releases: nwoltman/node-mysql-plus
Releases · nwoltman/node-mysql-plus
0.10.1
0.10.0
Possibly Breaking Changes
- feat: When new columns are added during migrations, add them in the same position that they are defined in the
columns
object (beddf36
)- Only breaking if you directly test the result of
SHOW CREATE TABLE
after migrations
- Only breaking if you directly test the result of
- PoolPlus: Make
.defineTable()
throw aTypeError
(instead ofError
) if name is not a string (b6489fe
)- Mostly likely won't break anything
New Features
- PoolPlus: Add
.basicTable()
method that just creates aMySQLTable
instance (2ca6e43
)
0.9.0
0.8.0
Possibly Breaking Changes
- MySQLTable: Simplify parsing arguments to
.insert()
and.update()
(725cdfa
)- Should not be a breaking change if you don't pass strings or numbers as the
values
parameter and you don't useundefined
ornull
to fill in unused arguments (i.e..insert({data}, undefined, undefined, callback)
)
- Should not be a breaking change if you don't pass strings or numbers as the
New Features
- MySQLTable: Implement new
.insertIfNotExists()
method (1791688
) - MySQLTable: Allow
.insert()
to accept a string as the first parameter (f4c9d92
) - docs: Show generated SQL in MySQLTable query examples (
785d853
)
Bug Fixes
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
Breaking Changes
- lib: Require the
migrationStrategy
andallowAlterInProduction
options to be under aplusOptions
config property (744e492
) - lib: Remove the deprecated
Type
namespace (3226971
) - MySQLTable: Remove the deprecated
tableName
instance property (db99fbf
) - MySQLTable: Remove the deprecated
.insertIgnore()
and.replace()
methods (14aca60
) - ColumnDefinition: Remove deprecated
.defaultRaw()
method (709c6f8
) - ColumnDefinition: Remove deprecated handling of
.default('CURRENT_TIMESTAMP')
(ca1ace4
)
New Features
- lib: Add
debug
config option (baf89ee
)
Bug Fixes
- lib: Prevent error when changing columns or keys with foreign keys (
d43235a
)
0.5.0
Deprecations
- ColumnDefinition: Deprecate
.defaultRaw()
(ee10a0c
)- Use
.defaultCurrentTimestamp()
instead when needed
- Use
- lib: Update deprecation warnings to say things will be removed in 0.6.0 (instead of 0.5.0) (
3273395
)
New features
- UpdatableTimeColumnDefinition: Add
.defaultCurrentTimestamp()
method (949d72f
)