Skip to content

Releases: cyjake/leoric

v1.11.1

28 Sep 09:54
Compare
Choose a tag to compare

This version fixes lots of issues regarding logical operator in object conditions, such as:

Post.where({
  $or: [
    { title: { $like: '%Cain%' }, authorId: 1 },
    { title: { $in: [ 's1', '21' ] }, authorId: 2 },
  ]
});

What's Changed

  • fix: normalize logical operator conditions before formatting by @cyjake in #186
  • fix: support len validator by @JimmyDaddy in #188
  • fix: sequelize mode support HAVING, and select fields raw sql support by @JimmyDaddy in #187
  • fix: logical operator with multiple conditions such as by @cyjake in #190

Full Changelog: v1.11.0...v1.11.1

v1.11.0

24 Sep 09:50
Compare
Choose a tag to compare
  • feat: support BINARY(length), VARBINARY(length), and BLOB (#169)
  • fix: logic operate should adapt one argument (#183)
  • fix: Bone.load() should be idempotent, make sure associations is intact (#184)
  • fix: selected instance isNewRecord is false (#182)
  • fix: set options.busyTimeout to mitigate SQLITE_BUSY (#176)
  • fix: turn on long stack trace of sqlite driver (#175)
  • docs: how to contribute (#180)

v1.10.0

14 Sep 02:52
Compare
Choose a tag to compare
  • feat: SQLite driver should emit "connection" event when new connection is created (#168)
  • fix: bulkCreate(...records) should recognize custom setters (#168)
  • fix: attribute.equals() check should ignore defaultValue (#172)

v1.9.0

04 Sep 14:13
Compare
Choose a tag to compare
  • breaking: drop the deprecated Model.describe() since existing users have all migrated to Model.initialize() (#167)

v1.8.0

30 Aug 13:18
Compare
Choose a tag to compare
  • feat: silent option fix #164 (#165)
  • feat: binary type (#166)

v1.7.1

17 Aug 12:33
Compare
Choose a tag to compare
  • revert: drop Driver#recycleConnections due to poor interoperability (#162)
  • fix: validator call array arguments (#160)

v1.7.0

17 Aug 05:54
Compare
Choose a tag to compare

1.7.0 / 2021-08-17

  • feat: close connections that exceeds opts.idleTimeout (#159)
  • feat: raw query relpacements, closes #149 (#155)
  • fix: upsert created_at default (#154)
  • test: validator unit test (#157)
  • test: setup_hooks unit test (#158)

v1.6.7

05 Aug 11:57
Compare
Choose a tag to compare
  • fix: prevent from calling Date.prototype.toJSON (#153)

v1.6.6

22 Jul 01:49
Compare
Choose a tag to compare
  • fix: subclassing data type in dialects (#145)
  • fix: where('width / height >= 16 / 9') (#144)
  • docs: logging and sequelzie adapter (zh) (#142)
  • test: include test/unit/utils (#143)
  • test: more tests cases about sequelize adapter (#141)

v1.6.5

16 Jul 10:07
Compare
Choose a tag to compare
  • fix: define assign Bone.models #140