-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade everything and remove CJS/UMD entries
Closes #41, Closes #70 BREAKING CHANGE: If you're using the CJS module format, you now have to get `matchSorter` from the `default` property.
- Loading branch information
Kent C. Dodds
committed
Jul 19, 2019
1 parent
2c9a471
commit fe94fc6
Showing
14 changed files
with
58 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Examples | ||
|
||
* [With React-Select](https://jsbin.com/vewoka/edit?js,output) | ||
* [Basic example](https://jsbin.com/bihepe/edit?html,js,console) | ||
- [Basic example](https://codesandbox.io/s/inspiring-voice-4msg5) | ||
- [With Downshift](https://codesandbox.io/s/react-codesandbox-jnuq8) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,15 @@ | |
"version": "0.0.0-semantically-released", | ||
"description": "Simple, expected, and deterministic best-match sorting of an array in JavaScript", | ||
"main": "dist/match-sorter.cjs.js", | ||
"jsnext:main": "dist/match-sorter.esm.js", | ||
"module": "dist/match-sorter.esm.js", | ||
"scripts": { | ||
"add-contributor": "kcd-scripts contributors add", | ||
"build": "kcd-scripts build --bundle --environment BUILD_NAME:matchSorter", | ||
"lint": "kcd-scripts lint", | ||
"test": "kcd-scripts test", | ||
"test:cover": "kcd-scripts test --coverage", | ||
"test:update": "npm run test:cover -s -- --updateSnapshot", | ||
"test:build": "kcd-scripts test --config other/jest.config.js --no-watch", | ||
"build-and-test": "npm run build -s && npm run test:build -s", | ||
"validate": "kcd-scripts validate lint,build-and-test,test:cover", | ||
"setup": "npm install && npm run validate", | ||
"precommit": "kcd-scripts precommit" | ||
"validate": "kcd-scripts validate", | ||
"setup": "npm install && npm run validate" | ||
}, | ||
"files": [ | ||
"dist" | ||
|
@@ -30,14 +25,16 @@ | |
], | ||
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)", | ||
"license": "MIT", | ||
"bundledDependencies": [ | ||
"remove-accents" | ||
], | ||
"dependencies": { | ||
"remove-accents": "0.4.2" | ||
}, | ||
"devDependencies": { | ||
"kcd-scripts": "^0.38.1" | ||
"kcd-scripts": "^1.5.2" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "kcd-scripts pre-commit" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* @name match-sorter | ||
* @license MIT license. | ||
* @copyright (c) 2017 Kent C. Dodds | ||
* @copyright (c) 2019 Kent C. Dodds | ||
* @author Kent C. Dodds <[email protected]> | ||
*/ | ||
import removeAccents from 'remove-accents' | ||
|
This file was deleted.
Oops, something went wrong.