Releases: L2jLiga/fastify-decorators
Releases · L2jLiga/fastify-decorators
v3.7.1
Fixed
- Missed CJS files for
fastify-decorators/testing
(#113)
v3.7.0
Added
- Added option to specify plugins when configuring controllers/services tests
- Publish library as dual package (ES Modules + CommonJS)
v3.6.0
Added
FastifyInstanceWithController
interface for testing (#93)
v3.5.0
Added
configureControllerTest
decorate FastifyInstance
with controller property
Changed
- Huge documentation rework
v3.4.1
Fixed
- FastifyInstance not available for injection in tests
v3.4.0
Added
- Hooks and error handlers support for stateless controllers (ControllerType.REQUEST)
- Support for async services testing
Fixed
- Hooks override in RequestHandler when hook with same name defined multiple times
- Invalid RequestHandler constructor call when it has hooks
- RequestHandler / Controller options mutation
- Bootstrap failure when async services injected with
@Inject
v3.3.1
Fixed
- Warning when install due to unsatisfied peer dependency -
fastify-plugin
v3.3.0
Added
- support for services that need an async setup (#58)
v3.2.4
Fixed
- Bootstrap controllers properly
- Remove a global flag from mask if presents
v3.2.3
Changed
- Use
fastify-plugin
helper for bootstrap
- Use
import type
from TypeScript 3.8 (for TS < 3.8 users do .d.ts
downlevel)