Skip to content

Commit

Permalink
Bump to 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyChang committed Mar 24, 2018
1 parent ccaee10 commit 89ef96f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -42,6 +42,7 @@ var TextTruncate = require('react-text-truncate'); // CommonJS or UMD

## Changelog

* 0.13.1 Fix react warning of `maxCalculateTimes`
* 0.13.0 Shows all of the text when `line` is falsely, add `maxCalculateTimes` to prevent infinite loop
* 0.12.1 Update peerDependencies to support React 16
* 0.12.0 Added new prop: `textElement` for customize text render
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -289,7 +289,8 @@
textElement = _props2.textElement,
textTruncateChild = _props2.textTruncateChild,
truncateText = _props2.truncateText,
props = _objectWithoutProperties(_props2, ['element', 'text', 'style', 'containerClassName', 'line', 'onCalculated', 'onTruncated', 'textElement', 'textTruncateChild', 'truncateText']);
maxCalculateTimes = _props2.maxCalculateTimes,
props = _objectWithoutProperties(_props2, ['element', 'text', 'style', 'containerClassName', 'line', 'onCalculated', 'onTruncated', 'textElement', 'textTruncateChild', 'truncateText', 'maxCalculateTimes']);

var fontWeight = style.fontWeight,
fontStyle = style.fontStyle,
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-text-truncate",
"version": "0.13.0",
"version": "0.13.1",
"description": "Truncate text for React.js",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/TextTruncate.js
Expand Up @@ -216,6 +216,7 @@ export default class TextTruncate extends Component {
textElement,
textTruncateChild,
truncateText,
maxCalculateTimes,
...props
} = this.props;

Expand Down

0 comments on commit 89ef96f

Please sign in to comment.