mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-05-16 10:10:43 +00:00
Compare commits
8 Commits
ref/code_b
...
b4ca6da080
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4ca6da080 | ||
|
|
4b8f5fe421 | ||
|
|
629d2ed504 | ||
|
|
9cabf98ffb | ||
|
|
8efdcbc918 | ||
|
|
d4fbbdcc1f | ||
|
|
72e1e91b96 | ||
|
|
e67ebbe2ab |
36
CHANGELOG.md
36
CHANGELOG.md
@@ -3,6 +3,42 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 2026-04-28
|
||||
|
||||
### Changes
|
||||
|
||||
---
|
||||
|
||||
Packages with breaking changes:
|
||||
|
||||
- There are no breaking changes in this release.
|
||||
|
||||
Packages with other changes:
|
||||
|
||||
- [`cherrypick` - `v3.0.3`](#cherrypick---v303)
|
||||
- [`cherrypick_generator` - `v4.0.0-dev.1`](#cherrypick_generator---v400-dev1)
|
||||
- [`cherrypick_flutter` - `v3.0.3`](#cherrypick_flutter---v303)
|
||||
- [`talker_cherrypick_logger` - `v3.0.3`](#talker_cherrypick_logger---v303)
|
||||
|
||||
Packages with dependency updates only:
|
||||
|
||||
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
|
||||
|
||||
- `cherrypick_flutter` - `v3.0.3`
|
||||
- `talker_cherrypick_logger` - `v3.0.3`
|
||||
|
||||
---
|
||||
|
||||
#### `cherrypick` - `v3.0.3`
|
||||
|
||||
- **DOCS**: sync references after ProviderFactory rename.
|
||||
|
||||
#### `cherrypick_generator` - `v4.0.0-dev.1`
|
||||
|
||||
- **REFACTOR**(cherrypick_generator): migrate inject codegen to code_builder.
|
||||
- **FIX**: add deps.
|
||||
|
||||
|
||||
## 2026-01-29
|
||||
|
||||
### Changes
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
## 3.0.3
|
||||
|
||||
- **DOCS**: sync references after ProviderFactory rename.
|
||||
|
||||
## Unreleased
|
||||
|
||||
- **BREAKING** **REFACTOR**(binding): rename `Provider<T>` typedef to `ProviderFactory<T>` to avoid naming conflicts with `package:provider`.
|
||||
|
||||
## 3.0.2
|
||||
|
||||
- **FIX**(test): fix warning.
|
||||
@@ -188,4 +196,4 @@
|
||||
- **MAINT**: Updated pubspec.
|
||||
|
||||
## 0.1.0
|
||||
- **INIT**: Initial release.
|
||||
- **INIT**: Initial release.
|
||||
|
||||
@@ -205,7 +205,7 @@ class Binding<T> {
|
||||
/// bind<Api>().toProvide(() => ApiService());
|
||||
/// bind<Db>().toProvide(() async => await openDb());
|
||||
/// ```
|
||||
Binding<T> toProvide(Provider<T> value) {
|
||||
Binding<T> toProvide(ProviderFactory<T> value) {
|
||||
_resolver = ProviderResolver<T>((_) => value.call(), withParams: false);
|
||||
return this;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ class Binding<T> {
|
||||
}
|
||||
|
||||
@Deprecated('Use toProvide instead of toProvideAsync')
|
||||
Binding<T> toProvideAsync(Provider<T> value) {
|
||||
Binding<T> toProvideAsync(ProviderFactory<T> value) {
|
||||
return toProvide(value);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ typedef Instance<T> = FutureOr<T>;
|
||||
///
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// Provider<MyService> provider = () => MyService();
|
||||
/// Provider<Api> asyncProvider = () async => await Api.connect();
|
||||
/// ProviderFactory<MyService> provider = () => MyService();
|
||||
/// ProviderFactory<Api> asyncProvider = () async => await Api.connect();
|
||||
/// ```
|
||||
typedef Provider<T> = FutureOr<T> Function();
|
||||
typedef ProviderFactory<T> = FutureOr<T> Function();
|
||||
|
||||
/// Provider function type that accepts a dynamic parameter, for factory/parametrized injection.
|
||||
/// Returns [T] or [Future<T>].
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: cherrypick
|
||||
description: Cherrypick is a small dependency injection (DI) library for dart/flutter projects.
|
||||
version: 3.0.2
|
||||
version: 3.0.3
|
||||
homepage: https://cherrypick-di.netlify.app
|
||||
documentation: https://cherrypick-di.netlify.app/docs/intro
|
||||
repository: https://github.com/pese-git/cherrypick
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## 3.0.3
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
## 3.0.2
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: cherrypick_flutter
|
||||
description: "Flutter library that allows access to the root scope through the context using `CherryPickProvider`."
|
||||
version: 3.0.2
|
||||
version: 3.0.3
|
||||
homepage: https://cherrypick-di.netlify.app
|
||||
documentation: https://cherrypick-di.netlify.app/docs/intro
|
||||
repository: https://github.com/pese-git/cherrypick
|
||||
@@ -19,7 +19,7 @@ environment:
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
cherrypick: ^3.0.2
|
||||
cherrypick: ^3.0.3
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
## 4.0.0-dev.1
|
||||
|
||||
- **REFACTOR**(cherrypick_generator): migrate inject codegen to code_builder.
|
||||
- **FIX**: add deps.
|
||||
|
||||
## 4.0.0-dev.0
|
||||
|
||||
> Note: This release has breaking changes.
|
||||
|
||||
@@ -2,7 +2,7 @@ name: cherrypick_generator
|
||||
description: |
|
||||
Source code generator for the cherrypick dependency injection system. Processes annotations to generate binding and module code for Dart & Flutter projects.
|
||||
|
||||
version: 4.0.0-dev.0
|
||||
version: 4.0.0-dev.1
|
||||
homepage: https://cherrypick-di.netlify.app
|
||||
documentation: https://cherrypick-di.netlify.app/docs/intro
|
||||
repository: https://github.com/pese-git/cherrypick/cherrypick_generator
|
||||
@@ -26,6 +26,8 @@ dependencies:
|
||||
build: ^3.0.0
|
||||
source_gen: ^4.2.0
|
||||
collection: ^1.18.0
|
||||
package_config: ^2.2.0
|
||||
build_runner_core: ^9.3.1
|
||||
|
||||
dev_dependencies:
|
||||
lints: ^6.0.0
|
||||
|
||||
@@ -550,4 +550,4 @@ void main() {
|
||||
- [cherrypick](https://pub.dev/packages/cherrypick)
|
||||
- [cherrypick_annotations](https://pub.dev/packages/cherrypick_annotations)
|
||||
- [cherrypick_generator](https://pub.dev/packages/cherrypick_generator)
|
||||
- [Исходники на GitHub](https://github.com/pese-git/cherrypick)
|
||||
- [Исходники на GitHub](https://github.com/pese-git/cherrypick)
|
||||
|
||||
@@ -255,4 +255,4 @@ class ApiClientImpl implements ApiClient {
|
||||
return 'Network data';
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
cherrypick: any
|
||||
cherrypick: ^3.0.3
|
||||
cherrypick_annotations: ^4.0.0-dev.0
|
||||
|
||||
dio: ^5.4.0
|
||||
@@ -27,7 +27,7 @@ dependencies:
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
talker_flutter: ^5.0.0
|
||||
talker_cherrypick_logger: any
|
||||
talker_cherrypick_logger: ^3.0.3
|
||||
talker_dio_logger: ^5.0.0
|
||||
talker_bloc_logger: ^5.0.0
|
||||
|
||||
@@ -38,7 +38,7 @@ dev_dependencies:
|
||||
flutter_lints: ^6.0.0
|
||||
|
||||
build_runner: ^2.5.0
|
||||
cherrypick_generator: ^4.0.0-dev.0
|
||||
cherrypick_generator: ^4.0.0-dev.1
|
||||
|
||||
json_serializable: ^6.9.0
|
||||
retrofit_generator: ^10.0.5
|
||||
|
||||
@@ -60,8 +60,10 @@ scripts:
|
||||
scope: ["cherrypick_flutter"]
|
||||
|
||||
codegen:
|
||||
run: |
|
||||
melos exec --scope="postly" -- dart run build_runner build --delete-conflicting-outputs
|
||||
description: "Run build for Flutter packages only"
|
||||
exec: dart run build_runner build --delete-conflicting-outputs
|
||||
packageFilters:
|
||||
scope: ["postly"]
|
||||
|
||||
outdated:
|
||||
exec: dart pub outdated
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## 3.0.3
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
## 3.0.2
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: talker_cherrypick_logger
|
||||
description: A Talker logger integration for CherryPick DI to observe and log DI events and errors.
|
||||
version: 3.0.2
|
||||
version: 3.0.3
|
||||
homepage: https://cherrypick-di.netlify.app
|
||||
documentation: https://cherrypick-di.netlify.app/docs/intro
|
||||
repository: https://github.com/pese-git/cherrypick
|
||||
@@ -18,7 +18,7 @@ environment:
|
||||
# Add regular dependencies here.
|
||||
dependencies:
|
||||
talker: ^5.0.0
|
||||
cherrypick: ^3.0.2
|
||||
cherrypick: ^3.0.3
|
||||
|
||||
|
||||
dev_dependencies:
|
||||
|
||||
@@ -38,4 +38,4 @@ See [Installation](installation.md) for instructions on adding CherryPick to you
|
||||
|
||||
CherryPick is open-source. Contributions and questions are welcome!
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user