Skip to content

Add ReaderTask, TaskEither and IO flatMaps#1874

Merged
gcanti merged 4 commits into
gcanti:masterfrom
sukovanej:feat/flatMaps
May 21, 2023
Merged

Add ReaderTask, TaskEither and IO flatMaps#1874
gcanti merged 4 commits into
gcanti:masterfrom
sukovanej:feat/flatMaps

Conversation

@sukovanej

Copy link
Copy Markdown
Contributor
  • flatMapReaderTask
  • flatMapTaskEither
  • flatMapIO (+ internal-only new hkt type lambdas and instances)

@sukovanej sukovanej marked this pull request as draft May 21, 2023 12:06
@sukovanej sukovanej changed the title Feat/flat maps Add ReaderTask, TaskEither and IO flatMaps May 21, 2023
@sukovanej sukovanej marked this pull request as ready for review May 21, 2023 12:18
@sukovanej

Copy link
Copy Markdown
Contributor Author

@gcanti at this stage, do you prefer introducing the new hkt internally? Now as I noticed it, I might have done the same e.g. for the tapIO.

@gcanti

gcanti commented May 21, 2023

Copy link
Copy Markdown
Owner

do you prefer introducing the new hkt internally?

Do you mean compared to the old system with overloading? When possible, yes, mostly for our convenience though since it's all internal stuff.

@gcanti gcanti added this to the 2.16 milestone May 21, 2023
@gcanti gcanti merged commit c95947c into gcanti:master May 21, 2023
renovate Bot referenced this pull request in valora-xyz/wallet Aug 25, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fp-ts](https://togithub.com/gcanti/fp-ts) | [`2.13.1` ->
`2.16.1`](https://renovatebot.com/diffs/npm/fp-ts/2.13.1/2.16.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fp-ts/2.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fp-ts/2.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fp-ts/2.13.1/2.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fp-ts/2.13.1/2.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>gcanti/fp-ts (fp-ts)</summary>

###
[`v2.16.1`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2161)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.16.0...01b8661f2fa594d6f2010573f010d358e6808d13)

**Bug Fix**

- fix type signature of `ReaderTaskEither.tapReaderIO`,
[#&#8203;1895](https://togithub.com/gcanti/fp-ts/issues/1895)

###
[`v2.16.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2160)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.15.0...2.16.0)

- `tapEither` (dual) (aka `chainFirstEitherK` / `chainFirstEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1864](https://togithub.com/gcanti/fp-ts/pull/1864)
- `tapIO` (dual) (aka `chainFirstIOK`)
[https://github.com/gcanti/fp-ts/pull/1865](https://togithub.com/gcanti/fp-ts/pull/1865)
- `as` / `asUnit`
[https://github.com/gcanti/fp-ts/pull/1867](https://togithub.com/gcanti/fp-ts/pull/1867)
- `tapTask` (dual) (aka `chainFirstTaskK`)
[https://github.com/gcanti/fp-ts/pull/1869](https://togithub.com/gcanti/fp-ts/pull/1869)
- `mapError` (dual) (aka `mapLeft`)
[https://github.com/gcanti/fp-ts/pull/1870](https://togithub.com/gcanti/fp-ts/pull/1870)
- `mapBoth` (dual) (aka `bimap`)
[https://github.com/gcanti/fp-ts/pull/1872](https://togithub.com/gcanti/fp-ts/pull/1872)
- `tapReader` (dual) (aka `chainFirstReaderK` / `chainFirstIReaderKW`)
[https://github.com/gcanti/fp-ts/pull/1871](https://togithub.com/gcanti/fp-ts/pull/1871)
- `tapReaderEither` (dual) (aka `chainFirstReaderEitherK` /
`chainFirstEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapReaderIO` (dual) (aka `chainFirstReaderIOK`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapReaderTask` (dual) (aka `chainFirstReaderTaskK`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapTaskEither` (dual) (aka `chainFirstTaskEitherK` /
`chainFirstTaskEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `flatMapReaderTask` (dual) (aka `chainReaderTaskK` /
`chainReaderTaskKW`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `flatMapTaskEither` (dual) (aka `chainTaskEitherK` /
`chainTaskEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `flatMapIO` (dual) (aka `chainIOK`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `Option.orElse` (dual) (aka `alt` / `altW`)
[https://github.com/gcanti/fp-ts/pull/1868](https://togithub.com/gcanti/fp-ts/pull/1868)
- `flatMapTask` (dual) (aka `chainTaskK`)
[https://github.com/gcanti/fp-ts/pull/1876](https://togithub.com/gcanti/fp-ts/pull/1876)
- `flatMapReader` (dual) (aka `chainReaderK` / `chainReaderKW`)
[https://github.com/gcanti/fp-ts/pull/1876](https://togithub.com/gcanti/fp-ts/pull/1876)
- `flatMapReaderIO` (dual) (aka `chainReaderIOK` / `chainReaderIOKW`)
[https://github.com/gcanti/fp-ts/pull/1879](https://togithub.com/gcanti/fp-ts/pull/1879)
- `flatMap*` (aka `chain*K` / `chain*KW`)
[https://github.com/gcanti/fp-ts/pull/1880](https://togithub.com/gcanti/fp-ts/pull/1880)

###
[`v2.15.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2150)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.14.0...2.15.0)

**New Feature**

-   `function`
    -   add `LazyArg`
-   add `tap` to
    -   `Either`
    -   `IO`
    -   `IOEither`
    -   `IOOption`
    -   `Option`
    -   `Reader`
    -   `ReaderEither`
    -   `ReaderIO`
    -   `ReaderTask`
    -   `ReaderTaskEither`
    -   `State`
    -   `StateReaderTaskEither`
    -   `Task`
    -   `TaskEither`
    -   `TaskOption`
-   add `flatMapNullable` (dual) to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `flatMapOption` (dual) to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `liftNullable` to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `liftOption` to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `flatMapEither` (dual) to
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `TaskEither`
-   `Array`
    -   add index to `flatMap`
-   `NonEmptyArray`
    -   add index to `flatMap`
-   `ReadonlyArray`
    -   add index to `flatMap`
-   `ReadonlyNonEmptyArray`
    -   add index to `flatMap`

###
[`v2.14.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2140)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.13.2...2.14.0)

**New Feature**

-   add `flatMap` to
    -   `Either`
    -   `IOEither`
    -   `Reader`
    -   `ReaderEither`
    -   `ReaderIO`
    -   `ReaderTask`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
    -   `NonEmptyArray`
    -   `ReadonlyNonEmptyArray`
    -   `Tree`
    -   `Array`
    -   `Identity`
    -   `IO`
    -   `IOOption`
    -   `Option`
    -   `ReadonlyArray`
    -   `State`
    -   `Task`
    -   `TaskOption`

###
[`v2.13.2`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2132)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.13.1...2.13.2)

- add `chainOptionKW`,
[#&#8203;1846](https://togithub.com/gcanti/fp-ts/issues/1846)
([@&#8203;DenisFrezzato](https://togithub.com/DenisFrezzato))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzYuNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate Bot referenced this pull request in ScaleLeap/amazon-advertising-api-sdk Jun 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fp-ts](https://togithub.com/gcanti/fp-ts) | [`2.12.1` ->
`2.16.6`](https://renovatebot.com/diffs/npm/fp-ts/2.12.1/2.16.6) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fp-ts/2.16.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fp-ts/2.16.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fp-ts/2.12.1/2.16.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fp-ts/2.12.1/2.16.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>gcanti/fp-ts (fp-ts)</summary>

###
[`v2.16.6`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2166)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.16.5...89a772e95e414acee679f42f56527606f7b61f30)

**Polish**

Allow dependencies to be widen when using orLeft
[#&#8203;1938](https://togithub.com/gcanti/fp-ts/issues/1938)

###
[`v2.16.5`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2165)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/7e70370cfe1f4f416c12d5d869d47d04018d670d...2.16.5)

**Polish**

Resolved a RangeError where the maximum call stack size was exceeded
when invoking `chainWithIndex`,
[#&#8203;1931](https://togithub.com/gcanti/fp-ts/issues/1931)

###
[`v2.16.4`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2164)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/dbd420c05481020c67852c0744b8f4d15b3b80ea...7e70370cfe1f4f416c12d5d869d47d04018d670d)

**Polish**

Fix `__PURE__` annotation placement, closes
[#&#8203;1926](https://togithub.com/gcanti/fp-ts/issues/1926)

###
[`v2.16.3`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2163)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/0d5f67db78730050620271a50deaaa897bc4525b...dbd420c05481020c67852c0744b8f4d15b3b80ea)

**Polish**

`Either.ts`: `toError`: Don't fail when a value can't be converted to a
primitive, [#&#8203;1924](https://togithub.com/gcanti/fp-ts/issues/1924)

###
[`v2.16.2`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2162)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/01b8661f2fa594d6f2010573f010d358e6808d13...0d5f67db78730050620271a50deaaa897bc4525b)

**Polish**

Fix `"__PURE__"` annotation placement
[#&#8203;1919](https://togithub.com/gcanti/fp-ts/issues/1919), closes
[#&#8203;1916](https://togithub.com/gcanti/fp-ts/issues/1916)

###
[`v2.16.1`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2161)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.16.0...01b8661f2fa594d6f2010573f010d358e6808d13)

**Bug Fix**

- fix type signature of `ReaderTaskEither.tapReaderIO`,
[#&#8203;1895](https://togithub.com/gcanti/fp-ts/issues/1895)

###
[`v2.16.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2160)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.15.0...2.16.0)

- `tapEither` (dual) (aka `chainFirstEitherK` / `chainFirstEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1864](https://togithub.com/gcanti/fp-ts/pull/1864)
- `tapIO` (dual) (aka `chainFirstIOK`)
[https://github.com/gcanti/fp-ts/pull/1865](https://togithub.com/gcanti/fp-ts/pull/1865)
- `as` / `asUnit`
[https://github.com/gcanti/fp-ts/pull/1867](https://togithub.com/gcanti/fp-ts/pull/1867)
- `tapTask` (dual) (aka `chainFirstTaskK`)
[https://github.com/gcanti/fp-ts/pull/1869](https://togithub.com/gcanti/fp-ts/pull/1869)
- `mapError` (dual) (aka `mapLeft`)
[https://github.com/gcanti/fp-ts/pull/1870](https://togithub.com/gcanti/fp-ts/pull/1870)
- `mapBoth` (dual) (aka `bimap`)
[https://github.com/gcanti/fp-ts/pull/1872](https://togithub.com/gcanti/fp-ts/pull/1872)
- `tapReader` (dual) (aka `chainFirstReaderK` / `chainFirstIReaderKW`)
[https://github.com/gcanti/fp-ts/pull/1871](https://togithub.com/gcanti/fp-ts/pull/1871)
- `tapReaderEither` (dual) (aka `chainFirstReaderEitherK` /
`chainFirstEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapReaderIO` (dual) (aka `chainFirstReaderIOK`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapReaderTask` (dual) (aka `chainFirstReaderTaskK`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `tapTaskEither` (dual) (aka `chainFirstTaskEitherK` /
`chainFirstTaskEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1873](https://togithub.com/gcanti/fp-ts/pull/1873)
- `flatMapReaderTask` (dual) (aka `chainReaderTaskK` /
`chainReaderTaskKW`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `flatMapTaskEither` (dual) (aka `chainTaskEitherK` /
`chainTaskEitherKW`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `flatMapIO` (dual) (aka `chainIOK`)
[https://github.com/gcanti/fp-ts/pull/1874](https://togithub.com/gcanti/fp-ts/pull/1874)
- `Option.orElse` (dual) (aka `alt` / `altW`)
[https://github.com/gcanti/fp-ts/pull/1868](https://togithub.com/gcanti/fp-ts/pull/1868)
- `flatMapTask` (dual) (aka `chainTaskK`)
[https://github.com/gcanti/fp-ts/pull/1876](https://togithub.com/gcanti/fp-ts/pull/1876)
- `flatMapReader` (dual) (aka `chainReaderK` / `chainReaderKW`)
[https://github.com/gcanti/fp-ts/pull/1876](https://togithub.com/gcanti/fp-ts/pull/1876)
- `flatMapReaderIO` (dual) (aka `chainReaderIOK` / `chainReaderIOKW`)
[https://github.com/gcanti/fp-ts/pull/1879](https://togithub.com/gcanti/fp-ts/pull/1879)
- `flatMap*` (aka `chain*K` / `chain*KW`)
[https://github.com/gcanti/fp-ts/pull/1880](https://togithub.com/gcanti/fp-ts/pull/1880)

###
[`v2.15.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2150)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.14.0...2.15.0)

**New Feature**

-   `function`
    -   add `LazyArg`
-   add `tap` to
    -   `Either`
    -   `IO`
    -   `IOEither`
    -   `IOOption`
    -   `Option`
    -   `Reader`
    -   `ReaderEither`
    -   `ReaderIO`
    -   `ReaderTask`
    -   `ReaderTaskEither`
    -   `State`
    -   `StateReaderTaskEither`
    -   `Task`
    -   `TaskEither`
    -   `TaskOption`
-   add `flatMapNullable` (dual) to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `flatMapOption` (dual) to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `liftNullable` to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `liftOption` to
    -   `Either`
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
-   add `flatMapEither` (dual) to
    -   `IOEither`
    -   `ReaderEither`
    -   `ReaderTaskEither`
    -   `TaskEither`
-   `Array`
    -   add index to `flatMap`
-   `NonEmptyArray`
    -   add index to `flatMap`
-   `ReadonlyArray`
    -   add index to `flatMap`
-   `ReadonlyNonEmptyArray`
    -   add index to `flatMap`

###
[`v2.14.0`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2140)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.13.2...2.14.0)

**New Feature**

-   add `flatMap` to
    -   `Either`
    -   `IOEither`
    -   `Reader`
    -   `ReaderEither`
    -   `ReaderIO`
    -   `ReaderTask`
    -   `ReaderTaskEither`
    -   `StateReaderTaskEither`
    -   `TaskEither`
    -   `NonEmptyArray`
    -   `ReadonlyNonEmptyArray`
    -   `Tree`
    -   `Array`
    -   `Identity`
    -   `IO`
    -   `IOOption`
    -   `Option`
    -   `ReadonlyArray`
    -   `State`
    -   `Task`
    -   `TaskOption`

###
[`v2.13.2`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2132)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.13.1...2.13.2)

- add `chainOptionKW`,
[#&#8203;1846](https://togithub.com/gcanti/fp-ts/issues/1846)
([@&#8203;DenisFrezzato](https://togithub.com/DenisFrezzato))

###
[`v2.13.1`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2131)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.13.0...2.13.1)

-   **New Feature**
    -   new modules:
- `ReaderIO`,
[#&#8203;1738](https://togithub.com/gcanti/fp-ts/issues/1738)
([@&#8203;sukovanej](https://togithub.com/sukovanej))
    -   do notation:
- add `let` helpers,
[#&#8203;1725](https://togithub.com/gcanti/fp-ts/issues/1725)
([@&#8203;Punie](https://togithub.com/Punie))
    -   `Alternative`
- add `getAlternativeMonoid`,
[#&#8203;1717](https://togithub.com/gcanti/fp-ts/issues/1717)
([@&#8203;willheslam](https://togithub.com/willheslam))
    -   `function`
- `flip` is now curried,
[#&#8203;1748](https://togithub.com/gcanti/fp-ts/issues/1748)
([@&#8203;thewilkybarkid](https://togithub.com/thewilkybarkid))
    -   `pipeable`
- add pipeable helpers,
[#&#8203;1764](https://togithub.com/gcanti/fp-ts/issues/1764)
([@&#8203;gcanti](https://togithub.com/gcanti))
            -   `alt`
            -   `ap`
            -   `bimap`
            -   `chain`
            -   `compose`
            -   `contramap`
            -   `extend`
            -   `filter`
            -   `filterMap`
            -   `filterMapWithIndex`
            -   `filterWithIndex`
            -   `foldMap`
            -   `foldMapWithIndex`
            -   `map`
            -   `mapLeft`
            -   `mapWithIndex`
            -   `partition`
            -   `partitionMap`
            -   `partitionMapWithIndex`
            -   `partitionWithIndex`
            -   `promap`
            -   `reduce`
            -   `reduceRight`
            -   `reduceRightWithIndex`
            -   `reduceWithIndex`
    -   `ReaderTask`
- add `ReaderIO` constructors/combinators,
[#&#8203;1773](https://togithub.com/gcanti/fp-ts/issues/1773)
([@&#8203;thewilkybarkid](https://togithub.com/thewilkybarkid))
    -   `ReaderTaskEither`
- add `ReaderIO` constructors/combinators,
[#&#8203;1774](https://togithub.com/gcanti/fp-ts/issues/1774)
([@&#8203;thewilkybarkid](https://togithub.com/thewilkybarkid))
    -   `TaskEither`
- add `chainTaskOptionKW`,
[#&#8203;1744](https://togithub.com/gcanti/fp-ts/issues/1744)
([@&#8203;AmirabbasJ](https://togithub.com/AmirabbasJ))
-   **Polish**
- backport from v3 some handy defaults defined in natural
transformations/combinators/constructors
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   fix wrong type parameter order:
        -   `FromIO`
            -   `chainIOK`
        -   `FromTask`
            -   `chainTaskK`
            -   `chainFirstTaskK`
        -   `Whiterable`
            -   `FilterE1`
        -   `TheseT`
            -   `both`
        -   `Either`
            -   `apFirstW`
            -   `apSecondW`
        -   `IOEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `Reader`
            -   `apFirstW`
            -   `apSecondW`
        -   `ReaderEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `ReaderTaskEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `StateReaderTaskEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `TaskEither`
            -   `apFirstW`
            -   `apSecondW`
    -   `Apply`
- add `ap` overloadings,
[#&#8203;1721](https://togithub.com/gcanti/fp-ts/issues/1721)
([@&#8203;waynevanson](https://togithub.com/waynevanson))
    -   `Either`
- remove useless type parameter in `exists`
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `ReadonlyRecord`
- fix `fromEntries` return type, closes
[#&#8203;1745](https://togithub.com/gcanti/fp-ts/issues/1745)
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `TaskEither`
- fix `fromPredicate` signature
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `These`
- add missing `fromPredicate`
([@&#8203;gcanti](https://togithub.com/gcanti))
- remove useless type parameter in `exists`
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `Traversable`
- add more overloadings to traverse / sequence helpers,
[#&#8203;1758](https://togithub.com/gcanti/fp-ts/issues/1758)
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `Writer`
- `getChain` requires a `Semigroup` instead of a `Monoid`
([@&#8203;gcanti](https://togithub.com/gcanti))
-   **Deprecation**
    -   `function`
- deprecate uncurried `flip` function,
[#&#8203;1748](https://togithub.com/gcanti/fp-ts/issues/1748)
([@&#8203;thewilkybarkid](https://togithub.com/thewilkybarkid))

### [`v2.13.0`](https://togithub.com/gcanti/fp-ts/releases/tag/2.13.0)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.12.3...2.13.0)

##### BROKEN RELEASE

-   **Experimental**
- add `exports` field to `package.json` in order to support
moduleResolution node12/nodenext,
[#&#8203;1765](https://togithub.com/gcanti/fp-ts/issues/1765)
([@&#8203;gcanti](https://togithub.com/gcanti))

### [`v2.12.3`](https://togithub.com/gcanti/fp-ts/releases/tag/2.12.3)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.12.2...2.12.3)

-   **Polish**
    -   `Apply`
- add `ap` overloadings,
[#&#8203;1721](https://togithub.com/gcanti/fp-ts/issues/1721)
([@&#8203;waynevanson](https://togithub.com/waynevanson))
    -   `ReadonlyRecord`
- fix `fromEntries` return type, closes
[#&#8203;1745](https://togithub.com/gcanti/fp-ts/issues/1745)
([@&#8203;gcanti](https://togithub.com/gcanti))
    -   `TaskEither`
- add `chainTaskOptionKW`,
[#&#8203;1744](https://togithub.com/gcanti/fp-ts/issues/1744)
([@&#8203;AmirabbasJ](https://togithub.com/AmirabbasJ))
    -   fix wrong type parameter order:
        -   `FromIO`
            -   `chainIOK`
        -   `FromTask`
            -   `chainTaskK`
            -   `chainFirstTaskK`
        -   `Whiterable`
            -   `FilterE1`
        -   `TheseT`
            -   `both`
        -   `Either`
            -   `apFirstW`
            -   `apSecondW`
        -   `IOEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `Reader`
            -   `apFirstW`
            -   `apSecondW`
        -   `ReaderEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `ReaderTaskEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `StateReaderTaskEither`
            -   `apFirstW`
            -   `apSecondW`
        -   `TaskEither`
            -   `apFirstW`
            -   `apSecondW`

###
[`v2.12.2`](https://togithub.com/gcanti/fp-ts/blob/HEAD/CHANGELOG.md#2122)

[Compare
Source](https://togithub.com/gcanti/fp-ts/compare/2.12.1...2.12.2)

-   **Polish**
    -   `ReadonlyRecord` / `Record`
- add `Applicative4` overloadings to `traverse` / `traverseWithIndex`,
[#&#8203;1733](https://togithub.com/gcanti/fp-ts/issues/1733)
([@&#8203;mlegenhausen](https://togithub.com/mlegenhausen))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekday" in timezone Etc/UTC,
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ScaleLeap/amazon-advertising-api-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlYm90Il19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants