Skip to content

Commit

Permalink
release: v1.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjake committed Nov 1, 2021
1 parent 1ff95bf commit bd5bf9a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
1.14.0 / 2021-11-01
===================

Two options regarding `Model.init()` were added in this release:

```js
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 https://github.com/cyjake/leoric/pull/211
* docs: DataTypes definitions in d.ts by @cyjake in https://github.com/cyjake/leoric/pull/210
* fix: fix#209 sequelize mode should update all changed fields in instance update method by @JimmyDaddy in https://github.com/cyjake/leoric/pull/212
* fix: fix #213 findAndCountAll should ignore attributes by @JimmyDaddy in https://github.com/cyjake/leoric/pull/214
* fix: opts.connectTimeout by @cyjake in https://github.com/cyjake/leoric/pull/216
* fix: reload instance with sharding key should not throw by @cyjake in https://github.com/cyjake/leoric/pull/217
* feat: timestamps should be defined by default by @cyjake in https://github.com/cyjake/leoric/pull/218
* fix: instance.reload() should not rely on `static findOne()` by @cyjake in https://github.com/cyjake/leoric/pull/219

## New Contributors
* @freshgum-bubbles made their first contribution in https://github.com/cyjake/leoric/pull/211

**Full Changelog**: https://github.com/cyjake/leoric/compare/v1.13.5...v1.14.0

1.13.5 / 2021-10-26
===================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leoric",
"version": "1.13.5",
"version": "1.14.0",
"description": "JavaScript Object-relational mapping alchemy",
"main": "index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit bd5bf9a

Please sign in to comment.