alien_signals 0.4.1 copy "alien_signals: ^0.4.1" to clipboard
alien_signals: ^0.4.1 copied to clipboard

The lightest signal library - Dart implementation of alien-signals.

v0.4.1 #

  • refactor: simplifying unlink sub in effect cleanup
  • refactor: update pauseTracking and resumeTracking to use setCurrentSub
  • refactor(preset): change queuedEffects to map like JS Array
  • refactor: remove generic type from effect, effectScope
  • refactor: more accurate unwatched handling
  • fix: invalidate parent effect when executing effectScope
  • test: update untrack tests
  • test: use setCurrentSub instead of pauseTracking

NOTE: Sync upstream v2.0.4 version.

v0.4.0 #

Major Changes #

  • Sync with upstream alien-signal v2.0.1
  • Complete package restructuring and reorganization
  • Remove workspace structure in favor of a single package repository

Features #

  • Implement improved reactive system architecture
  • Add comprehensive signal management capabilities
    • Add signal() function for creating reactive state
    • Add computed() function for derived state
    • Add effect() function for side effects
    • Add effectScope() for managing groups of effects
  • Add batch processing with startBatch() and endBatch()
  • Add tracking control with pauseTracking() and resumeTracking()

Development #

  • Lower minimum Dart SDK requirement to ^3.6.0 (from ^3.7.0)
  • Add extensive test suite for reactivity features
  • Remove separate packages in favor of a single focused package
  • Update CI workflow for multi-SDK testing
  • Add comprehensive examples showing signal features

Documentation #

  • Expanded example code to demonstrate more signal features
8
likes
140
points
625
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

The lightest signal library - Dart implementation of alien-signals.

Repository (GitHub)

Topics

#signal #signals #reactive #alien-signals #state

Documentation

API reference

Funding

Consider supporting this project:

github.com
opencollective.com

License

MIT (license)

More

Packages that depend on alien_signals