All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for sifting
Map
,Set
, iterable
- Small performance improvements
- Slight performance tweak by removing a couple of closures
- README tweaks
byPattern
, useful for applying amatch-iz
pattern toArray#map
andArray#filter
match-iz
pluck()
method was not working when sifting an array against a single pattern
- Corrected README example
- Fixed pnpm lockfile
- Allow multiple patterns to be specified when sifting an array:
import { lt } from 'match-iz'
const [oneYearOlds, lessThan40, theRest] = sift(
[
{ user: 'barney', age: 36, active: false },
{ user: 'fred', age: 40, active: true },
{ user: 'pebbles', age: 1, active: false }
],
{ age: 1, active: false },
{ age: lt(40) }
)
- Remove
browser
setting frompackage.json
; seems to cause issues with CodeSandbox build process, and isn't really necessary since the browser-build is something that's interacted with manually.
- Fix package.json exports for Remix.run
- README updated to include
match-iz
mention
- Binary arrays now accept match-iz patterns, not just fn-predicates
- Badges
- Linting
- sift-r :)