Skip to content

Commit

Permalink
fix(1.7.1): fixing moment lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-hur Santos Ott committed Jun 3, 2018
1 parent 27eb50b commit 3c6c419
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 116 deletions.
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Changelog

## 1.7.1

* Updating moment lib.

## 1.7.0

* Adding `ts definitions`. (thanks to [iiandrade](https://github.com/iiandrade))
* Adding `toRawValue` method to MaskService. (thanks to [fabioh8010](https://github.com/fabioh8010))
* Replace old legacy ref string by the new callback. (thanks to [Yamilquery](https://github.com/Yamilquery))

## 1.6.5

* Fixing validation for CPF and CNPJ when empty string is inputed. (thanks to [gabuael](https://github.com/gabuael))

## 1.6.4

* Fixing wrong format when use money mask and values with only one decimal place (`1.9`) (thanks to [Pablo](https://github.com/rochapablo)).

## 1.6.3

* Fixing moment version (thanks to [Edward Coleridge Smith](https://github.com/edcs))
* Adding pre-builded lib to improve build phase (thanks to [Giorgi Bagdavadze](https://github.com/notgiorgi))

## 1.6.2

* Fixing custom mask when removing value in middle of the text. (thanks to [Aleksandr Kompaniets](https://github.com/Oxyaction))
_ KNOW ISSUE: the custom mask is not allowing user to input white spaces for `_` translation temporarily.

## 1.6.1

* Fixing duplicated custom text input component. (thanks to [Pablo](https://github.com/rochapablo))

## 1.6.0

* Add compatibility to [react-native-textinput-effects](https://github.com/halilb/react-native-textinput-effects) by using `customTextInputProps` (thanks to [Pablo](https://github.com/rochapablo))

## 1.5.3

* Fix suffix backspace (thanks to [Thomas Kekeisen](https://github.com/blaues0cke))
* Fix last character on custom mask (thanks to [Daniel Maly](https://github.com/DanielMaly))

## 1.5.2

* Adding `keyboardType` to custom mask. (thanks to [Nurbek Abulgazin](https://github.com/nurbek-ab))

## 1.5.1

* Adding `tinymask` to fix some custom mask issues.

## 1.5.0

* Adding new and powerfull `custom` engine mask \m/.

## 1.4.0

* Adding `customTextInput` to allow other inputs instead native TextInput. (thanks to [Hellon Canella](https://github.com/helloncanella))

## 1.3.4

* Remove default value from mask to allow placeholder on text-input (thanks to [Cuong Hoang](https://github.com/cuonghv91)). \* Please, caution. This can cause some runtime breaking if you update to this version.

## 1.3.3

* Update dependencies (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))

## 1.3.2

* Fix: ignoring Jet Brains ide files (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))

## 1.3.1

* Performance: adding check if the next value to be applied to the mask is equal as actual and prevent state change.

## 1.3.0

* Feat: now you can check and prevent input text on `TextInputMask` using `checkText` prop.

## 1.2.2

* Fix: fixing es2015 preset (thanks to [vagnercsouza](https://github.com/vagnercsouza), [barakcoh](https://github.com/barakcoh), Marvin Santos)

## 1.2.1

* Fix: fixing white space after unit on money mask.

## 1.2.0

* Adding `getRawValue`.

## 1.1.1

* Fixing toolbox-service reference (thanks to [ziftinpeki](https://github.com/ziftinpeki)).

## 1.1.0

* Adding credit-card mask.
* Refactoring base mask to contain helpfull functions.

## 1.0.0

* Adding datetime and cnpj masks.
* [Breaking Change] Refactoring MaskService.
* Separate mask handlers for better extensibility.
* Adding tests for all mask handlers.
* Refactoring Components for use new mask handlers.

## 0.3.6

* Fix vanilla-mask path on windows.
109 changes: 2 additions & 107 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,110 +397,5 @@ var money = MaskService.toMask('money', '123', {
* If the `es2015` error throw by babel, try run `react-native start --reset-cache`


# Changelog

## 1.7.0

* Adding `ts definitions`. (thanks to [iiandrade](https://github.com/iiandrade))
* Adding `toRawValue` method to MaskService. (thanks to [fabioh8010](https://github.com/fabioh8010))
* Replace old legacy ref string by the new callback. (thanks to [Yamilquery](https://github.com/Yamilquery))

## 1.6.5

* Fixing validation for CPF and CNPJ when empty string is inputed. (thanks to [gabuael](https://github.com/gabuael))

## 1.6.4

* Fixing wrong format when use money mask and values with only one decimal place (`1.9`) (thanks to [Pablo](https://github.com/rochapablo)).

## 1.6.3

* Fixing moment version (thanks to [Edward Coleridge Smith](https://github.com/edcs))
* Adding pre-builded lib to improve build phase (thanks to [Giorgi Bagdavadze](https://github.com/notgiorgi))

## 1.6.2

* Fixing custom mask when removing value in middle of the text. (thanks to [Aleksandr Kompaniets](https://github.com/Oxyaction))
_ KNOW ISSUE: the custom mask is not allowing user to input white spaces for `_` translation temporarily.

## 1.6.1

* Fixing duplicated custom text input component. (thanks to [Pablo](https://github.com/rochapablo))

## 1.6.0

* Add compatibility to [react-native-textinput-effects](https://github.com/halilb/react-native-textinput-effects) by using `customTextInputProps` (thanks to [Pablo](https://github.com/rochapablo))

## 1.5.3

* Fix suffix backspace (thanks to [Thomas Kekeisen](https://github.com/blaues0cke))
* Fix last character on custom mask (thanks to [Daniel Maly](https://github.com/DanielMaly))

## 1.5.2

* Adding `keyboardType` to custom mask. (thanks to [Nurbek Abulgazin](https://github.com/nurbek-ab))

## 1.5.1

* Adding `tinymask` to fix some custom mask issues.

## 1.5.0

* Adding new and powerfull `custom` engine mask \m/.

## 1.4.0

* Adding `customTextInput` to allow other inputs instead native TextInput. (thanks to [Hellon Canella](https://github.com/helloncanella))

## 1.3.4

* Remove default value from mask to allow placeholder on text-input (thanks to [Cuong Hoang](https://github.com/cuonghv91)). \* Please, caution. This can cause some runtime breaking if you update to this version.

## 1.3.3

* Update dependencies (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))

## 1.3.2

* Fix: ignoring Jet Brains ide files (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))

## 1.3.1

* Performance: adding check if the next value to be applied to the mask is equal as actual and prevent state change.

## 1.3.0

* Feat: now you can check and prevent input text on `TextInputMask` using `checkText` prop.

## 1.2.2

* Fix: fixing es2015 preset (thanks to [vagnercsouza](https://github.com/vagnercsouza), [barakcoh](https://github.com/barakcoh), Marvin Santos)

## 1.2.1

* Fix: fixing white space after unit on money mask.

## 1.2.0

* Adding `getRawValue`.

## 1.1.1

* Fixing toolbox-service reference (thanks to [ziftinpeki](https://github.com/ziftinpeki)).

## 1.1.0

* Adding credit-card mask.
* Refactoring base mask to contain helpfull functions.

## 1.0.0

* Adding datetime and cnpj masks.
* [Breaking Change] Refactoring MaskService.
* Separate mask handlers for better extensibility.
* Adding tests for all mask handlers.
* Refactoring Components for use new mask handlers.

## 0.3.6

* Fix vanilla-mask path on windows.
## Changelog
View changelog [HERE](CHANGELOG.md)
13 changes: 10 additions & 3 deletions dist/lib/text-input-mask.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName='./lib/text-input-mask.js';var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName='./lib/text-input-mask.js';var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();
var _react=require('react');var _react2=_interopRequireDefault(_react);
var _reactNative=require('react-native');


Expand Down Expand Up @@ -50,12 +51,18 @@ customTextInputProps=this.props.customTextInputProps||{};

return(
_react2.default.createElement(Input,_extends({
ref:INPUT_TEXT_REF,
ref:function ref(_ref){
if(_ref){
if(typeof _this2.props.refInput==='function'){
_this2.props.refInput(_ref);
}
}
},
keyboardType:this._getKeyboardType()},
this.props,
customTextInputProps,{
onChangeText:function onChangeText(text){return _this2._onChangeText(text);},
value:this.state.value,__source:{fileName:_jsxFileName,lineNumber:52}})));
value:this.state.value,__source:{fileName:_jsxFileName,lineNumber:53}})));


}}]);return TextInputMask;}(_baseTextComponent2.default);exports.default=TextInputMask;
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-masked-text",
"version": "1.7.0",
"version": "1.7.1",
"description": "Text and TextInput with mask for React Native applications",
"licenses": [
{
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"homepage": "https://github.com/benhurott/react-native-masked-text#readme",
"dependencies": {
"moment": "^2.19.1",
"moment": "2.19.3",
"tinymask": "^1.0.2",
"@types/react-native": "*",
"@types/react": "*"
Expand All @@ -43,4 +43,4 @@
"jest": "^19.0.2",
"rimraf": "^2.6.2"
}
}
}

0 comments on commit 3c6c419

Please sign in to comment.