Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use class instead React.createClass #94

Merged
merged 3 commits into from
Jul 4, 2017
Merged

Use class instead React.createClass #94

merged 3 commits into from
Jul 4, 2017

Conversation

krvital
Copy link
Contributor

@krvital krvital commented Apr 14, 2017

Use class instead React.createClass and use prop-types package instead React.PropTypes to prevent deprecation warning fix #70 fix #93

…d React.PropTypes to prevent deprecation warning fix #70 fix #93
@krvital krvital changed the title fix #70 fix #93 Use class instead React.createClass Use class instead React.createClass Apr 14, 2017
Copy link
Contributor

@avindra avindra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Babel is probably needed now.

src/index.js Outdated
}
},

class MaskedInput extends React.Component {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably add babel to the build pipeline?

Pretty sure shipping pure ES6 will break everyone's builds.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't nwb generating a UMD and a modules build? Doesn't this already get transformed in the UMD build?

Copy link
Contributor Author

@krvital krvital Apr 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, npm run build do all the things


render() {
var ref = r => this.input = r
var ref = r => { this.input = r }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should get all the var's to const and let as appropriate while you're at it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

es5 to es6 was not my purpose, I just wanted to avoid React warnings. I think it will be better to do these things in other PR, cause this PR relates to React.createClass only

@krvital
Copy link
Contributor Author

krvital commented Apr 17, 2017

So, where is the maintainer?

Vitaly D. Kravtsov and others added 2 commits April 18, 2017 12:11
@erictaylor
Copy link

erictaylor commented Apr 21, 2017

I get the feeling the maintainer has lost interest in this project? Should we fork a new project?

@freaksauce
Copy link

I've tried to contact the developer via email and on response there either, might be worth forking and creating a new npm package?

@adrianojdesouza
Copy link

@freaksauce any news about create a fork?

@@ -32,7 +32,8 @@
"inputmask-core": "^2.1.1"
},
"peerDependencies": {
"react": "0.14.x || 15.x.x"
"react": "0.14.x || 15.x.x",
Copy link

@MichaelDeBoey MichaelDeBoey May 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prop-types requires React ^0.14.9 or React ^15.3.0

@ivanzusko
Copy link

I'm not sure did I do it in the right way, but I've published my version of fork: react-maskedinput-updated

@MichaelDeBoey
Copy link

@insin I think we're all waiting for this one. 😕
Please merge this one! 🙂

@insin insin merged commit 86d6b59 into insin:master Jul 4, 2017
This was referenced Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deprecation error due to React.createClass React.PropTypes warning
8 participants