diff --git a/CHANGELOG.md b/CHANGELOG.md index ea4137546..5c35ac5d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ + +# [12.0.0](https://github.com/algolia/react-element-to-jsx-string/compare/v11.0.1...v12.0.0) (2017-08-03) + + +### Bug Fixes + +* **flow:** export flow definitions in the released bundle and fix the npm ignore too restrictive ([#115](https://github.com/algolia/react-element-to-jsx-string/issues/115)) ([c4f91b9](https://github.com/algolia/react-element-to-jsx-string/commit/c4f91b9)) +* **formatting:** Children with multiline string are now correctly indented ([d18809e](https://github.com/algolia/react-element-to-jsx-string/commit/d18809e)) +* **formatting:** Fix JSX delimiters escaping in string ([6e0eea3](https://github.com/algolia/react-element-to-jsx-string/commit/6e0eea3)) +* **release:** revert change made by error in commit 86697517 ([903fd5c](https://github.com/algolia/react-element-to-jsx-string/commit/903fd5c)) +* **travis:** manually install yarn on Travis CI ([b8a4c1a](https://github.com/algolia/react-element-to-jsx-string/commit/b8a4c1a)) + + +### BREAKING CHANGES + +* **formatting:** Improve string escaping of string that contains JSX delimiters (`{`,`}`,`<`,`>`) + +Before: +``` +console.log(reactElementToJsxString(
{`Mustache :{`}
); + +//
Mustache :{
+``` + +Now: +``` +console.log(reactElementToJsxString(
{`Mustache :{`}
); + +//
{`Mustache :{`}
+``` + + + ## [11.0.1](https://github.com/algolia/react-element-to-jsx-string/compare/v11.0.0...v11.0.1) (2017-07-21) diff --git a/package.json b/package.json index 3b390280f..80fd27b17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-element-to-jsx-string", - "version": "11.0.1", + "version": "12.0.0", "description": "Turn a ReactElement into the corresponding JSX string.", "main": "dist/index.js", "scripts": {