Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Philippe Elsass
committed
Apr 23, 2018
1 parent
d78c0c5
commit 9757fc4
Showing
6 changed files
with
66 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "api-react", | ||
"version": "1.3.0" | ||
"version": "1.4.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |