Skip to content

Releases: nwoltman/node-mysql-plus

0.4.1

31 Dec 22:33
Compare
Choose a tag to compare

Bug Fixes

  • TableDefinition: Use defaultRaw() over default() when appropriate (4d0ed0f)

0.4.0

10 Dec 05:53
Compare
Choose a tag to compare

Deprecations

  • lib: Deprecate the Type namespace in favour of the new ColTypes namespace (56f56e1)
  • MySQLTable: Deprecate tableName property in favour of new name property (1916ddc)
  • MySQLTable: Deprecate the .insertIgnore() and .replace() methods (9613737)
  • ColumnDefinition: Deprecate usage of .default('CURRENT_TIMESTAMP') (4dec938)

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

28 May 06:06
Compare
Choose a tag to compare

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 the data argument is optional(ish) and can only be an object.
  • doc: Require all instances of the values argument in MySQLTable 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

Other Changes

  • MySQLTable: Modify .insert() to allow for bulk inserts (72c5e59)
  • doc: Remove unnecessary notes about escaping user input (9fe3a2c)
  • doc: Fix typo in MySQLTable.insertIgnore() example (e5328ff)
  • MySQLTable: Fix argument handling bug in .update() (362ed2b)

0.2.0

27 May 22:04
Compare
Choose a tag to compare
  • Require the m argument for varchar and varbinary Types (0564137)
    • varchar and varbinary will now throw an error if the m argument is not provided

0.1.4

27 May 22:02
Compare
Choose a tag to compare
  • Prevent unnecessary charset and collation migrations (86cbd4d)

0.1.3

07 May 04:12
Compare
Choose a tag to compare
  • Test on Node v6 (4c482f6)
  • Documentation improvements and miscellaneous non-code fixes

0.1.2

26 Feb 10:27
Compare
Choose a tag to compare
  • docs: Fix asterisk formatting (58abb89)
  • docs: Fix links and formatting (95a9a13)

0.1.0

26 Feb 10:26
Compare
Choose a tag to compare

Initial release