Skip to content

Commit

Permalink
updating packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Feb 5, 2024
1 parent 92f674a commit 3c0c389
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:

- run: cd packages/signals_core && dart pub get
- run: cd packages/signals_core && dart test
- run: cd packages/signals_flutter && flutter pub get
- run: cd packages/signals_flutter && flutter test
16 changes: 16 additions & 0 deletions packages/signals/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 4.0.0

- StreamSignal now will rebuild with signals are read in the callback to create the stream
- Stream/Future signal both can take an optional list of dependencies to rebuild on
- FutureSignal now extends StreamSignal
- StreamSignal can now rebuild/refresh
- StreamSignal can now pause/resume
- Adding computedAsync/computedFrom for similar API to angular
- Adding `.set(..., force: true)` to Signal/Computed to force a rebuild
- Adding `.recompute()` for Computed to recall the callback
- Adding autoDispose for Signal/Computed
- Adding some helper signals not included in the default export
- Signals for WidgetsBinding and SchedulerBinding
- Signals for Theme/MediaQuery
- TickerSignal for Flutter animations

## 3.0.0

- adding readonlySignalContainer to be existing signalContainer API
Expand Down
3 changes: 3 additions & 0 deletions packages/signals/lib/signals_flutter_extended.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
library signals_flutter;

export 'package:signals_flutter/extended.dart';
6 changes: 3 additions & 3 deletions packages/signals/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Reactivity made simple. Do more by doing less. Supports Flutter an
repository: https://github.com/rodydavis/signals.dart
homepage: https://rodydavis.github.io/signals.dart
documentation: https://rodydavis.github.io/signals.dart
version: 3.0.0
version: 4.0.0

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -12,8 +12,8 @@ environment:
dependencies:
flutter:
sdk: flutter
signals_core: ^3.0.0
signals_flutter: ^3.0.0
signals_core: ^4.0.0
signals_flutter: ^4.0.0

dev_dependencies:
flutter_test:
Expand Down
16 changes: 16 additions & 0 deletions packages/signals_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 4.0.0

- StreamSignal now will rebuild with signals are read in the callback to create the stream
- Stream/Future signal both can take an optional list of dependencies to rebuild on
- FutureSignal now extends StreamSignal
- StreamSignal can now rebuild/refresh
- StreamSignal can now pause/resume
- Adding computedAsync/computedFrom for similar API to angular
- Adding `.set(..., force: true)` to Signal/Computed to force a rebuild
- Adding `.recompute()` for Computed to recall the callback
- Adding autoDispose for Signal/Computed
- Adding some helper signals not included in the default export
- Signals for WidgetsBinding and SchedulerBinding
- Signals for Theme/MediaQuery
- TickerSignal for Flutter animations

## 3.0.0

- adding readonlySignalContainer to be existing signalContainer API
Expand Down
4 changes: 2 additions & 2 deletions packages/signals_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: signals_flutter
description: Flutter extensions for signals_core
version: 3.0.0
version: 4.0.0
repository: https://github.com/rodydavis/signals.dart
homepage: https://rodydavis.github.io/signals.dart
documentation: https://rodydavis.github.io/signals.dart
Expand All @@ -12,7 +12,7 @@ environment:
dependencies:
flutter:
sdk: flutter
signals_core: ^3.0.0
signals_core: ^4.0.0

dev_dependencies:
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion packages/signals_flutter/test/watch_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main() {
await tester.pumpAndSettle();
expect(find.text('Count: 2|0'), findsOneWidget);
expect(_SignalWidgetState.rebuildCount, 2);
expect(_SignalWidgetState.watchCount, 5);
expect(_SignalWidgetState.watchCount, 6);
});
}

Expand Down

0 comments on commit 3c0c389

Please sign in to comment.