nestjs-base-service
Advanced tools
Changelog
0.11.0
2023-03-30
_processBaseFilter
and _processBaseFilter
methods of BaseService
protected
to allow them to be overriden.Changelog
0.10.0
2023-01-10
v0.3.x
Changelog
0.9.0
2022-03-15
This release brings breaking changes to most of the auxiliary methods of
BaseService
, making them async
where they were not so already, so that users
of this module can await on async operations at every stage of request
lifecycles handled via BaseService.
Most of these methods should have been async
all along, similarly to
extendFindAllQuery()
, in case module users need to perform async operations
throughout any of these lifecycle hooks.
BaseService.extendGetByIdQuery()
is now async
BaseService.extendCreateResult()
and
BaseService.actionAfterCreate()
are now async
too; alas
actionAfterCreate()
was already async
but not being await
ed forBaseService.setFilters()
, BaseService.setFiltersUpdate()
and BaseService.setFiltersDelete()
are now async
BaseService.actionAfterUpdate()
is now async
BaseService.canBeRemoved()
is now async
Changelog
0.8.0
2021-11-04
nodejs
requirement to v14.17+typeorm
as a peerDependency
Changelog
0.6.0
2021-04-30
idProperty
is now part of the service options
provided
to the constructor.Changelog
0.5.2
2021-04-20
ResultDTO
-like processing: we don't support yet using
a ResultDTO
distinct from Entity
as generic parameters to BaseService
,
but if the Entity
class is set up to include properties that do not map
directly to database columns it can be used as a sort of DTO, and the hooks
added in this release allow to reshape/extend data after it has been fetched
from db.