Skip to content

Releases: ramda/types

v0.30.0

02 May 03:43
Compare
Choose a tag to compare

types-ramda@0.30.0 release to coincide with ramda@0.30.0. Adds support for new isNotEmpty and flow functions.

Semi-breaking change: R.head(s: string) and R.last(s: string) now return string | undefined, as R.head('')/R.last('') will return you undefined, correctly reflecting the runtime behavior. A short-term solution if you get type-checking errors on upgrade is to utilize the non-null assertion operation on those calls R.head(x)!/R.last(x)!. Recommend to update code with proper null checking with if(R.isNil()) {} or if(R.isNotNil()) {}

The new R.isNotEmpty() does type assertion, returning NonEmptyArray<T>. R.head() and R.last() has been updated to return T instead of T | undefined in these cases. See core ramda MR ramda/ramda#3430 for full examples

R.replace was incorrectly typed for currying, specifically incorrect if you passed R.replace(x) as an argument. It is not typed like all other functions in terms of curried behavior

What's Changed

New Contributors

Full Changelog: v0.29.10...v0.30.0

v0.29.10

30 Mar 05:36
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.29.9...v0.29.10

v0.29.9

02 Mar 04:47
Compare
Choose a tag to compare

What's Changed

  • Revert "Update: propEq to allow wider-typing for value in comparison" by @Harris-Miller in #99
  • update(assoc) Simplify Typings to fix inference and cross function usage by @Harris-Miller in #100

Full Changelog: v0.29.8...v0.29.9

v0.29.8

19 Feb 23:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.7...v0.29.8

v0.29.7

20 Jan 23:21
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.6...v0.29.7

v0.29.6

15 Nov 04:21
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.29.5...v0.29.6

v0.29.5

03 Oct 06:36
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.29.4...v0.29.5

v0.29.4

29 Jun 04:26
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.3...v0.29.4

v0.29.3

26 May 03:54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.2...v0.29.3

v0.29.2

26 Apr 05:30
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.29.1...v0.29.2