Skip to content

Releases: customcommander/functionaut

v4.2.0

18 Aug 20:02
Compare
Choose a tag to compare

4.2.0 (2022-08-18)

Features

v4.1.0

23 Mar 10:11
Compare
Choose a tag to compare

4.1.0 (2022-03-23)

Features

v4.0.0

28 Jan 21:10
Compare
Choose a tag to compare

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 and take.
  • fallback is now an operator function.
  • the concede function is no longer available

v3.3.0

13 Jan 21:48
Compare
Choose a tag to compare

3.3.0 (2022-01-13)

Features

  • implement mult as an operator function. close #41 (03fe31f)

v3.2.0

09 Jan 23:00
Compare
Choose a tag to compare

3.2.0 (2022-01-09)

Bug Fixes

  • fix bug in return condition for and (178bdfc)

Features

  • implement div as an operator function (67a4003)
  • implement exp as an operator function (bd930aa)
  • implement mod as an operator function (b3eed71)

v3.1.0

03 Jan 20:42
Compare
Choose a tag to compare

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

01 Jan 14:16
Compare
Choose a tag to compare

3.0.0 (2022-01-01)

chore

  • use same namespace in browser. close #30 (9ee9363)

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 to f and g (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

29 Oct 07:45
Compare
Choose a tag to compare

2.2.0 (2021-10-29)

Features

v2.1.0

27 Oct 12:32
Compare
Choose a tag to compare

2.1.0 (2021-10-27)

Bug Fixes

  • into: stop mutating init (5295494)

Features

v2.0.0

12 Oct 23:21
Compare
Choose a tag to compare

2.0.0 (2021-10-12)

Bug Fixes

  • the function returned by unary does not need to be curried (cf51ece)

chore

Features

  • all checks the element of a list against a predicate. close #24 (8f9bc01)

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).