Skip to content

Releases: nicgirault/express-crud-router

v5.2.0

06 Sep 14:38
c99f0a1
Compare
Choose a tag to compare

⚠️ This release is a mistake. Don't upgrade from 5.x to this one because it includes breaking changes

v5.1.2

20 Aug 14:39
93cedfa
Compare
Choose a tag to compare

5.1.2 (2020-08-20)

Bug Fixes

v5.1.1

02 Jul 07:20
Compare
Choose a tag to compare

5.1.1 (2020-07-02)

Bug Fixes

  • 🐛 correclty handle no filter (01f9eb4)

v5.1.0

20 Jun 10:53
76fff29
Compare
Choose a tag to compare

5.1.0 (2020-06-20)

Features

  • improve search customizability, efficiency (2eefb13)

v5.0.0

15 May 13:44
Compare
Choose a tag to compare

5.0.0 (2020-05-15)

Features

  • ✨ add __options in filters (99225a5)

BREAKING CHANGES

  • before a filter {name: '%John'} would be transformed as {name: {[Op.like]: '%John'}}.
    Now to get {name: {[Op.like]: '%John'}} you must provide the filter {__options: {name: 'ENDS_WITH'}, name: 'John'}

v4.0.2

15 May 12:50
Compare
Choose a tag to compare

4.0.2 (2020-05-15)

Bug Fixes

  • 🐛 destroy was trying to create an item (9f1c3b3)

v4.0.1

15 May 12:36
Compare
Choose a tag to compare

4.0.1 (2020-05-15)

Bug Fixes

  • 💩 bind sequelize model to default behaviors. Shame on me for the typing (d3342c9)

v4.0.0

15 May 11:11
Compare
Choose a tag to compare

4.0.0 (2020-05-15)

Bug Fixes

  • upgrade express dependencies (35b465d)

Features

  • ✨ adding "%" in a filter will now use iLike instead of like (9fb5cff)
  • ✨ adding "%" in a filter will now use iLike instead of like (1d33256)
  • add breaking details (d544906)

BREAKING CHANGES

  • The options totally changed. Hooks are removed. now the options look like:
crud('/admin/users', User, {
  getList: (filter, limit, offset, order) =>
    User.findAllAndCount({ limit, offset, order, where: filter }),
  search: (q, findOptions) => User.findAllAndCount({...findOptions, where: {name: {[Op.ilike]: "${q}%"}}}),
  getOne: id => User.findByPk(id),
  create: body => User.create(body),
  update: (body, id) => User.update(body, { where: { id } }),
  delete: id => User.delete({ where: { id } }),
})

v3.6.0

04 Mar 09:17
Compare
Choose a tag to compare
v3.6.0 Pre-release
Pre-release

3.6.0 (2020-03-04)

Features

  • 💥 BREAKING CHANGE: replace hhoks by more flexible API (c77b995)

v3.5.2

04 Mar 15:03
3c5ef57
Compare
Choose a tag to compare

3.5.2 (2020-03-04)

Bug Fixes

  • upgrade express dependencies (a3ec09e)