From 2f57fe1ec82f9aefef2c705d787a290d0074ad36 Mon Sep 17 00:00:00 2001 From: Kirollos Risk Date: Sun, 8 Mar 2020 18:00:15 -0700 Subject: [PATCH] Build version 3.5.0 --- CHANGELOG.md | 4 +++ dist/fuse.d.ts | 2 +- dist/fuse.js | 2 +- package.json | 2 +- release.sh | 83 ++++++-------------------------------------------- 5 files changed, 17 insertions(+), 76 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a955bd587..df0dd83cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Version 3.5.0 +- Fixed #341, adjusting weights into the calculation +- Improved performance by ~10% (really can only be seen when you have 10k+ items) + # Version 3.4.3 - Fixed #261 diff --git a/dist/fuse.d.ts b/dist/fuse.d.ts index 7ceff1448..c5e845bc6 100644 --- a/dist/fuse.d.ts +++ b/dist/fuse.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Fuse.js v3.4.6 +// Type definitions for Fuse.js v3.5.0 // TypeScript Version: 3.1 export = Fuse; diff --git a/dist/fuse.js b/dist/fuse.js index fce43121f..1c0690a68 100644 --- a/dist/fuse.js +++ b/dist/fuse.js @@ -1,5 +1,5 @@ /*! - * Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io) + * Fuse.js v3.5.0 - Lightweight fuzzy-search (http://fusejs.io) * * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me) * All Rights Reserved. Apache Software License 2.0 diff --git a/package.json b/package.json index 1fef1a799..3d2419b66 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "email": "kirollos@gmail.com", "url": "http://kiro.me" }, - "version": "3.4.6", + "version": "3.5.0", "description": "Lightweight fuzzy-search", "license": "Apache-2.0", "repository": { diff --git a/release.sh b/release.sh index 9f9136642..380083389 100755 --- a/release.sh +++ b/release.sh @@ -4,89 +4,26 @@ version=''; re="\"(version)\": \"([^\"]*)\""; while read -r l; do - if [[ $l =~ $re ]]; then - value="${BASH_REMATCH[2]}"; - version="$value"; - fi + if [[ $l =~ $re ]]; then + value="${BASH_REMATCH[2]}"; + version="$value"; + fi done < package.json; echo $version; -file_has_changed () { - if [ ! -f $1 ]; then - return 1 - fi - - for f in `git ls-files --modified`; do - [[ "$f" == "$1" ]] && return 0 - done - - return 1 -} - -version_is_unique () { - for v in `git tag -l`; do - [[ "$v" == "v$1" ]] && return 1 - done - - return 0 -} - -on_master_branch () { - [[ $(git symbolic-ref --short -q HEAD) == "master" ]] && return 0 - return 1 -} - -# version=$(cat VERSION) -previous_version=$(git describe --abbrev=0) - -if ! on_master_branch; then - echo -e "\033[0;31mRefusing to release from non master branch.\033[0m" - exit 1 -fi - -if ! file_has_changed "VERSION"; then - echo -e "\033[0;31mRefusing to release because VERSION has not changed.\033[0m" - exit 1 -fi - -if ! file_has_changed "CHANGELOG.md"; then - echo -e "\033[0;31mRefusing to release because CHANGELOG.md has not been updated.\033[0m" - exit 1 -fi - -if ! file_has_changed "package.json"; then - echo -e "\033[0;31mRefusing to release because package.json has not been updated.\033[0m" - exit 1 -fi - -if ! version_is_unique $version; then - echo -e "\033[0;31mRefusing to release because VERSION is not unique.\033[0m" - exit 1 -fi - -echo -e "\033[1mAbout to release v$version with the following changes:\033[0m" -git log --date=short --pretty=format:"%ad %h%x09%an%x09%s" $previous_version..HEAD - -echo - -echo -e "\033[1mThe following files will be part of the release commit:\033[0m" -git ls-files --modified - -echo - read -e -p "Are you sure you want to release? " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then echo -e "\033[0;32mReleasing...\033[0m" echo - # yarn build - # git commit -a -m "Build version $version" - # git tag -a v$version -m "Version $version" - # git push origin master - # git push --tags + yarn build + git commit -a -m "Build version $version" + git tag -a v$version -m "Version $version" + git push origin master + git push --tags - # npm publish + npm publish else echo -e "\033[0;31mCancelling...\033[0m" fi