Closed diesieben07 closed 3 years ago
Merging #129 (3a49b43) into main (fba154b) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #129 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 163 163
Branches 39 39
=========================================
Hits 163 163
Impacted Files | Coverage Δ | |
---|---|---|
src/index.ts | 100.00% <ø> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update fba154b...3a49b43. Read the comment docs.
@all-contributors please add @diesieben07 for code
@kentcdodds
I've put up a pull request to add @diesieben07! :tada:
:tada: This PR is included in version 6.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What: The
items
parameter ofmatchSorter
as well as thekeys
option are being changed toReadonlyArray
from a plainArray
. This more closely represents the contract of the function, as it does not modify these arrays. Fixes #128.Why: Even though
matchSorter
does not modify its input array, it cannot be called with a value of typeReadonlyArray
:How: The required changes are simple: The input types are changed to
ReadyonlyArray
. This is not a breaking change, asArray
is a subtype ofReadonlyArray
in typescript, so "normal arrays" can be passed in like before.Checklist: