Skip to content

Commit

Permalink
build: Release version 7.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarLeonDev committed Jun 29, 2024
1 parent ce56f80 commit f0046dd
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 54 deletions.
47 changes: 43 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,53 @@
# Reactter

## 7.2.0

### Breakings

- **refactor(core,hooks,test):** Deprecate and replace some enums and methods on Lifecycle to use the right concept.
- Deprecated `Lifecycle.initialized`, use `Lifecycle.created` instead.
- Deprecated `Lifecycle.destroyed`, use `Lifecycle.deleted` instead.
- Deprecated [`onInitialized`](https://pub.dev/documentation/reactter/7.1.0/reactter/LifecycleObserver/onInitialized.html) method of `LifecycleObserver`, use [`onCreated`](https://pub.dev/documentation/reactter/7.2.0/reactter/LifecycleObserver/onCreated.html) method instead.
- Deprecated [`onDestroyed`](https://pub.dev/documentation/reactter/7.1.0/reactter/LifecycleObserver/onDestroyed.html) method of `LifecycleObserver`, use [`onDeleted`](https://pub.dev/documentation/reactter/7.2.0/reactter/LifecycleObserver/onDeleted.html) method instead.
- **refactor(widgets):** Update [`ReactterProvider`](https://pub.dev/documentation/flutter_reactter/7.1.0/flutter_reactter/ReactterProvider/ReactterProvider.html) to use [`ReactterProvider.init`](https://pub.dev/documentation/flutter_reactter/7.2.0/flutter_reactter/ReactterProvider/ReactterProvider.init.html) constructor instead of `init` property.
- Deprecated `init` property of [`ReactterProvider`](https://pub.dev/documentation/flutter_reactter/7.1.0/flutter_reactter/ReactterProvider/ReactterProvider.html), use [`ReactterProvider.init`](https://pub.dev/documentation/flutter_reactter/7.2.0/flutter_reactter/ReactterProvider/ReactterProvider.init.html) instead.

### Enhancements

- **feat(core):** Add [`Reactter.hasRegister`](https://pub.dev/documentation/reactter/7.2.0/reactter/ReactterInterface/hasRegister.html) method to check if the dependency is registered in Reactter.
- **refactor(framework):** Improve lazy loading performance in `ProviderImpl`, update implementation to reduce unnecessary checks and streamline widget rendering.

### Fixes

- **fix(core):** Prevent all `ReactterDependency` events from being deleted after deregistering a dependency.
- Update [`offAll`](https://pub.dev/documentation/reactter/7.2.0/reactter/ReactterInterface/offAll.html) method in `EventHandler` to support generic removal.
- **fix(hooks):** Ensure that the callback is executed by the `dependencies` of `UseEffect`.
- **refactor(hooks):** Improve error handling in `UseEffect`.

### Internal

- **refactor(core,framework,hooks):** Update `dependencyInjection` getter names in Reactter codebase.
- **refactor(framework,test):** Rename `reactter_instance` to `reactter_dependency` and fix imports and exports.
- **doc(hooks):** Update `UseReducer` and `UseState` documentation to improve clarity and consistency.
- **test(core,hooks):** Rename some files and update the descriptions.
- **test(core):** Add [`Reactter.hasRegister`](https://pub.dev/documentation/reactter/7.2.0/reactter/ReactterInterface/hasRegister.html) test.
- **refactor:** Remove unnecessary 'late' modifier in `TestController`.
- **test:** Add comparable test cases for `Args`.
- **refactor:** :memo: Improve some comments and documentation for clarity and consistency.
- **test:** :memo: Update the descriptions of some test for clarity and consistency.
- **test(widgets):** Add test case for nullish dependency obtained from context.
- **test(widgets):** Add test case for getting dependency form `ReactterProvider` siblings.
- **refactor:** Resolve lints and formatting issues.

## 7.1.0

### Breakings

- **refactor(core,framework,hooks,test):** Deprecate and replace some classes and methods to use the right concept.
- Deprecated [`UseInstance`](https://pub.dev/documentation/reactter/7.0.1/reactter/UseInstance-class.html) hook, use [`UseDependency`](https://pub.dev/documentation/reactter/7.1.0-pre/reactter/UseDependency-class.html) hook instead.
- Deprecated [`InstanceManageMode`](https://pub.dev/documentation/reactter/7.0.1/reactter/InstanceManageMode.html) enum, use [`DependencyMode`](https://pub.dev/documentation/reactter/7.1.0-pre/reactter/DependencyMode.html) enum instead.
- Deprecated [`ReactterInstance`](https://pub.dev/documentation/reactter/7.0.1/reactter/ReactterInstance-class.html) class, use [`ReactterDependency`](https://pub.dev/documentation/reactter/7.1.0-pre/reactter/ReactterDependency-class.html) class instead.
- Deprecated [`getInstanceManageMode`](https://pub.dev/documentation/reactter/7.0.1/reactter/ReactterInterface/getInstanceManageMode.html) method, use [`getDependencyMode`](https://pub.dev/documentation/reactter/7.1.0-pre/reactter/ReactterInterface/getDependencyMode.html) method instead.
- Deprecated [`UseInstance`](https://pub.dev/documentation/reactter/7.0.1/reactter/UseInstance-class.html) hook, use [`UseDependency`](https://pub.dev/documentation/reactter/7.1.0/reactter/UseDependency-class.html) hook instead.
- Deprecated [`InstanceManageMode`](https://pub.dev/documentation/reactter/7.0.1/reactter/InstanceManageMode.html) enum, use [`DependencyMode`](https://pub.dev/documentation/reactter/7.1.0/reactter/DependencyMode.html) enum instead.
- Deprecated [`ReactterInstance`](https://pub.dev/documentation/reactter/7.0.1/reactter/ReactterInstance-class.html) class, use [`ReactterDependency`](https://pub.dev/documentation/reactter/7.1.0/reactter/ReactterDependency-class.html) class instead.
- Deprecated [`getInstanceManageMode`](https://pub.dev/documentation/reactter/7.0.1/reactter/ReactterInterface/getInstanceManageMode.html) method, use [`getDependencyMode`](https://pub.dev/documentation/reactter/7.1.0/reactter/ReactterInterface/getDependencyMode.html) method instead.

### Internal

Expand Down
6 changes: 3 additions & 3 deletions packages/flutter_reactter/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Implements: `ReactterWatcher`, `Signal`.

Performs simple arithmetic operations on numbers

> Learn how to provide and consume an instance.
> Learn how to provide and consume a dependency
[![Counter example](https://raw.githubusercontent.com/2devs-team/reactter_assets/main/examples/calculator_example.png)](https://github.com/2devs-team/reactter/tree/master/packages/flutter_reactter/example/lib/calculator)

Expand All @@ -42,7 +42,7 @@ Implements: `BuildContext.use`, `ReactterConsumer`, `ReactterProvider`, `Reactte

Add, remove product to cart and checkout.

> Learn how to access to other instance and keep its state.
> Learn how to access to other dependency and keep its state.
[![Shopping cart example](https://raw.githubusercontent.com/2devs-team/reactter_assets/main/examples/cart_example.gif)](https://github.com/2devs-team/reactter/tree/master/packages/flutter_reactter/example/lib/shopping_cart)

Expand All @@ -52,7 +52,7 @@ Implements: `ReactterComponent`, `ReactterConsumer`, `ReactterProvider`, `Reactt

Add, remove and hide child widget with counter.

> Learn how to add or remove instance dynamic and keep its state.
> Learn how to add or remove dependency dynamic and keep its state.
[![Tree widget example](https://raw.githubusercontent.com/2devs-team/reactter_assets/main/examples/tree_example.gif)](https://github.com/2devs-team/reactter/tree/master/packages/flutter_reactter/example/lib/tree)

Expand Down
14 changes: 6 additions & 8 deletions packages/flutter_reactter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ packages:
flutter_reactter:
dependency: "direct main"
description:
name: flutter_reactter
sha256: "8a67a0f7124eb7f439408909eaaf31ebbddd11c17f34e0cfa39e98c75a4f11e6"
url: "https://pub.dev"
source: hosted
path: ".."
relative: true
source: path
version: "7.1.0"
flutter_web_plugins:
dependency: transitive
Expand Down Expand Up @@ -318,10 +317,9 @@ packages:
reactter:
dependency: transitive
description:
name: reactter
sha256: "2d9ba8a6fc2639739b13cbe6bf67a6f795773a6f75c3c1ce88ad73096844956e"
url: "https://pub.dev"
source: hosted
path: "../../reactter"
relative: true
source: path
version: "7.1.0"
reactter_lint:
dependency: "direct dev"
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_reactter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
http: ^0.13.6
url_launcher: ^6.1.2
intl: ^0.17.0
flutter_reactter: ^7.1.0
flutter_reactter: ^7.2.0

dev_dependencies:
flutter_lints: ^2.0.2
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_reactter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ packages:
dependency: "direct main"
description:
name: reactter
sha256: "2d9ba8a6fc2639739b13cbe6bf67a6f795773a6f75c3c1ce88ad73096844956e"
sha256: "6bb9a5768587220cc67a46b57165763dd2701e1bca068d396b275c60fe0cb27e"
url: "https://pub.dev"
source: hosted
version: "7.1.0"
version: "7.2.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_reactter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ homepage: https://2devs-team.github.io/reactter/
documentation: https://2devs-team.github.io/reactter/
repository: https://github.com/2devs-team/reactter/tree/master/packages/flutter_reactter
license: MIT License
version: 7.1.0
version: 7.2.0

environment:
sdk: ">=2.14.0 <4.0.0"
Expand All @@ -14,7 +14,7 @@ dependencies:
flutter:
sdk: flutter
meta: ^1.7.0
reactter: ^7.1.0
reactter: ^7.2.0

dev_dependencies:
flutter_driver:
Expand Down
58 changes: 25 additions & 33 deletions packages/reactter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ packages:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.5.0"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -69,10 +69,10 @@ packages:
dependency: transitive
description:
name: coverage
sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76"
sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e"
url: "https://pub.dev"
source: hosted
version: "1.7.2"
version: "1.8.0"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -101,10 +101,10 @@ packages:
dependency: transitive
description:
name: frontend_server_client
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
url: "https://pub.dev"
source: hosted
version: "3.2.0"
version: "4.0.0"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -141,10 +141,10 @@ packages:
dependency: transitive
description:
name: js
sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.7.1"
version: "0.6.7"
lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -173,18 +173,18 @@ packages:
dependency: "direct main"
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.15.0"
mime:
dependency: transitive
description:
name: mime
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
url: "https://pub.dev"
source: hosted
version: "1.0.5"
version: "1.0.4"
node_preamble:
dependency: transitive
description:
Expand Down Expand Up @@ -253,10 +253,10 @@ packages:
dependency: transitive
description:
name: shelf_web_socket
sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1"
sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "2.0.0"
source_map_stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -317,26 +317,26 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073"
sha256: d11b55850c68c1f6c0cf00eabded4e66c4043feaf6c0d7ce4a36785137df6331
url: "https://pub.dev"
source: hosted
version: "1.25.2"
version: "1.25.5"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
sha256: "2419f20b0c8677b2d67c8ac4d1ac7372d862dc6c460cdbb052b40155408cd794"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
version: "0.7.1"
test_core:
dependency: transitive
description:
name: test_core
sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4"
sha256: "4d070a6bc36c1c4e89f20d353bfd71dc30cdf2bd0e14349090af360a029ab292"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.2"
typed_data:
dependency: transitive
description:
Expand All @@ -349,10 +349,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246
url: "https://pub.dev"
source: hosted
version: "13.0.0"
version: "14.0.0"
watcher:
dependency: transitive
description:
Expand All @@ -361,22 +361,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
sha256: "1d8e795e2a8b3730c41b8a98a2dff2e0fb57ae6f0764a1c46ec5915387d257b2"
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
url: "https://pub.dev"
source: hosted
version: "2.4.4"
version: "2.4.0"
webkit_inspection_protocol:
dependency: transitive
description:
Expand All @@ -394,4 +386,4 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.3.0 <4.0.0"
dart: ">=3.0.0 <4.0.0"
2 changes: 1 addition & 1 deletion packages/reactter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ homepage: https://2devs-team.github.io/reactter/
documentation: https://2devs-team.github.io/reactter/
repository: https://github.com/2devs-team/reactter/tree/master/packages/reactter
license: MIT License
version: 7.1.0
version: 7.2.0

environment:
sdk: ">=2.14.0 <4.0.0"
Expand Down

0 comments on commit f0046dd

Please sign in to comment.