Removed parameter from EitherfromNullable [⚠️ BREAKING CHANGE]
final either = Either<String, int>.fromNullable(value, (r) => 'none');
/// 👆 Removed the value (r) (it was always null anyway 💁🏼♂️) 👇
final either = Either<String, int>.fromNullable(value, () => 'none');
Added chainEither to TaskEither
Added safeCast (Either and Option)
Added safeCastStrict (Either and Option)
int intValue = 10;
/// Unhandled exception: type 'int' is not a subtype of type 'List<int>' in type cast
final waitWhat = intValue as List<int>;
final first = waitWhat.first;
/// Safe 🎯
final wellYeah = Either<String, List<int>>.safeCast(
intValue,
</tr></table>
Removed parameter from EitherfromNullable [⚠️ BREAKING CHANGE]
final either = Either<String, int>.fromNullable(value, (r) => 'none');
/// 👆 Removed the value (r) (it was always null anyway 💁🏼♂️) 👇
final either = Either<String, int>.fromNullable(value, () => 'none');
Added chainEither to TaskEither
Added safeCast (Either and Option)
Added safeCastStrict (Either and Option)
int intValue = 10;
/// Unhandled exception: type 'int' is not a subtype of type 'List<int>' in type cast
final waitWhat = intValue as List<int>;
final first = waitWhat.first;
/// Safe 🎯
final wellYeah = Either<String, List<int>>.safeCast(
intValue,
</tr></table>
Only call onAdd and onError if the subject is not closed.
This ensures BehaviorSubject and ReplaySubject do not update their values after they have been closed.
Subject.stream now returns a read-onlyStream.
Previously, Subject.stream was identical to the Subject, so we could add events to it, for example: (subject.stream as Sink<T>).add(event).
This behavior is now disallowed, and will throw a TypeError if attempted. Use Subject.sink/Subject itself for adding events.
Change return type of ReplaySubject<T>.stream to ReplayStream<T>.
Only call onAdd and onError if the subject is not closed.
This ensures BehaviorSubject and ReplaySubject do not update their values after they have been closed.
Subject.stream now returns a read-onlyStream.
Previously, Subject.stream was identical to the Subject, so we could add events to it, for example: (subject.stream as Sink<T>).add(event).
This behavior is now disallowed, and will throw a TypeError if attempted. Use Subject.sink/Subject itself for adding events.
Change return type of ReplaySubject<T>.stream to ReplayStream<T>.
Internal refactoring of Subject.addStream.
0.27.6 (2022-11-11)
Rx.using/UsingStream: resourceFactory can now return a Future.
This allows for asynchronous resource creation.
Rx.range/RangeStream: ensure RangeStream is only listened to once.
0.27.5 (2022-07-16)
Bug fixes
Fix issue #683: Throws runtime type error when using extension
methods on a Stream<R> but its type annotation is Stream<T>, R is a subtype of T
(covariance issue with StreamTransformer).
Stream<num> s1 = Stream<int>.fromIterable([1, 2, 3]);
// throws "type 'SwitchMapStreamTransformer<num, num>' is not a subtype of type 'StreamTransformer<int, num>' of 'streamTransformer'"
s1.switchMap((v) => Stream.value(v));
Stream<int?> s2 = Stream<int>.fromIterable([1, 2, 3]);
// throws "type 'SwitchMapStreamTransformer<int?, int?>' is not a subtype of type 'StreamTransformer<int, int?>' of 'streamTransformer'"
s2.switchMap((v) => Stream.value(v));
Extension methods were previously implemented via stream.transform(streamTransformer), now
via streamTransformer.bind(stream) to avoid this issue.
Fix concatEager: activeSubscription should be changed to next subscription.
Code refactoring
Change return type of pairwise to Stream<List<T>>.
0.27.4 (2022-05-29)
Bug fixes
... (truncated)
Commits
3d1b6c0 chore(publish): prepare for v0.27.7 (#701)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Flutterando/slidy/network/alerts).
Bumps http, fpdart, mocktail, rxdart and fhir_yaml. These dependencies needed to be updated together. Updates
http
from 0.13.2 to 0.13.5Commits
Updates
fpdart
from 0.2.0 to 0.4.0Release notes
Sourced from fpdart's releases.
... (truncated)
Changelog
Sourced from fpdart's changelog.
... (truncated)
Commits
201b3d0
Open meteo example (#63)44884d7
release v0.4.02bcda29
examples of tasks and futuresebe22ad
added examples to README458f673
updated CHANGELOGbeec642
README for open meteo api example17dd4ba
refactoring and removed unneeded code7a83ab6
completed tests for meteo location7d69212
valid tests for fpdart open meteo api553c2af
tests for open meteo apiUpdates
mocktail
from 0.1.4 to 0.3.0Release notes
Sourced from mocktail's releases.
Commits
c4ca18f
chore(mocktail): v0.3.0 (#117)447575a
feat(mocktail): improve verifyNoMoreInteractions failure message (#118)70e915f
docs(mocktail): improve argument matcher documentation in README (#102)c9471cb
docs: fix typo in _registerMatcher inline docs (#101)6dcdef0
chore(mocktail_image_network): v0.3.0-dev.1 (#99)ed5aa6a
chore(mocktail): v0.3.0-dev.1 (#98)6db5916
refactor(mocktail): type arg support improvements (#97)eee9d4b
refactor(mocktail): resolve analysis warnings (#96)461be1f
feat!: support type arguments (#67)4614a29
docs: fix expected value in README (#94)Updates
rxdart
from 0.26.0 to 0.27.7Release notes
Sourced from rxdart's releases.
... (truncated)
Changelog
Sourced from rxdart's changelog.
... (truncated)
Commits
3d1b6c0
chore(publish): prepare for v0.27.7 (#701)b0d6ad1
refactor(subject): addStream (#700)e1f6cd9
refactor(subject):Subject.stream
now returns a read-onlyStream
(#699)1a8fcef
ci: add dart 2.17.045f8c5e
fix(subject): only callonAdd
andonError
if the subject is not closed (#...8916c7c
chore(publish): prepare for v0.27.6 (#697)9464cdd
refactor(Rx.using):resourceFactory
can return aFuture
(#696)c0566b4
fix(range): ensure RangeStream is only listened to once (#694)58c82c0
fix(range): make sureRangeStream
can only be listened to once (#690)e13dad0
prepare for v0.27.5 (#688)Updates
fhir_yaml
from 0.4.0 to 0.9.0Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Flutterando/slidy/network/alerts).