Skip to content

Commit

Permalink
chore(publishing): bump package version
Browse files Browse the repository at this point in the history
Signed-off-by: SphericalKat <[email protected]>
  • Loading branch information
SphericalKat committed Mar 30, 2021
1 parent f8cbb6a commit b710193
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.5
- Add support for extraction from generic lists
- Add tests for generic lists
- Update docs with information about generic types

## 0.1.4
- Update readme with more accurate info

Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ I personally needed to use this for my own search algorithms, and there weren't

```yaml
dependencies:
fuzzywuzzy: 0.1.4 # latest version
fuzzywuzzy: 0.1.5 # latest version
```
## Usage
Expand Down Expand Up @@ -127,3 +127,23 @@ extractAll(
cutoff: 10,
) // [(string google, score: 83, index: 0), (string bing, score: 23, index: 1), (string facebook, score: 29, index: 2), (string linkedin, score: 29, index: 3), (string twitter, score: 15, index: 4), (string googleplus, score: 75, index: 5), (string bingnews, score: 29, index: 6), (string plexoogl, score: 43, index: 7)]
```
### Extract using any a list of any type
All `extract` methods can receive `List<T>` and return `List<ExtractedResult<T>>`
```dart
class TestContainer {
final String innerVal;
TestContainer(this.innerVal);
}
extractOne(
query: 'cowboys',
choices: [
'Atlanta Falcons',
'New York Jets',
'New York Giants',
'Dallas Cowboys'
].map((e) => TestContainer(e)).toList(),
cutoff: 10,
getter: (TestContainer x) => x.innerVal
).toString(); // (string Dallas Cowboys, score: 90, index: 3)
```
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "fuzzywuzzy"
version: "0.1.4"
version: "0.1.5"
homepage: "https://github.com/sphericalkat/dart-fuzzywuzzy"
description: An implementation of the popular fuzzywuzzy package in Dart, to suit all your fuzzy string matching/searching needs!
repository: "https://github.com/sphericalkat/dart-fuzzywuzzy"
Expand Down

0 comments on commit b710193

Please sign in to comment.