Skip to content

v7.0.0

Compare
Choose a tag to compare
@CarLeonDev CarLeonDev released this 21 Mar 00:42
· 184 commits to master since this release
0c283c1

Enhancements

  • feat(core, framework): Add Reactter.batch and Reactter.untracked methods.
    • Reactter.batch hepls to execute the given callback function within a batch operation. A batch operation allows multiple state changes to be grouped together, ensuring that any associated side effects are only triggered once, improving performance and reducing unnecessary re-renders.
    • Reactter.untracked hepls to execute the given callback function without tracking any state changes. This means that any state changes that occur inside the callback function will not trigger any side effects.
  • refactor(framework): Refactor lifecycle event handling and add lifecycle observer interface.
  • refactor(core, framework, types): Add LogLevel enum and update defaultLogWriterCallback signature.
  • refactor(hooks): Improve UseEffect performance and readability.
  • feat(framework, widgets): Add ReactterProvider.lazy constructor for lazy instance initialization.
  • refactor(widgets): Add idproperty to ReactterComponent for debugging information.

Breakings

Fixes

  • fix(obj): Fix equality comparison in ObjBase class.
  • fix(core): Resolve event for both types(instanceRef, instanceObj) and log event error.
  • fix(core): Find the instance registered by the instance manager when searching for the extended class.
  • refactor(core): Fix out-of-bounds index on getHashCodeRefAt method.

Internal

  • refactor(framework, widgets, test): Change the position of InstanceContextBuilder(InstanceChildBuilder now) arguments.
  • refactor(framework, widgets, test): Improve framework structure and simplify the ReactterProvider code.
  • refactor: Refactor file structure and imports.
  • refactor(core, framework, hooks, signal): Rename variables of ReactterZone and improve ReactterState implementation.
  • refactor(test): Add lazyState, untracked and batch tests.
  • refactor(core, test): Fix lifecycle event handling and add lifecycle_observer test.
  • refactor(core, framework, test): Refactor event manager and remove unused code for 100% coverage.
  • refactor(core, framework): Add BindingZone class and update references.
  • fix(core): Fix generic type constraint in _getInstanceRef method.
  • refactor(core): Refactor event handling logic and optimize listener removal.
  • test(core, hooks): Add tests for signal usage on instance and binding to another instance.
  • test(widgets): Add ReactterProvider.lazy tests, update ReactterComponent tests and add LifecycleObserver to TestController.
  • fix(example): Update dependencies and fix code formatting on examples.

What's Changed

Full Changelog: v6.2.0...v7.0.0