diff --git a/CHANGELOG.md b/CHANGELOG.md index 0252882e4..bd4d63ab8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ **Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a high state of flux, you're at risk of it changing without notice. +# 1.19.2 + +- **Bug Fix** + - fix `Reader.of` definition (@gcanti) + # 1.19.1 - **Bug Fix** diff --git a/docs/modules/Reader.ts.md b/docs/modules/Reader.ts.md index d3980a1f4..888b29b06 100644 --- a/docs/modules/Reader.ts.md +++ b/docs/modules/Reader.ts.md @@ -104,7 +104,7 @@ export const URI = ... **Signature** ```ts -export const of: (a: A) => Reader = ... +export const of: (a: A) => Reader = ... ``` Added in v1.19.0 diff --git a/package.json b/package.json index fee7b76fb..8031a9c41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fp-ts", - "version": "1.19.1", + "version": "1.19.2", "description": "Functional programming in TypeScript", "files": [ "lib", diff --git a/src/Reader.ts b/src/Reader.ts index 98dc0abf5..76b35ccc6 100644 --- a/src/Reader.ts +++ b/src/Reader.ts @@ -130,7 +130,7 @@ export const reader: Monad2 & Profunctor2 & Category2 & Strong2(a: A) => Reader = reader.of +export const of: (a: A) => Reader = reader.of const { ap, apFirst, apSecond, chain, chainFirst, compose, flatten, map, promap } = pipeable(reader)