Skip to content

Releases: L2jLiga/fastify-decorators

v4.0.0-next.5

20 Oct 23:56
693c913
Compare
Choose a tag to compare
v4.0.0-next.5 Pre-release
Pre-release

Added

  • ECMAScript Decorators support
  • CommonJS build

Changed

  • [BREAKING] Minimal TypeScript version is 5.2.0
  • [BREAKING] Minimal Node.js version is 18.12.0 LTS

v3.15.1

20 Jul 06:26
f117e1e
Compare
Choose a tag to compare

Fixed

  • application does not start up when service with initializer is loaded but not instantiated (issue 877)

v3.15.0

21 Nov 17:25
a7b50a5
Compare
Choose a tag to compare

Added

  • Injectables holder object in order to provide own classes/singletons at startup (issue #835)

Fixed

  • Initializer was called multiple times (issue #834)
  • Proxy mess up objects which are not services (issue #834 (comment))
  • Service destructor is called when service is imported but not initialized (issue #786)

v3.14.1

10 Oct 14:57
9182749
Compare
Choose a tag to compare

Fixed

  • Do not mutate parent controller methods in case of inheritance

v4.0.0-next.4

09 Oct 11:47
b53718c
Compare
Choose a tag to compare
v4.0.0-next.4 Pre-release
Pre-release

Added

  • FastifyInstance available for all initialization hooks

Fixed

  • Parent controller routes mutation

v4.0.0-next.3

07 Oct 22:13
279b08f
Compare
Choose a tag to compare
v4.0.0-next.3 Pre-release
Pre-release

Added

  • [core] option to specify controller tags (#759)
  • [simple-di] option to provide custom FastifyInstance in tests (#800, #801)
  • [simple-di] overall DI plugin improvements

Fixed

  • [core] properly handle controllers with inherited handlers (#802)
  • [simple-di] properly handle useDefineForClassFields TypeScript flag
  • [simple-di] inability to access primitive property from service when service has Request or Reply injected

v3.14.0

04 Oct 09:50
22e30f2
Compare
Choose a tag to compare

Added

  • FastifyRequest and FastifyReply injection option (backport #555)
  • Option to use custom FastifyInstance in controller/service tests (#801)

Fixed

  • Undefined when extending from abstract class (#802)

v3.13.1

28 Jul 08:36
Compare
Choose a tag to compare

Fixed

  • Tags from controller not applied to routes when handler has schema object

v3.13.0

27 Jul 19:10
c65660c
Compare
Choose a tag to compare

Added

  • new option classLoader, allows to implement own DI logic instead of fastify-decorators provides. See Using custom class loader for more details.
  • new Controllers option tags, allows to specify set of tags for all methods in controller, useful for grouping methods in swagger

v3.12.0

15 Jun 20:17
64e53d4
Compare
Choose a tag to compare

Added

  • Fastify v4 support

Fixed

  • Unable to use @Inject when useDefineForClassFields enabled in tsconfig (#750)
  • @Inject does not work when reflect-metadata not present (#752)

Removed

  • Experimental plugin APIs