Releases: cyjake/leoric
Releases · cyjake/leoric
v1.14.2
v1.14.1
v1.14.0
Two options regarding Model.init()
were added in this release:
class User extends Bone {}
User.init({ name: STRING }, {
timestamps: true, // which is the default
paranoid: true, // which default to `false`
});
assert.deepEqual(Object.keys(User.attributes), [
'id',
'name',
'createdAt',
'updatedAt',
'deletedAt',
]);
What's Changed
- docs: update 'primayKey' typos by @freshgum-bubbles in #211
- docs: DataTypes definitions in d.ts by @cyjake in #210
- fix: fix#209 sequelize mode should update all changed fields in instance update method by @JimmyDaddy in #212
- fix: fix #213 findAndCountAll should ignore attributes by @JimmyDaddy in #214
- fix: opts.connectTimeout by @cyjake in #216
- fix: reload instance with sharding key should not throw by @cyjake in #217
- feat: timestamps should be defined by default by @cyjake in #218
- fix: instance.reload() should not rely on
static findOne()
by @cyjake in #219
New Contributors
- @freshgum-bubbles made their first contribution in #211
Full Changelog: v1.13.5...v1.14.0
v1.13.5
v1.13.4
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:
Full Changelog: v1.13.3...v1.13.4
v1.13.3
v1.13.2
v1.13.1
v1.13.0
v1.12.0
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