Skip to content

Commit

Permalink
Release version 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Elsass committed Apr 23, 2018
1 parent d78c0c5 commit 9757fc4
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 24 deletions.
27 changes: 27 additions & 0 deletions 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<T>`; where `T` is a `typedef`, `Partial<T>` is `T` will all the fields made optional
- `react.React.PropTypes` removed in favor of `react.ReactPropTypes`
- added `-D react_render_warning` option
4 changes: 2 additions & 2 deletions haxelib.json
Expand Up @@ -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":
{
}
}
}
2 changes: 1 addition & 1 deletion mdk/info.json
@@ -1,4 +1,4 @@
{
"name": "api-react",
"version": "1.3.0"
"version": "1.4.0"
}
20 changes: 0 additions & 20 deletions readme.md
Expand Up @@ -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<T>`; where `T` is a `typedef`, `Partial<T>` is `T` will all the fields made optional
- `react.React.PropTypes` removed in favor of `react.ReactPropTypes`
- added `-D react_render_warning` option
2 changes: 1 addition & 1 deletion 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
35 changes: 35 additions & 0 deletions 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

0 comments on commit 9757fc4

Please sign in to comment.