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

Support React 0.14 #178

Merged
merged 3 commits into from
Sep 4, 2015
Merged

Support React 0.14 #178

merged 3 commits into from
Sep 4, 2015

Conversation

namuol
Copy link
Contributor

@namuol namuol commented Aug 26, 2015

A few minor changes allow this to function with React 0.14 (which is in its third beta right now):

Replace react/lib/ExecutionEnvironment with exenv module

ExecutionEnvironment is not part of React's public API, and depending on it will break in 0.14, so I replaced it with a small dependency on exenv, which was created for this exact purpose.

Conditionally call initializeTouchEvents

This function has been removed in 0.14, so I only call it if it is available.

I'm not entirely sure if we'll need to make any further changes to ensure touch support behaves the same way with 0.14.

Summary

This PR shouldn't affect anyone currently using 0.13, but will allow for those using 0.14 to use Belle with their project. When 0.14-stable is released, we'll want to make sure touch events behave the same.

Thanks for the awesome components! 🍻

@jpuri
Copy link
Collaborator

jpuri commented Aug 27, 2015

Looks good ... 👍

@nikgraf
Copy link
Owner

nikgraf commented Aug 27, 2015

@namuol so cool, thx man. I will test the touch support in the few days and merge it then.

@@ -22,7 +22,7 @@
"react-component"
],
"peerDependencies": {
"react": ">=0.13.0"
"react": ">=0.13.0 <0.15.0 || ^0.14.0-alpha"
Copy link
Owner

Choose a reason for hiding this comment

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

@namuol Hey Louise, @jpuri and I tested it quite intense. Good job. We noticed the 0.14 is already at beta3 and only tested it for this version.

Our idea was to make the version explicit to make sure people don't run into trouble: "react": ">=0.13.0 || ^0.14.0-beta3". Once beta4 is out we can migrate to it and verify there are no breaking changes. Are you using the 0.14.0-alpha anywhere or is it fine like that?

nikgraf added a commit that referenced this pull request Sep 4, 2015
@nikgraf nikgraf merged commit 3111e64 into nikgraf:master Sep 4, 2015
@namuol
Copy link
Contributor Author

namuol commented Sep 4, 2015

Yeah I'm using beta3 and I'd expect most people using 0.14 to be on that version as well. 👍

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.

3 participants