Skip to content

Releases: L2jLiga/fastify-decorators

v3.7.1

16 Dec 17:58
472b38d
Compare
Choose a tag to compare

Fixed

  • Missed CJS files for fastify-decorators/testing (#113)

v3.7.0

10 Dec 17:56
8af9b4a
Compare
Choose a tag to compare

Added

  • Added option to specify plugins when configuring controllers/services tests
  • Publish library as dual package (ES Modules + CommonJS)

v3.6.0

05 Dec 06:17
e561741
Compare
Choose a tag to compare

Added

  • FastifyInstanceWithController interface for testing (#93)

v3.5.0

29 Nov 22:10
0a1c35b
Compare
Choose a tag to compare

Added

  • configureControllerTest decorate FastifyInstance with controller property

Changed

  • Huge documentation rework

v3.4.1

22 Nov 20:41
c881a83
Compare
Choose a tag to compare

Fixed

  • FastifyInstance not available for injection in tests

v3.4.0

06 Nov 06:50
ceec8ed
Compare
Choose a tag to compare

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

01 Nov 09:23
9a523ab
Compare
Choose a tag to compare

Fixed

  • Warning when install due to unsatisfied peer dependency - fastify-plugin

v3.3.0

22 Oct 15:35
e6f93bd
Compare
Choose a tag to compare

Added

  • support for services that need an async setup (#58)

v3.2.4

20 Oct 15:16
6997c7a
Compare
Choose a tag to compare

Fixed

  • Bootstrap controllers properly
  • Remove a global flag from mask if presents

v3.2.3

14 Sep 18:54
Compare
Choose a tag to compare

Changed

  • Use fastify-plugin helper for bootstrap
  • Use import type from TypeScript 3.8 (for TS < 3.8 users do .d.ts downlevel)