From 9757fc4a6883eee999399c25157cf156ba6d3002 Mon Sep 17 00:00:00 2001 From: Philippe Elsass Date: Mon, 23 Apr 2018 08:54:20 +0100 Subject: [PATCH] Release version 1.4.0 --- changes.md | 27 +++++++++++++++++++++++++++ haxelib.json | 4 ++-- mdk/info.json | 2 +- readme.md | 20 -------------------- releaseHaxelib.sh | 2 +- tagRelease.sh | 35 +++++++++++++++++++++++++++++++++++ 6 files changed, 66 insertions(+), 24 deletions(-) create mode 100644 changes.md create mode 100755 tagRelease.sh diff --git a/changes.md b/changes.md new file mode 100644 index 0000000..fccd589 --- /dev/null +++ b/changes.md @@ -0,0 +1,27 @@ +## Changes + +### 1.4.0 + +- Generate `displayName` for `@:jsxStatic` components #86 +- React 16.2: added Fragments support #87: https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html +- User overloads instead of `EitherType` for `setState` #91 +- Added utility function `ReactUtil.copyWithout` #96 +- ReactComponent macros refactoring #97 +- Travis CI + +### 1.3.0 + +- React 16 support; React 15 is still compatible but won't support new APIs (`componentDidCatch`, `createPortal`) +- added missing `ReactDOM.hydrate` method (server-side rendering) +- added `@:jsxStatic` optional meta +- breaking: `react.ReactPropTypes` now requires the NPM `prop-types` module + +### 1.2.1 + +- fixed auto-complete issue on `this.state` caused by the `1.2.0` changes + +### 1.2.0 + +- `setState` now accepts `Partial`; where `T` is a `typedef`, `Partial` is `T` will all the fields made optional +- `react.React.PropTypes` removed in favor of `react.ReactPropTypes` +- added `-D react_render_warning` option diff --git a/haxelib.json b/haxelib.json index 5d6fa11..a30f753 100644 --- a/haxelib.json +++ b/haxelib.json @@ -7,10 +7,10 @@ "massive","elsassph" ], "releasenote": "See https://github.com/massiveinteractive/haxe-react/blob/master/readme.md", - "version": "1.3.0", + "version": "1.4.0", "url": "https://github.com/massiveinteractive/haxe-react", "classPath": "src/lib", "dependencies": { } -} \ No newline at end of file +} diff --git a/mdk/info.json b/mdk/info.json index 63f68cd..3c042d9 100644 --- a/mdk/info.json +++ b/mdk/info.json @@ -1,4 +1,4 @@ { "name": "api-react", - "version": "1.3.0" + "version": "1.4.0" } diff --git a/readme.md b/readme.md index f6d4481..0b80692 100644 --- a/readme.md +++ b/readme.md @@ -225,23 +225,3 @@ Setting `-D react_render_warning` will enable runtime warnings for avoidable ren This will add a `componentDidUpdate` (or update the existing one) where a **shallowCompare** is done on current and previous props and state. If both did not change, a warning will be displayed in the console. False positives can happen if your props are not flat, due to the shallowCompare. - - -## Changes - -### 1.3.0 - -- React 16 support; React 15 is still compatible but won't support new APIs (`componentDidCatch`, `createPortal`) -- added missing `ReactDOM.hydrate` method (server-side rendering) -- added `@:jsxStatic` optional meta -- breaking: `react.ReactPropTypes` now requires the NPM `prop-types` module - -### 1.2.1 - -- fixed auto-complete issue on `this.state` caused by the `1.2.0` changes - -### 1.2.0 - -- `setState` now accepts `Partial`; where `T` is a `typedef`, `Partial` is `T` will all the fields made optional -- `react.React.PropTypes` removed in favor of `react.ReactPropTypes` -- added `-D react_render_warning` option diff --git a/releaseHaxelib.sh b/releaseHaxelib.sh index 86db9b0..118f319 100644 --- a/releaseHaxelib.sh +++ b/releaseHaxelib.sh @@ -1,4 +1,4 @@ #!/bin/sh rm -f haxe-react.zip -zip -r haxe-react.zip src haxelib.json readme.md +zip -r haxe-react.zip src haxelib.json readme.md changes.md haxelib submit haxe-react.zip $1 --always diff --git a/tagRelease.sh b/tagRelease.sh new file mode 100755 index 0000000..e6de10c --- /dev/null +++ b/tagRelease.sh @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +VERSION=$1 + +# Validate version +if [ -z "$VERSION" ]; then + echo "No version specified" + exit 1 +fi +if [ $(git tag -l "$VERSION") ]; then + echo "Tag $VERSION already exists" + exit 1 +fi + +# Change version in haxelib.json and package.json +echo "Update version to $VERSION" +PATTERN="s/\"version\": \"[0-9]+.[0-9]+.[0-9]+\"/\"version\": \"$VERSION\"/g" + +case "$(uname -s)" in + Darwin) + sed -E -i "" "$PATTERN" ./haxelib.json + sed -E -i "" "$PATTERN" ./mdk/info.json + ;; + *) + sed -E -i "$PATTERN" ./haxelib.json + sed -E -i "$PATTERN" ./mdk-info.json + ;; +esac + +# Tag, commit and push to trigger a new CI release +git commit -am "Release version $VERSION" +git push origin master +git tag $VERSION +git push origin $VERSION