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 production bundles for Test and Shallow renderers #11112

Merged
merged 3 commits into from
Oct 5, 2017

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Oct 5, 2017

Per discussion in #10938, adds bundles for production versions of test and shallow renderer.

Tested by building and running Node REPL with production env and doing a basic sanity check.

} else {
module.exports = require('./cjs/react-test-renderer.development');
module.exports = require('./cjs/react-test-renderer.development.js');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For consistency with other packages.

@reactjs-bot
Copy link

Deploy preview failed.

Built with commit 97fd6b7

https://app.netlify.com/sites/reactjs/deploys/59d63ca7a6188f17e537fd83

@gaearon gaearon requested a review from trueadm October 5, 2017 14:22
@gaearon gaearon mentioned this pull request Oct 5, 2017
19 tasks
Copy link
Contributor

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

LGTM

@reactjs-bot
Copy link

Deploy preview ready!

Built with commit 4206017

https://deploy-preview-11112--reactjs.netlify.com

@gaearon gaearon merged commit 7d3b44b into facebook:master Oct 5, 2017
@pgn-vole
Copy link

Do you guys have a rough idea of when the build including this change is going to be released ?

@buzinas
Copy link

buzinas commented Oct 20, 2017

Bump for the question above.

Or at least some suggested workaround that makes it possible to use React v16 in production with the current release.

@gaearon
Copy link
Collaborator Author

gaearon commented Oct 20, 2017

Probably next week.

The workaround is, as always, build from master if you depend on something that's only in master. I'm not sure what you expect. If this is blocking you from upgrading to 16, can you just not update to it yet? This has not been working in 16.0.0 so it's not like we broke this in a patch release either.

We can't just do releases as soon as PRs are merged. We need to ensure the release is solid and works well. We've found other bugs during internal testing, and need to do another round of testing this week. If it goes well then we'll release next week. If not then a week later.

In general it is not very productive to pressure us into releasing things faster. We have the same goals as you and also want to get them out soon. But if we hurry too much we will break your code, so with the number of dependents we want to be extra cautious and I hope you appreciate this.

@gaearon gaearon deleted the prod-test-bundles branch October 20, 2017 10:11
@buzinas
Copy link

buzinas commented Oct 20, 2017

Hey @gaearon, thanks for the response!

I'm really sorry that my message sounded like I was putting pressure on you, that wasn't my goal. I only wanted to have a rough estimate, so I could prioritize things in our project.

And yes, I definitely appreciate that, was having a conversation with a colleague about that just a moment ago - how it's nice that since I started using React two years and a half ago, it never broke any of my projects after an upgrade. So, thank you for that :)

@gaearon
Copy link
Collaborator Author

gaearon commented Oct 20, 2017

Thanks! Sorry if I sounded too defensive.

For context we've already been hoping to release this two times, but each time found show stopper bugs that triggered another round of re-testing and fixes. So I can’t give an exact estimate better than “within a couple of weeks” or “when it’s solid” 🙂

@StephanBijzitter
Copy link

For everyone watching this pull request, allow me to send a notification to your inboxes!
This feature has been released 4 days ago with v16.1.0: https://github.com/facebook/react/releases/tag/v16.1.0

Thanks for this change, now I don't have to override NODE_ENV for a single command on our CI anymore :-)

NMinhNguyen referenced this pull request in enzymejs/react-shallow-renderer Jan 29, 2020
* Add production bundles for Test and Shallow renderers

* Remove unused/broken file from test renderer

* Add production bundle for TestUtils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants