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

Add support for React 15 #279

Merged
merged 4 commits into from
Nov 29, 2016
Merged

Add support for React 15 #279

merged 4 commits into from
Nov 29, 2016

Conversation

gigabo
Copy link
Contributor

@gigabo gigabo commented Jun 8, 2016

This was suspiciously easy...

This addresses #81.

Targeting next, here. It's a breaking change.

@@ -5,7 +5,7 @@ export default class IndexPage {
getElements() {
return <div>
<h1>Entrypoints:</h1>
<ul>{_.map(entrypoints, (val, key) => <li>
<ul>{_.map(entrypoints, (val, key) => <li key={key}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just hushing some old warnings while I looked for new errors.

@doug-wade
Copy link
Collaborator

🚀 ✨ ❤️ 👍 🚢 :shipit:

@pconerly
Copy link

pconerly commented Aug 16, 2016

It'd be awesome to have this merged in and a npm release cut! If only to silence npm's complaints. :)

@doug-wade
Copy link
Collaborator

Look at all these nice things! https://github.com/facebook/react/releases/tag/v15.3.1

We could have them all!

@adaniliuk-edmunds
Copy link

Would be so great to have this merged.

@gigabo gigabo changed the base branch from next to master November 8, 2016 00:38
@gigabo
Copy link
Contributor Author

gigabo commented Nov 8, 2016

Okay, we need to get this done. I've rebased and pointed this at master.

Ready to merge once the next version goes out.

@doug-wade
Copy link
Collaborator

@gigabo it would be really great to be able to use https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html#profiling-components-with-chrome-timeline . Let's merge this stat -- I'm willing to do a dedicated release just for this one pr.

@@ -39,8 +39,8 @@
"winston": "2.2.0"
},
"peerDependencies": {
"react": "~0.14.2",
"react-dom": "~0.14.2",
"react": "^15.1.0",
Copy link

Choose a reason for hiding this comment

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

Is it possible to target ~0.14.2 || ^15.1.0? That will let users still on react 0.14 catch up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's a good idea! 🤔

Copy link

Choose a reason for hiding this comment

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

might actually make it easier for you guys to manage your upgrade as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, definitely. Good idea @auskast!

Due to https://facebook.github.io/react/tips/children-props-type.html:

> when there is only a single child, this.props.children will be the single
> child component itself without the array wrapper. This saves an array
> allocation.
@gigabo
Copy link
Contributor Author

gigabo commented Nov 29, 2016

Okay, I've rebased and changed to support both 0.14 and 15 as suggested by @auskast.

Going to remove the breaking change label. 🎉

@gigabo gigabo added enhancement New functionality. and removed breaking change labels Nov 29, 2016
@gigabo gigabo changed the title Upgrade to react 15 Add support for React 15 Nov 29, 2016
@gigabo gigabo merged commit a6160d0 into redfin:master Nov 29, 2016
@gigabo
Copy link
Contributor Author

gigabo commented Nov 29, 2016

React 15 support is now available in react-server@0.5.0. 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants