Skip to content

Releases: Willian199/dart_ddi

0.8.1

21 Oct 23:15
Compare
Choose a tag to compare
  • Fixed Dependent instances where DDIInterceptor.onGet was running before PostConstruct mixin.

Full Changelog: 0.8.0...0.8.1

0.8.0

18 Oct 01:30
Compare
Choose a tag to compare
  • Added support to register custom factories.

  • Added support to auto inject Beans into factories.

  • Added support to get Factory Beans with custom parameters.

  • Refactored how Future and FutureOr is handled.

  • Warnings:

    • When registering a Factory Future and trying to obtain more than one instance simultaneously, it may cause a race condition and will be blocked. Especially if the instance is Application Scope.
    • When using Interceptors and Factories, you must register your Factory with ddi.register(factory: ScopeFactory.application(builder: ..., interceptors: [...]))
  • Break changes:

    • DDIInterceptor.aroundConstruct renamed to DDIInterceptor.onCreate.
    • DDIInterceptor.aroundGet renamed to DDIInterceptor.onGet.
    • DDIInterceptor.aroundDispose renamed to DDIInterceptor.onDispose.
    • DDIInterceptor.aroundDestroy renamed to DDIInterceptor.onDestroy.

Full Changelog: 0.7.2...0.8.0

0.7.2

12 Oct 22:13
Compare
Choose a tag to compare
  • Added support for registering a custom factory class with the register method. Note: Factories with parameters are not yet supported.

Full Changelog: 0.7.0...0.7.2

0.7.0

10 Aug 18:35
1920e5b
Compare
Choose a tag to compare
  • Added registerComponent and getComponent to DDI. Making Flutter Widgets components easier to reuse.
  • Added DDIComponentInject mixin.
  • Refactor children behavior.
  • Removed setDebugMode behaviors.
  • Bump min dart sdk to 3.4.0

Full Changelog: 0.6.6...0.7.0

0.6.6

13 May 23:32
ac2ae87
Compare
Choose a tag to compare
  • Resolved issue with concurrent modification in events.
  • Corrected events with autoRun capability, ensuring they can run infinitely as intended.

Full Changelog: 0.6.5...0.6.6

0.6.5

14 Apr 04:33
Compare
Choose a tag to compare
  • Added Packages and Projects information.
  • Updated example to make it simpler.
  • Fixed and documented the Dependent Scope with dispose and destroy behavior.

Full Changelog: 0.6.2...0.6.5

0.6.2

27 Mar 01:20
Compare
Choose a tag to compare
  • Fixed an issue when using await where registering, disposing, and destroying a bean.
  • Fixed EventLock, DDIEventSender and DDIStreamSender export.

Full Changelog: 0.6.0...0.6.2

0.6.0

23 Mar 17:48
Compare
Choose a tag to compare
  • Added support to register locked events.
  • Added support for onError and onComplete callbacks on events.
  • Added support for events with expiration duration.
  • Added support to auto-run events.
  • Added support for events with retry interval and maximum retries.
  • Added support to filter events based on the value.

Full Changelog: 0.5.0...0.6.0

0.5.0

10 Feb 15:20
8afb053
Compare
Choose a tag to compare
  • Added support for Modules.
  • Added Mixin DDIModule to help to use Modules behavior.
  • Added Mixin PreDispose with execution before the class is disposed.
  • Added methods isRegistered to Stream, Events and Beans instances.
  • Future improvements.

Full Changelog: 0.4.0...0.5.0

0.4.0

31 Jan 00:46
3ca5fcc
Compare
Choose a tag to compare
  • Added proper support for register and get Future instances.

Full Changelog: 0.3.1...0.4.0