diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f105e6..2eeee2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [[6.1.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.1.0)] + +Added support for React 17 + +## [[6.0.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.0.0)] + +### removed + +Accepting by scrolling is no longer allowed and has thus been removed from the package. +For details see [issue 88](https://github.com/Mastermindzh/react-cookie-consent/issues/88) + ## [[5.2.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/5.2.0)] ### added diff --git a/package.json b/package.json index ec38478..3fd5a52 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "patch": "npm --no-git-tag-version version patch", "minor": "npm --no-git-tag-version version minor", "major": "npm --no-git-tag-version version major", - "release": "npm run build && git add -A && PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag $PACKAGE_VERSION && git commit -m 'release $PACKAGE_VERSION' && git push && git push --tags && npm publish", + "preversion": "grep \"\\[$npm_package_version\\]\" CHANGELOG.md > /dev/null || ( echo 'You need to add an entry in CHANGELOG.md for this version.' && false )", + "release": "npm run build && git add -A && git tag $npm_package_version && git commit -m 'release $npm_package_version' && git push && git push --tags && npm publish", "release-patch": "npm run patch && npm run release", "release-minor": "npm run minor && npm run release", "release-major": "npm run major && npm run release"