Skip to content

Releases: nicgirault/express-crud-router

v6.1.5

17 Feb 16:19
Compare
Choose a tag to compare

6.1.5 (2021-02-17)

Bug Fixes

v6.1.4

17 Feb 16:09
Compare
Choose a tag to compare

6.1.4 (2021-02-17)

Bug Fixes

v6.1.3

17 Feb 15:10
178cc7a
Compare
Choose a tag to compare

6.1.3 (2021-02-17)

Bug Fixes

  • 🐛 fix permanent filter not applied in search queries fix #44 (492fcd6)
  • 🐛 fix wrongly infered type when using sequelizeCrud(). Fix #43 (d3f4b88)

v6.1.2

18 Sep 19:38
Compare
Choose a tag to compare

6.1.2 (2020-09-18)

Bug Fixes

  • remove unused disable option (5926c48)

v6.1.1

08 Sep 12:34
Compare
Choose a tag to compare

6.1.1 (2020-09-08)

Bug Fixes

  • make sure sequelizeCrud update triggers update sequelize hooks (47b076d)
  • update returns custom implementation of update (33af6d5)

v6.1.0

07 Sep 21:41
Compare
Choose a tag to compare

6.1.0 (2020-09-07)

Features

  • ✨ add filters option in sequelize crud (78112d5)

v6.0.2

07 Sep 20:31
Compare
Choose a tag to compare

6.0.2 (2020-09-07)

Bug Fixes

v6.0.1

06 Sep 18:19
Compare
Choose a tag to compare

6.0.1 (2020-09-06)

Bug Fixes

  • ✨ export action types (2358880)

v6.0.0

06 Sep 15:03
Compare
Choose a tag to compare

6.0.0 (2020-09-06)

Bug Fixes

  • trigger breaking change (ecd89c6)

BREAKING CHANGES

  • this release is almost a total rewrite of the lib.

Simple use case:

- crud('/admin/user', User)
+ crud('/admin/user', sequelizeCrud(User))

Limit actions:

- app.use(
-   crud("/admin/users", User, {
-     destroy: () => throw new Error('delete is not allowed')
-   })
- );
+ app.use(
+   crud('/admin/users', {
+     ...sequelizeCrud(User),
+     destroy: null,
+   })
+ )

Custom behaviors:

- app.use(
-   crud('/admin/users', User, {
-     getList: (filter, limit, offset, order) =>
-       User.findAndCountAll({ limit, offset, order, where: filter }),
-     getOne: id => User.findByPk(id),
-     create: body => User.create(body),
-     update: (body, options) => User.update(body, options),
-     destroy: body => User.destroy(body),
-   })
- )
+ app.use(
+   crud('/admin/users', {
+     getList: ({ filter, limit, offset, order }) =>
+       User.findAndCountAll({ limit, offset, order, where: filter }),
+     getOne: id => User.findByPk(id),
+     create: body => User.create(body),
+     update: (id, body) => User.update(body, { where: { id } }),
+     destroy: id => User.destroy({ where: { id } }),
+   })
+ )

v5.2.1

06 Sep 14:46
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