Skip to content

Releases: asd-xiv/m

v6.1.0

08 May 15:04
Compare
Choose a tag to compare

6.1.0 (2021-05-08)

Features

v6.0.0

27 Apr 14:52
Compare
Choose a tag to compare

6.0.0 (2021-04-27)

Features

  • Rework intersect, add overlap (#8) (f80680b)

BREAKING CHANGES

  • distinct no longer uses deep equal compare. Use distinctBy with custom
    compare function to parse object arrays.
// old
distinct([1, {a: 2}, {a: 2}])
// => [1, {a: 2}]

// new
import deepEquals from "fast-deep-equal"

distinctBy(deepEquals, [1, { a: 2 }, { a: 2 }])
// => [1, {a: 2}]
  • feat: Add overlap and overlapBy functions to combine 2 arrays into a set (array of unique items)

  • feat: Add intersect and intersectBy functions to obtain common items in 2 arrays

  • feat: rename "join" -> "unit", "overlap" -> "join"

  • Functions renamed:

  • "join" -> "unit"
  • "overlap" -> "join"
  • chore: fix linting errors

v5.4.0

11 Apr 15:11
Compare
Choose a tag to compare

5.4.0 (2021-04-11)

Features

  • Add git hooks for staged files and commit message linting (9ad3514)

v5.3.0

28 Mar 19:55
Compare
Choose a tag to compare

5.3.0 (2021-03-28)

Bug Fixes

  • Export "compact" and "compactMany" (3d0fc23)

Features

  • spy: allow for spy to receive a custom description and transformation for the log, while keeping stringified readable output (0c18d2d)

v5.2.0

21 Mar 17:38
Compare
Choose a tag to compare

5.2.0 (2021-03-21)

Features

v5.1.0

28 Feb 20:09
Compare
Choose a tag to compare

5.1.0 (2021-02-28)

Features

  • isDeepEqual: Use "fast-deep-equal" instead of own implementation (eac2b64)

v5.0.0

24 Feb 00:43
Compare
Choose a tag to compare

5.0.0 (2021-02-24)

Bug Fixes

  • curry: Curried functions called without parameters would always return a function. (3b38f29)
const sum = curry((a, b) => a + b)

// prev: this worked because passing no explicit parameter did not increase
// the "internal count" or received parameters
sum()()()()()()

// now: works as intended
sum()()
// => NaN
  • filter,forEach,min,max: Remove explicit binding to null when calling passed functions (f053967)

Features

  • debounce: Remove .bind parameter. (cb55156)
  • throttle: Remove .bind parameter. Rename "timeWindow" prop to "wait" - sync with "debounce" signature. (2af3b80)
  • sort: Allow curried and uncurried versions (c532053)
  • toggle: Allow curried and uncurried versions (419ab97)
  • zipToObject: Allow curried and uncurried versions (b797080)

BREAKING CHANGES

  • throttle:
// old
const thottledMouseMove = throttle(mouseMove, { timeWindow: 100, bind: this })

// new
const thottledMouseMove = throttle(mouseMove.bind(this), { wait: 100 })
  • debounce:
// old
const handleAutocomplete = debounce(fn, { wait: 50, bind: this })

// new
const handleAutocomplete = debounce(fn.bind(this), { wait: 50 })

v4.7.1

31 Jan 19:00
Compare
Choose a tag to compare

4.7.1 (2021-01-31)

Bug Fixes

v4.7.0

28 Jan 13:17
Compare
Choose a tag to compare

4.7.0 (2021-01-28)

Features

  • Add new "spy" function for debugging pipe chains (ef1d0a7)

v4.6.0

22 Jan 11:06
Compare
Choose a tag to compare

4.6.0 (2021-01-22)

Features

  • Add "isURI" function for checking if a string is valid URI based on rfc-3986 (bf36b02)