Releases: customcommander/functionaut
Releases · customcommander/functionaut
v4.2.0
v4.1.0
v4.0.0
4.0.0 (2022-01-28)
chore
- refactor
fallback
as an operator function. close #38 (38c1bb0) - remove
concede
. close #35 (30c75aa) - remove support of strings as lists. close #36 (1ae4b26)
BREAKING CHANGES
- the following functions no longer accept strings as lists:
all
,any
,drop
,filter
,into
,map
,none
andtake
. fallback
is now an operator function.- the
concede
function is no longer available
v3.3.0
v3.2.0
v3.1.0
3.1.0 (2022-01-03)
Features
- implement 'and' as an operator function (872b809)
- implement 'gte' as an operator function (0a2f3d7)
- implement 'or' as an operator function (fa09cbd)
- implement
gt
as an operator function (44616ff) - implement
lt
as an operator function (c3a6dd2) - implement
lte
as an operator function (06db5ff) - implement
subtract
as an operator function (608b408)
v3.0.0
3.0.0 (2022-01-01)
chore
Features
- all: predicate must return logical true (9629716)
- allfn: predicates can return logical true (25f351d)
- any: predicate can return logical true (e51a716)
- anyfn: functions can return logical true (cbd906f)
- cond: predicates can return logical true (c0769cc)
- filter: predicate can return logical true (aff27d3)
- implement T & F. see #29 (d3bd940)
- none: predicate can return logical true (f7f0215)
- nonefn: predicates can return logical true (ff97496)
- some: functions can return logical true (bea45ab)
- unfold: predicate can return logical true (7ec376f)
- when: allow one or more
x
to be given tof
andg
(a571489)
BREAKING CHANGES
- unfold(pred)(map)(next)(x): predicate can return logical true
- some(...fn)(...args): functions can return logical true
- nonefn(...pred)(...args): predicates can return logical true
- none(pred)(xs): predicate can return logical true
- filter(pred)(xs): predicate can return logical true
- cond(...fn)(...args): predicates can return logical true
- anyfn(...fn)(...args): functions can return logical true
- any(pred)(xs): pred can return logical true
- allfn(...pred)(...args): predicates can return logical true
- all(pred)(xs): predicate can return logical true
- when(pred)(...x): predicate can return logical true. see #29
- the library is now available at
window['@customcommander/functionaut']
in a browser environment
v2.2.0
v2.1.0
v2.0.0
2.0.0 (2021-10-12)
Bug Fixes
- the function returned by unary does not need to be curried (cf51ece)
chore
Features
BREAKING CHANGES
- The function has been changed to accept only one predicate and a list
of values instead of any number of parameters.
Migration:
v1: all(isNum, isOdd)(1, 2, 3)
v2: all(x => isNum(x) === true && isOdd(x) === true, [1, 2, 3])
- Type checking parameters is gone.
See corresponding Architecture Decision Record (ADR).