From cd7a1e1c2e3a3a7889aa2ad40ffbccd313592727 Mon Sep 17 00:00:00 2001 From: Julian Finkler Date: Tue, 15 Apr 2025 08:43:44 +0200 Subject: [PATCH 1/2] change: Prepare major release --- packages/catalyst_builder/CHANGELOG.md | 27 +++++++++++++++++-- packages/catalyst_builder/pubspec.yaml | 2 +- .../catalyst_builder_contracts/CHANGELOG.md | 7 ++++- .../catalyst_builder_contracts/pubspec.yaml | 2 +- 4 files changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/catalyst_builder/CHANGELOG.md b/packages/catalyst_builder/CHANGELOG.md index 2f4535e..13d29dd 100644 --- a/packages/catalyst_builder/CHANGELOG.md +++ b/packages/catalyst_builder/CHANGELOG.md @@ -1,12 +1,34 @@ +## 5.0.0 + +I'm proud to release v5.0.0 🎉 + +This release contains a lot of rework in the underlying engine. + +This is a list of the largest changes between v4.3.2 and v5.0.0 + +- New plugin based architecture +- The `ServiceContainer` (formerly `ServiceProvider`) is no longer generated code. Instead, I created a + `ServiceContainer` implementation that uses Plugins which are generated. +- Services from dependencies are no longer included. This improves the build speed and reliability of generated code. + Services from dependencies must be deployed as plugins. This gives you more control over what is registered in your + container. +- Aligned naming: In the previous versions, we mixed the terms `provider` and `container`. Starting with this version + we will use only `container`. + +For upgrade guidance check the "[Upgrade from v4 to v5](https://github.com/mintware-de/catalyst_builder/wiki/v5)" Guide + ## 5.0.0-rc.1 ### Breaking Changes -- Removed the generation of the service container. Check the [GenerateServiceProvider](https://github.com/mintware-de/catalyst_builder/wiki/v5#generateserviceprovider) section for upgrade guidance. +- Removed the generation of the service container. Check + the [GenerateServiceProvider](https://github.com/mintware-de/catalyst_builder/wiki/v5#generateserviceprovider) section + for upgrade guidance. ## 5.0.0-dev.2 ### Changes + - Removed export of `catalyst_builder_annotations`. ## 5.0.0-dev.1 @@ -14,9 +36,10 @@ We need a total makeover of the underlying architecture. Services from packages you depend on are no longer resolved automatically! -More background information is available in the [Wiki](https://github.com/mintware-de/catalyst_builder/wiki/v5) +More background information is available in the [Wiki](https://github.com/mintware-de/catalyst_builder/wiki/v5) ### Changes + - `includePackageDependencies` was removed ## 4.3.2 diff --git a/packages/catalyst_builder/pubspec.yaml b/packages/catalyst_builder/pubspec.yaml index 2eb9335..7ffc988 100644 --- a/packages/catalyst_builder/pubspec.yaml +++ b/packages/catalyst_builder/pubspec.yaml @@ -1,6 +1,6 @@ name: catalyst_builder description: A lightweight and easy to use dependency injection container builder for dart. -version: 5.0.0-rc.1 +version: 5.0.0 homepage: 'https://github.com/mintware-de/catalyst_builder' repository: 'https://github.com/mintware-de/catalyst_builder/tree/main/packages/catalyst_builder' documentation: 'https://github.com/mintware-de/catalyst_builder/wiki' diff --git a/packages/catalyst_builder_contracts/CHANGELOG.md b/packages/catalyst_builder_contracts/CHANGELOG.md index 73788bd..eabce10 100644 --- a/packages/catalyst_builder_contracts/CHANGELOG.md +++ b/packages/catalyst_builder_contracts/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0 + +No additional changes were made. Check changes of previous version. + ## 2.0.0-rc.1 ### Breaking Changes @@ -12,6 +16,7 @@ ## 2.0.0-dev.2 ### Breaking Changes + - Changed `ServiceProvider` and `ServiceRegistry` to interfaces - Removed `EnhanceableProvider` and added `enhance` to `ServiceProvider` @@ -33,7 +38,7 @@ ## 0.0.2 - Fix export of EnhanceableProvider - + ## 0.0.1 - Initial version diff --git a/packages/catalyst_builder_contracts/pubspec.yaml b/packages/catalyst_builder_contracts/pubspec.yaml index 4e70ec2..0270c5a 100644 --- a/packages/catalyst_builder_contracts/pubspec.yaml +++ b/packages/catalyst_builder_contracts/pubspec.yaml @@ -1,6 +1,6 @@ name: catalyst_builder_contracts description: This is the contracts package for the catalyst_builder package. It includes annotations and marker interfaces. -version: 2.0.0-rc.1 +version: 2.0.0 homepage: 'https://github.com/mintware-de/catalyst_builder' repository: 'https://github.com/mintware-de/catalyst_builder/tree/main/packages/catalyst_builder_contracts' documentation: https://github.com/mintware-de/catalyst_builder/wiki From bbddf5cabfc0a08e268cf19713dc6f580cb64197 Mon Sep 17 00:00:00 2001 From: Julian Finkler Date: Tue, 15 Apr 2025 08:50:47 +0200 Subject: [PATCH 2/2] change: Upgrade the contracts version --- packages/catalyst_builder/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/catalyst_builder/pubspec.yaml b/packages/catalyst_builder/pubspec.yaml index 7ffc988..4a66a25 100644 --- a/packages/catalyst_builder/pubspec.yaml +++ b/packages/catalyst_builder/pubspec.yaml @@ -34,7 +34,7 @@ dependencies: path: ^1.8.0 analyzer: '>=6.2.0 <8.0.0' yaml: ^3.0.0 - catalyst_builder_contracts: ^2.0.0-rc.1 + catalyst_builder_contracts: ^2.0.0 dev_dependencies: test: any