Skip to content

create-express-ts-rest-api v1.1.0

Compare
Choose a tag to compare
@KhomsiAdam KhomsiAdam released this 04 May 19:59
· 28 commits to main since this release

Changelogs:

Features:

  • Added husky and commitizen.
  • Changed getOne method to getByField to be dynamic (get by id by default).
  • Register by role, defaults to User role.
  • Adding a new role to Roles constant automatically adds them to interface and model.

Refactoring:

  • Renamed some variables, removed unnecessary lines.
  • Reformatted error stack trace to be split into array for better readability.
  • Made the optional populate logic into a helper function.
  • Changed import statements to mostly destructured ones and import type for types.