Skip to content

Commit 3c6c419

Browse files
author
Ben-hur Santos Ott
committed
fix(1.7.1): fixing moment lib version
1 parent 27eb50b commit 3c6c419

File tree

5 files changed

+129
-116
lines changed

5 files changed

+129
-116
lines changed

CHANGELOG.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Changelog
2+
3+
## 1.7.1
4+
5+
* Updating moment lib.
6+
7+
## 1.7.0
8+
9+
* Adding `ts definitions`. (thanks to [iiandrade](https://github.com/iiandrade))
10+
* Adding `toRawValue` method to MaskService. (thanks to [fabioh8010](https://github.com/fabioh8010))
11+
* Replace old legacy ref string by the new callback. (thanks to [Yamilquery](https://github.com/Yamilquery))
12+
13+
## 1.6.5
14+
15+
* Fixing validation for CPF and CNPJ when empty string is inputed. (thanks to [gabuael](https://github.com/gabuael))
16+
17+
## 1.6.4
18+
19+
* Fixing wrong format when use money mask and values with only one decimal place (`1.9`) (thanks to [Pablo](https://github.com/rochapablo)).
20+
21+
## 1.6.3
22+
23+
* Fixing moment version (thanks to [Edward Coleridge Smith](https://github.com/edcs))
24+
* Adding pre-builded lib to improve build phase (thanks to [Giorgi Bagdavadze](https://github.com/notgiorgi))
25+
26+
## 1.6.2
27+
28+
* Fixing custom mask when removing value in middle of the text. (thanks to [Aleksandr Kompaniets](https://github.com/Oxyaction))
29+
_ KNOW ISSUE: the custom mask is not allowing user to input white spaces for `_` translation temporarily.
30+
31+
## 1.6.1
32+
33+
* Fixing duplicated custom text input component. (thanks to [Pablo](https://github.com/rochapablo))
34+
35+
## 1.6.0
36+
37+
* 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))
38+
39+
## 1.5.3
40+
41+
* Fix suffix backspace (thanks to [Thomas Kekeisen](https://github.com/blaues0cke))
42+
* Fix last character on custom mask (thanks to [Daniel Maly](https://github.com/DanielMaly))
43+
44+
## 1.5.2
45+
46+
* Adding `keyboardType` to custom mask. (thanks to [Nurbek Abulgazin](https://github.com/nurbek-ab))
47+
48+
## 1.5.1
49+
50+
* Adding `tinymask` to fix some custom mask issues.
51+
52+
## 1.5.0
53+
54+
* Adding new and powerfull `custom` engine mask \m/.
55+
56+
## 1.4.0
57+
58+
* Adding `customTextInput` to allow other inputs instead native TextInput. (thanks to [Hellon Canella](https://github.com/helloncanella))
59+
60+
## 1.3.4
61+
62+
* 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.
63+
64+
## 1.3.3
65+
66+
* Update dependencies (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))
67+
68+
## 1.3.2
69+
70+
* Fix: ignoring Jet Brains ide files (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))
71+
72+
## 1.3.1
73+
74+
* Performance: adding check if the next value to be applied to the mask is equal as actual and prevent state change.
75+
76+
## 1.3.0
77+
78+
* Feat: now you can check and prevent input text on `TextInputMask` using `checkText` prop.
79+
80+
## 1.2.2
81+
82+
* Fix: fixing es2015 preset (thanks to [vagnercsouza](https://github.com/vagnercsouza), [barakcoh](https://github.com/barakcoh), Marvin Santos)
83+
84+
## 1.2.1
85+
86+
* Fix: fixing white space after unit on money mask.
87+
88+
## 1.2.0
89+
90+
* Adding `getRawValue`.
91+
92+
## 1.1.1
93+
94+
* Fixing toolbox-service reference (thanks to [ziftinpeki](https://github.com/ziftinpeki)).
95+
96+
## 1.1.0
97+
98+
* Adding credit-card mask.
99+
* Refactoring base mask to contain helpfull functions.
100+
101+
## 1.0.0
102+
103+
* Adding datetime and cnpj masks.
104+
* [Breaking Change] Refactoring MaskService.
105+
* Separate mask handlers for better extensibility.
106+
* Adding tests for all mask handlers.
107+
* Refactoring Components for use new mask handlers.
108+
109+
## 0.3.6
110+
111+
* Fix vanilla-mask path on windows.

README.md

Lines changed: 2 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -397,110 +397,5 @@ var money = MaskService.toMask('money', '123', {
397397
* If the `es2015` error throw by babel, try run `react-native start --reset-cache`
398398

399399

400-
# Changelog
401-
402-
## 1.7.0
403-
404-
* Adding `ts definitions`. (thanks to [iiandrade](https://github.com/iiandrade))
405-
* Adding `toRawValue` method to MaskService. (thanks to [fabioh8010](https://github.com/fabioh8010))
406-
* Replace old legacy ref string by the new callback. (thanks to [Yamilquery](https://github.com/Yamilquery))
407-
408-
## 1.6.5
409-
410-
* Fixing validation for CPF and CNPJ when empty string is inputed. (thanks to [gabuael](https://github.com/gabuael))
411-
412-
## 1.6.4
413-
414-
* Fixing wrong format when use money mask and values with only one decimal place (`1.9`) (thanks to [Pablo](https://github.com/rochapablo)).
415-
416-
## 1.6.3
417-
418-
* Fixing moment version (thanks to [Edward Coleridge Smith](https://github.com/edcs))
419-
* Adding pre-builded lib to improve build phase (thanks to [Giorgi Bagdavadze](https://github.com/notgiorgi))
420-
421-
## 1.6.2
422-
423-
* Fixing custom mask when removing value in middle of the text. (thanks to [Aleksandr Kompaniets](https://github.com/Oxyaction))
424-
_ KNOW ISSUE: the custom mask is not allowing user to input white spaces for `_` translation temporarily.
425-
426-
## 1.6.1
427-
428-
* Fixing duplicated custom text input component. (thanks to [Pablo](https://github.com/rochapablo))
429-
430-
## 1.6.0
431-
432-
* 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))
433-
434-
## 1.5.3
435-
436-
* Fix suffix backspace (thanks to [Thomas Kekeisen](https://github.com/blaues0cke))
437-
* Fix last character on custom mask (thanks to [Daniel Maly](https://github.com/DanielMaly))
438-
439-
## 1.5.2
440-
441-
* Adding `keyboardType` to custom mask. (thanks to [Nurbek Abulgazin](https://github.com/nurbek-ab))
442-
443-
## 1.5.1
444-
445-
* Adding `tinymask` to fix some custom mask issues.
446-
447-
## 1.5.0
448-
449-
* Adding new and powerfull `custom` engine mask \m/.
450-
451-
## 1.4.0
452-
453-
* Adding `customTextInput` to allow other inputs instead native TextInput. (thanks to [Hellon Canella](https://github.com/helloncanella))
454-
455-
## 1.3.4
456-
457-
* 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.
458-
459-
## 1.3.3
460-
461-
* Update dependencies (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))
462-
463-
## 1.3.2
464-
465-
* Fix: ignoring Jet Brains ide files (thanks to [Vlad-Zhukov](https://github.com/Vlad-Zhukov))
466-
467-
## 1.3.1
468-
469-
* Performance: adding check if the next value to be applied to the mask is equal as actual and prevent state change.
470-
471-
## 1.3.0
472-
473-
* Feat: now you can check and prevent input text on `TextInputMask` using `checkText` prop.
474-
475-
## 1.2.2
476-
477-
* Fix: fixing es2015 preset (thanks to [vagnercsouza](https://github.com/vagnercsouza), [barakcoh](https://github.com/barakcoh), Marvin Santos)
478-
479-
## 1.2.1
480-
481-
* Fix: fixing white space after unit on money mask.
482-
483-
## 1.2.0
484-
485-
* Adding `getRawValue`.
486-
487-
## 1.1.1
488-
489-
* Fixing toolbox-service reference (thanks to [ziftinpeki](https://github.com/ziftinpeki)).
490-
491-
## 1.1.0
492-
493-
* Adding credit-card mask.
494-
* Refactoring base mask to contain helpfull functions.
495-
496-
## 1.0.0
497-
498-
* Adding datetime and cnpj masks.
499-
* [Breaking Change] Refactoring MaskService.
500-
* Separate mask handlers for better extensibility.
501-
* Adding tests for all mask handlers.
502-
* Refactoring Components for use new mask handlers.
503-
504-
## 0.3.6
505-
506-
* Fix vanilla-mask path on windows.
400+
## Changelog
401+
View changelog [HERE](CHANGELOG.md)

dist/lib/text-input-mask.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
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);
1+
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;};}();
2+
var _react=require('react');var _react2=_interopRequireDefault(_react);
23
var _reactNative=require('react-native');
34

45

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

5152
return(
5253
_react2.default.createElement(Input,_extends({
53-
ref:INPUT_TEXT_REF,
54+
ref:function ref(_ref){
55+
if(_ref){
56+
if(typeof _this2.props.refInput==='function'){
57+
_this2.props.refInput(_ref);
58+
}
59+
}
60+
},
5461
keyboardType:this._getKeyboardType()},
5562
this.props,
5663
customTextInputProps,{
5764
onChangeText:function onChangeText(text){return _this2._onChangeText(text);},
58-
value:this.state.value,__source:{fileName:_jsxFileName,lineNumber:52}})));
65+
value:this.state.value,__source:{fileName:_jsxFileName,lineNumber:53}})));
5966

6067

6168
}}]);return TextInputMask;}(_baseTextComponent2.default);exports.default=TextInputMask;

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-masked-text",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Text and TextInput with mask for React Native applications",
55
"licenses": [
66
{
@@ -32,7 +32,7 @@
3232
},
3333
"homepage": "https://github.com/benhurott/react-native-masked-text#readme",
3434
"dependencies": {
35-
"moment": "^2.19.1",
35+
"moment": "2.19.3",
3636
"tinymask": "^1.0.2",
3737
"@types/react-native": "*",
3838
"@types/react": "*"
@@ -43,4 +43,4 @@
4343
"jest": "^19.0.2",
4444
"rimraf": "^2.6.2"
4545
}
46-
}
46+
}

0 commit comments

Comments
 (0)