-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: add Profiler support for adapter-react-16 #2233
Conversation
- ConcurrentMode was removed, and createRoot added, in v16.9+ (facebook/react#15532)
49fccc8
to
370f614
Compare
rebased; fixed the last broken tests; and added some dep updates. |
@ljharb -- is there a time we could expect this PR to be in a release? |
Not at the moment; I’m unable to do any releases for now while some permissions issues on the repo are worked out. |
@ljharb we'd like to test the functionality prior to the release with our project, can you offer a suggestion for how to link to the "enzyme-adapter-react-16" ? can pull the github remote url for master for the full enzyme project, but unable to for this separate package. |
To tack on to what @chrisadubois said, our team is looking to give back to the open source community where we can so if there is anything we can help with on the permissioning issues let us know! We'll post back here if we figure out how to correctly |
bump for @ljharb. This is blocking one of our feature PRs in a project. Trying to give timelines to PMs but it's difficult without knowing when a next build will be published. |
Last plea for a deploy of latest to NPM @ljharb. We're looking at forking or going with a different library as we really want to have the profiler support metrics in local dev and when our automation runs. |
@andrewholsted i'm sorry, i'm still unable to publish. You can install the adapter from any git sha, however, so there should be no need for either forking or another library. |
@ljharb The sha won't have the "built" version though, correct? Or am I missing something? We tried installing from github (and linking locally) but ran into several babel type issues. |
@andrewholsted this is true, but you can add a |
I'll take a look at that. Building locally and doing npm link was giving us the babel issues. I can try the above, instead. |
@ljharb - no dice
We've tried everything we can think of. Please post back when you can publish a new version. I don't understand what could be holding up the process so badly though. |
- [new] add Profiler support for react v16.9+ (#2233) - [new] add `wrapInvoke` to adapter (#2158) - [refactor] use `enzyme-shallow-equal` - [dev deps] update `eslint`, `eslint-plugin-react`, `eslint-config-airbnb`, `eslint-plugin-import`, `eslint-plugin-jsx-a11y`, `eslint-plugin-react`, `safe-publish-latest` - [meta] Update airbnb.io URLs to use https (#2222)
@andrewholsted v1.15.0 of the react 16 adapter has been released. |
@ljharb that worked, thank you |
Current Issue
When I follow the CONTRIBUTING.md docs on master and install React 16 (16.9.0), the tests fail due to errors with Profiler and ConcurrentMode. My understanding is that in 16.9 Profile no longer needs/has the _unstable prefix and _unstableConcurrentMode was removed as noted here.
Proposed Fix
This issue makes the Profiler change backwards compatible with from 16.6 through 16.9 and drops the test support for
ConcurrentMode
at 16.9.Final Note
I haven't been able to actually test in my project that depends on this due to npm/yarn linking issues. I was still game to open the PR because the tests should pass on master now. I've only tested on 16 because it said CI would test all the other versions.