Crud Versions Save

NestJs CRUD for RESTful APIs

v4.1.0

4 years ago

4.1.0 - 2019-06-27

Features

  • crud added PUT request handling (#107 )
  • requests added creating request builder with params (#131 )
  • requests improved query params naming parsing (#101 )

Bug Fixes

  • crud set decorators after Swagger so metadata can be overwritten
  • requests added support for ISO-8610 date strings

v4.0.1

4 years ago

4.0.1 - 2019-06-21

Bug Fixes

  • requests fixed query parser to properly accept numbers and booleans (#97)

v4.0.0

4 years ago

4.0.0 (2019-06-12)

BREAKING CHANGES

  • crud: changed CrudOptions (docs)
  • crud: remove decorators: @ParsedOptions, @ParsedParams, @ParsedQuery. Add decorator @ParsedRequest instead.
  • crud: change interfaces
  • services: remove RestfulOptions from services
  • services: changed base abstract class

Features

  • repo: refactor to monorepository
  • docs: new documentation
  • packages: totally refactor @nestjsx/crud to be service (ORM) agnostic
  • packages: add @nestjsx/crud-typeorm (docs)
  • packages: add @nestjsx/crud-request (docs, #53)
  • crud: add global options (docs, #64)
  • crud: add eager relations option (#54, #67)

Bug Fixes

  • several fixes

v.3.2.0

5 years ago

Features:

  • controller - added UsePathInterceptors decorator that allows to wire up RestfulQueryInterceptor and RestfulParamsInterceptor on custom CrudController routes (those interceptors are already wired up on @Override() routes) (#45)
  • repository service - added simple findOne and find methods (link to the repo methods)

v.3.1.0

5 years ago

Enhancements:

  • crud: added @ParsedBody() route param decorator. It's very helpful if you need to override a method with default validation kept in place. Also, no need to create your own BulkDto in overridden createManyBase method any more until you really need to.

v.3.0.0

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

v.2.1.0

5 years ago

Features

  • joins - added nested joins for query #23

v.2.0.0

5 years ago

Features

  • swagger - added support for Swagger #6
  • additional - added getFeature and getAction helpers for getting metadata from a controller and a route (docs)

Breaking Changes

  • @Crud() accepts CrudOptions that contains options, params. Controller properties paramsFilter, options are deprecated

Bug Fixes

  • cacheId generation update

v.1.1.0

5 years ago