Skip to content

Releases: cyjake/leoric

v1.13.5

26 Oct 08:34
Compare
Choose a tag to compare

What's Changed

  • docs: enhance aggregation query types & fix raw query result type by @cyjake in #208

Full Changelog: v1.13.4...v1.13.5

v1.13.4

26 Oct 03:37
Compare
Choose a tag to compare

What's Changed

  • docs: spell & model methods should be generic by @cyjake in #206
  • docs: enhance query options, instance type, and toJSON() result type by @cyjake in #207

This version brings correct (and hopefully better) typescript definitions, with the dts checked continuously at test/types tests. With this version, users that have model types correctly pinned at Bone will get code completion including class fields. Such as:

image

Full Changelog: v1.13.3...v1.13.4

v1.13.3

21 Oct 01:25
Compare
Choose a tag to compare

What's Changed

  • refactor: persist edge cases of type casting in integration tests by @cyjake in #202
  • docs: renaming attributes by @cyjake in #203
  • fix: JSON.uncast(string) should not serialize twice by @cyjake in #205

Full Changelog: v1.13.2...v1.13.3

v1.13.2

18 Oct 15:02
Compare
Choose a tag to compare

What's Changed

  • fix: attribute.uncast([]) and realm.connect with synchronized models by @cyjake in #201

Full Changelog: v1.13.1...v1.13.2

v1.13.1

18 Oct 13:43
Compare
Choose a tag to compare

What's Changed

  • fix: skip connecting if models are synchronized already by @cyjake in #200

Full Changelog: v1.13.0...v1.13.1

v1.13.0

18 Oct 11:53
Compare
Choose a tag to compare

What's Changed

  • docs: monthly updates of 2021.09; support dark mode by @cyjake in #196
  • feat: coerce literal values into accurate attribute type by @cyjake in #197
  • fix: dispatched result should be in attribute names by @cyjake in #198

Full Changelog: v1.12.0...v1.13.0

v1.12.0

12 Oct 03:04
Compare
Choose a tag to compare

What's Changed

  • fix(d.ts): add Bone toJSON & toObject API by @nightink in #189
  • feat: support custom fields query and sequelize mode export rawAttributes by @JimmyDaddy in #192
  • refactor: object condition parsing and expression formatting by @cyjake in #191
  • refactor: collection format query result by @JimmyDaddy in #194
  • fix: group result return plain object by @JimmyDaddy in #195

New Contributors

Full Changelog: v1.11.1...v1.12.0

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)