github nestjsx/crud v.3.0.0

latest releases: v5.0.1, v5.0.0, v5.0.0-alpha.3...
5 years ago

Features:

  • routes:
    • choose routes that should be created or excluded (#30)
    • interceptors can be added to each route options
    • optional return entity on DELETE request (#34)
    • optional allow override URL params values by PATCH request body
  • params:
    • allow selecting each URL param type (number, uuid, string). Validation and transforming has been added
    • allow select any slug URL param name that differs from id. e.g. providing { params: { slug: 'uuid' } } will be processed as GET | PATCH | DELETE /:slug; will validate slug as uuid string; and will be making a SELECT query by slug column (#11)

Enhancements:

  • crud:
    • added pagination data to the getManyBase request (data, count, total, page, pageCount). Along with the ability to add interceptors without method overriding, this should totaly fix (#12, #18 )
    • added nested filtering (#42)
    • removed helpers in CrudController (getParamsFilter and getMergedOptions). Added helpful custom route decorators instead (@ParsedQuery, @ParsedParams, @ParsedOptions)
    • a lot of micro improvements. CrudController became more ORM agnostic.
    • method overriding became more easy.

Bugs

  • crud:
    • fixed Swagger documentation on an overridden method (#17)
    • added examples to Swagger (#17)
    • refactored to use NestJs 6

Don't miss a new crud release

NewReleases is sending notifications on new releases.