Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Add React 15.4.0 compatibility #114

Merged
merged 8 commits into from
Nov 23, 2016
Merged

Conversation

joemckie
Copy link
Contributor

Since React 15.4.0, react-addons-perf looks to react-dom. This PR updates dependency versions and removes the react-addons-linked-state dependency, which is now deprecated.

Fixes #111.

@RealOrangeOne
Copy link
Owner

Thanks for doing this (and catching the linked-state deprication!). Not sure what's up with the tests failing. Am having a look into that now

@joemckie
Copy link
Contributor Author

@RealOrangeOne no problem! I'm not sure what's up with the tests either. Looks like it's only on v4, but looks like a problem that's been going on for a while (look at the previous build logs).

@@ -42,22 +42,22 @@
"eslint-plugin-react": "=5.1.1",
"eslint-plugin-react-native": "=1.0.2",
"mocha": "=2.5.3",
"react": "=15.1.0",
"react": "=15.4.0",
"react-native": "^0.27.0"
Copy link
Owner

@RealOrangeOne RealOrangeOne Nov 20, 2016

Choose a reason for hiding this comment

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

looks like tests are breaking here. Please change to >=0.27.0. Not sure why this was only happening in node 4 though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated 👍

"react-addons-pure-render-mixin": "^15.4.0",
"react-addons-test-utils": "^15.4.0",
"react-addons-update": "^15.4.0",
"react-dom": "^15.4.0",
Copy link
Owner

Choose a reason for hiding this comment

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

do we need to explicitly state a dependancy on react-dom? Surely the addons libraries will handle installing this for us?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The addons specify a peerDependency so they don't install react-dom unfortunately!

@RealOrangeOne
Copy link
Owner

seems the reason the tests are failing is because react-native doesnt yet support react@15.4.0, so merging this would likely break the install for a lot of people

@joemckie
Copy link
Contributor Author

@RealOrangeOne looks like you might be right.

v0.38.0-rc.0 seems to have support for v15.4.0, and RN has a fortnightly release cycle, so I'd expect compatibility to be available in a few days' time.

Copy link
Owner

@RealOrangeOne RealOrangeOne left a comment

Choose a reason for hiding this comment

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

Pending next stable release of react-native

@joemckie
Copy link
Contributor Author

@RealOrangeOne : v0.38.0

"react": "^15.4.0",
"react-native": ">=0.27.0"
"react-native": "0.38.0"
Copy link
Owner

Choose a reason for hiding this comment

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

Can you leave this as a loose dependancy, so it upgrades automatically. Will help with tests

@@ -28,22 +28,22 @@
},
"homepage": "https://github.com/RealOrangeOne/react-native-mock#readme",
"devDependencies": {
"babel": "=6.5.2",
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason you removed the =

Copy link
Contributor Author

@joemckie joemckie Nov 23, 2016

Choose a reason for hiding this comment

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

Had a read through the docs and it isn't necessary to include the =, this is done automatically by NPM

https://github.com/npm/node-semver#versions

A leading "=" or "v" character is stripped off and ignored.

@RealOrangeOne RealOrangeOne merged commit 3c387ac into RealOrangeOne:master Nov 23, 2016
@joemckie
Copy link
Contributor Author

Hey FYI @RealOrangeOne the NPM package still needs version bumping to get this fix out :)

@messense
Copy link

Please release a new version on NPM. Thanks @RealOrangeOne

@joemckie
Copy link
Contributor Author

joemckie commented Nov 28, 2016

Yup. Currently blocking my project and I'm having to workaround right now!

@RealOrangeOne
Copy link
Owner

Released v0.2.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants