kentcdodds / match-sorter

Simple, expected, and deterministic best-match sorting of an array in JavaScript
https://npm.im/match-sorter
MIT License
3.73k stars 129 forks source link

feat: support custom sorter #124

Closed tannerlinsley closed 3 years ago

tannerlinsley commented 3 years ago

Adds the ability to fully-control sorting

codecov[bot] commented 3 years ago

Codecov Report

Merging #124 (f6d8a80) into main (d54584d) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #124   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          163       163           
  Branches        38        39    +1     
=========================================
  Hits           163       163           
Impacted Files Coverage Δ
src/index.ts 100.00% <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 d54584d...f6d8a80. Read the comment docs.

tannerlinsley commented 3 years ago

Looks like some prettier functionality got carried away here? I’m not sure why that happened.

tannerlinsley commented 3 years ago

Wow, no matter what I commit, all of those prettier changes still happen. Any tips here?

tannerlinsley commented 3 years ago

Alright, it took some rebasing, cherry picking the lines and committing with --no-verify to get this to behave.

kentcdodds commented 3 years ago

@All-contributors please add @tannerlinsley for code and tests

allcontributors[bot] commented 3 years ago

@kentcdodds

I've put up a pull request to add @tannerlinsley! :tada:

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 6.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: