Releases: ramda/types
v0.30.1
What's Changed
- new(ascendNatural, descendNatural) by @Harris-Miller in #127
Full Changelog: v0.30.0...v0.30.1
v0.30.0
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
type()
can returnBigInt
by @RobinTail in #116- fix(forEach) Remove forEach second generic on root function by @Harris-Miller in #114
- feat(zipObj): stricter types, add test by @GerkinDev in #88
- update(replace) full curry typings by @Harris-Miller in #110
- new(isNotEmpty) add types for isNotEmpty function, and update isEmpty by @Harris-Miller in #101
- new(flow) add types for new flow function by @Harris-Miller in #122
New Contributors
- @RobinTail made their first contribution in #116
Full Changelog: v0.29.10...v0.30.0
v0.29.10
What's Changed
- update(type-utils) simplify ElementOf by @Harris-Miller in #105
- fix(filter, reject) update overload orderings by @Harris-Miller in #106
- Fix: ts4 support by @Harris-Miller in #115
Full Changelog: v0.29.9...v0.29.10
v0.29.9
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
What's Changed
- fix(isNil): Accept generic type for inversion type extraction by @Harris-Miller in #90
- Update: omit by @Harris-Miller in #84
- Update: propEq to allow wider-typing for value in comparison by @Harris-Miller in #74
- New: added LICENSE.md by @Harris-Miller in #93
- TS4 support by @Harris-Miller in #80
- feat(partition): stricter types, add test by @GerkinDev in #89
- fix(assoc) overload reorder and unit tests by @Harris-Miller in #96
New Contributors
- @GerkinDev made their first contribution in #89
Full Changelog: v0.29.7...v0.29.8
v0.29.7
What's Changed
- Fix:
path
by @Harris-Miller in #83 - Update: min, max, minBy, maxBy by @Harris-Miller in #65
- fix(pluck): pluck now can return object by @Nemo108 in #71
New Contributors
Full Changelog: v0.29.6...v0.29.7
v0.29.6
What's Changed
- Update: match by @Harris-Miller in #67
- Update: path by @Harris-Miller in #66
- Fix(prop): Allow optional props for prop(key)(obj) variety by @Harris-Miller in #75
- Fix(pick): Allow zero length array to be passed by @Harris-Miller in #78
- Update: support modifyPath change from 0.29.1 by @Harris-Miller in #68
- fix(path): Put back in curried signature for path function by @Harris-Miller in #79
Full Changelog: v0.29.5...v0.29.6
v0.29.5
What's Changed
- Breaking: prop by @Harris-Miller in #39
- Fix: propEq by @Harris-Miller in #55
- Fix: Random Fixes by @Harris-Miller in #56
- Fix: allPass, anyPass, both, either, ifElse by @Harris-Miller in #53
- Update: keys related functions by @Harris-Miller in #50
- Update: add 'AsyncFunction' to return type union of
type
by @Harris-Miller in #58 - Update: Pick by @Harris-Miller in #52
- New: Unwind by @Harris-Miller in #60
- Update: Pluck by @Harris-Miller in #61
- Chore: bump all deps by @Harris-Miller in #62
- Chore: Merge into main by @Harris-Miller in #63
Full Changelog: v0.29.4...v0.29.5
v0.29.4
What's Changed
- Update: reduce by @Harris-Miller in #21
- Chore: Better build script by @Harris-Miller in #43
- New: swap by @ranneyd in #42
- Update: of by @Harris-Miller in #41
- Update: count by @Harris-Miller in #40
- Update: Overload reordering by @Harris-Miller in #48
- fix(groupBy): return Partial Record by @jeysal in #45
- Update: Concat by @Harris-Miller in #47
- Fix: Map by @Harris-Miller in #49
New Contributors
Full Changelog: v0.29.3...v0.29.4
v0.29.3
What's Changed
- Fix:
pathEq
Argument order change for 0.29.0 release by @Harris-Miller in #28 - Updating defaultTo type definitions by @lax4mike in #30
- Update: isNotNil use built-in NonNullable by @hd-o in #32
- Update: Map by @Harris-Miller in #26
- New: basic compare functions
lt
,lte
,gt
,gte
by @Harris-Miller in #11 - Fix: Has by @Harris-Miller in #38
New Contributors
Full Changelog: v0.29.2...v0.29.3