Skip to content

Bump fpdart from 0.2.0 to 0.3.0 - #2

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/fpdart-0.3.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/fpdart-0.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 17, 2022

Copy link
Copy Markdown

Bumps fpdart from 0.2.0 to 0.3.0.

Release notes

Sourced from fpdart's releases.

v0.3.0

  • Inverted onSome and onNone functions parameters in match method of Option [⚠️ BREAKING CHANGE] (Read more on why 👉 #56)
/// Everywhere you are using `Option.match` you must change this:
final match = option.match(
  (a) => print('Some($a)'),
  () => print('None'), // <- `None` second 👎 
);
/// to this (invert parameters order):
final match = option.match(
() => print('None'), // <- None first 👍
(a) => print('Some($a)'),
);

  • Added traverse and sequence methods (#55)
    • traverseList
    • traverseListWithIndex
    • sequenceList
    • traverseListSeq
    • traverseListWithIndexSeq
    • sequenceListSeq
/// "a40" is invalid 💥
final inputValues = ["10", "20", "30", "a40"];
/// Verify that all the values can be converted to [int] 🔐
///
/// If any of them is invalid, then the result is [None] 🙅‍♂️
final traverseOption = inputValues.traverseOption(
(a) => Option.tryCatch(
/// If a does not contain a valid integer literal a [FormatException] is thrown
() => int.parse(a),
),
);

  • Added bindEither method in TaskEither (#58)
/// Chain [Either] to [TaskEither]
TaskEither<String, int> binding =
    TaskEither<String, String>.of("String").bindEither(Either.of(20));
  • Added lefts, rights, and partitionEithers methods to Either (#57)
final list = [
  right<String, int>(1),
  right<String, int>(2),
  left<String, int>('a'),
  left<String, int>('b'),
  right<String, int>(3),
</tr></table> 

... (truncated)

Changelog

Sourced from fpdart's changelog.

v0.3.0 - 11 October 2022

  • Inverted onSome and onNone functions parameters in match method of Option [⚠️ BREAKING CHANGE] (Read more on why 👉 #56)
/// Everywhere you are using `Option.match` you must change this:
final match = option.match(
  (a) => print('Some($a)'),
  () => print('None'), // <- `None` second 👎 
);
/// to this (invert parameters order):
final match = option.match(
() => print('None'), // <- None first 👍
(a) => print('Some($a)'),
);

  • Added traverse and sequence methods (#55)
    • traverseList
    • traverseListWithIndex
    • sequenceList
    • traverseListSeq
    • traverseListWithIndexSeq
    • sequenceListSeq
/// "a40" is invalid 💥
final inputValues = ["10", "20", "30", "a40"];
/// Verify that all the values can be converted to [int] 🔐
///
/// If any of them is invalid, then the result is [None] 🙅‍♂️
final traverseOption = inputValues.traverseOption(
(a) => Option.tryCatch(
/// If a does not contain a valid integer literal a [FormatException] is thrown
() => int.parse(a),
),
);

  • Added bindEither method in TaskEither (#58)
/// Chain [Either] to [TaskEither]
TaskEither<String, int> binding =
    TaskEither<String, String>.of("String").bindEither(Either.of(20));
  • Added lefts, rights, and partitionEithers methods to Either (#57)
final list = [
  right<String, int>(1),
  right<String, int>(2),
  left<String, int>('a'),
  left<String, int>('b'),
  right<String, int>(3),
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

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)

Bumps [fpdart](https://github.com/SandroMaglione/fpdart) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/SandroMaglione/fpdart/releases)
- [Changelog](https://github.com/SandroMaglione/fpdart/blob/main/CHANGELOG.md)
- [Commits](SandroMaglione/fpdart@v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: fpdart
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Oct 17, 2022
@dependabot @github

dependabot Bot commented on behalf of github Dec 19, 2022

Copy link
Copy Markdown
Author

Superseded by #3.

@dependabot dependabot Bot closed this Dec 19, 2022
@dependabot
dependabot Bot deleted the dependabot/pub/fpdart-0.3.0 branch December 19, 2022 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants