Skip to content

Releases: mintware-de/catalyst_builder

v3.6.0

17 Aug 22:46
Compare
Choose a tag to compare

Fixed updating the generated provider file

In this release we hopefully fixed the old problem with outdated *.catalyst_builder.g.dart files.

Cause

The ServiceProviderBuilder did not emit an updated version since the @GenerateServiceProvider annotation
doesn't exist in the most files.

Solution

We added a new generatedProviderFile option to the preflightBuilder configuration. You need to put the relative path
to the generated provider file (*.catalyst_builder.g.dart) in this option.
The PreflightBuilder will automatically delete the file if it exists. This lead to a full regeneration of the service
provider file. 🙌

v3.5.2

17 Aug 21:20
4da261f
Compare
Choose a tag to compare

Fix downgrade error

In version 5.0.0 of the analyzer Package was DartType.element removed.
It was added again in 5.2.0 so we updated the version constraint to >=5.2.0 <7.0.0 to fix that downgrade error.

v3.5.1

17 Aug 21:18
91b1b99
Compare
Choose a tag to compare

Singleton instances on enhanced providers

Previously each ServiceProvider had a map of service instances. If a singleton was created, the provider stored the
instance in the map and returned the instance the next time it is requested.

If you're working with enhanced providers (ServiceProvider.enhance), the singletons created in the EnhancedProvider
wasn't stored in the root provider which causes that a singleton will be created again if it's resolved in the root
provider.

To solve this problem, the instances of the map is now a reference to the original instances map of the parent provider.

Dependency updates

Moved the lints to dev_dependencies and set the version constraint to any

v3.5.0

15 Aug 21:51
Compare
Choose a tag to compare

Updated the version constraint of the analyzer package.

v3.4.0

26 May 14:18
762b257
Compare
Choose a tag to compare

Features:

  • Added an example for working with relative dependencies. PR#19

Changes:

  • The preflight builder will no more emit empty files. This should increase the build performance. PR#18

v3.3.1

07 Jan 10:57
Compare
Choose a tag to compare

Fixes:

  • Fixed the enhance method. PR#16

v3.3.0

07 Jan 10:40
Compare
Choose a tag to compare

Features:

  • Added stricter rules to analysis_options.yaml
    • Added type castings to the generated service provider.

v3.2.3

07 Jan 10:40
7e67cba
Compare
Choose a tag to compare

Fixes:

  • Fixed the enhance method and overtake the expose map and the known services map.

v3.2.2

30 Dec 14:46
Compare
Choose a tag to compare

Fixes:

  • Fixed the type inference when enhancing the ServiceProvider.

v3.2.1

30 Dec 14:46
b79cd1c
Compare
Choose a tag to compare

Fixes:

  • Fixed the generation for libraries (working with part and part of).
  • Fixed the extraction of services for packages without the GenerateServiceProvider annotation.