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

Lack of recent NPM package updates #1705

Closed
dupski opened this issue Jul 4, 2018 · 8 comments
Closed

Lack of recent NPM package updates #1705

dupski opened this issue Jul 4, 2018 · 8 comments

Comments

@dupski
Copy link

dupski commented Jul 4, 2018

Describe the bug
Enzyme has not been published to NPM for over 6 months

To Reproduce
https://www.npmjs.com/package/enzyme
https://www.npmjs.com/package/enzyme-adapter-react-16

Expected behavior
There have been some important fixes merged in, such as the fix to support React 16.3 context API:
#1513 , which I (and I'm sure others) need to use.

Please can a new version of Enzyme + the React 16 adapter be published?

I realise AirBnB are moving away from React Native, which I guess could be the reason for lack of updates. If that is the case, can access be given to others in the community to publish new versions?

@ljharb
Copy link
Member

ljharb commented Jul 4, 2018

Airbnb's choices around React Native are utterly unrelated; it's simply that we aren't yet ready to publish updates.

I'm not going to publish any further updates to any part of enzyme that have partial support for React 16 features, as that will just result in a flood of new bug reports, all of which would distract from completing support for React 16's features.

It's being worked on; you'll need to be patient.

@ljharb ljharb closed this as completed Jul 4, 2018
@dupski
Copy link
Author

dupski commented Jul 4, 2018

Ok sweet as - good news :)

@FezVrasta
Copy link
Contributor

FezVrasta commented Jul 6, 2018

No chance to at least get a pre-release? That would be so helpful to start experimenting with it and have an initial React 16.2+ support

@ljharb
Copy link
Member

ljharb commented Jul 6, 2018

@FezVrasta the work required to make a prerelease is basically identical to the work required to make a real one.

@dupski
Copy link
Author

dupski commented Jul 12, 2018

For anyone that wants to give the standard react-test-renderer a try, to get around this problem, I've just written up a medium article with some learnings on how to get started with it (the docs aren't that great!):

https://medium.com/@dupski/d9c65d689e88

@ljharb
Copy link
Member

ljharb commented Jul 12, 2018

The release will be as soon as possible; hopefully this or next month. I’d discourage migrating your tests to use the same APIs that motivated the creation of enzyme in the first place.

@dupski
Copy link
Author

dupski commented Jul 12, 2018

I'd be interested in reading about the motivations for Enzyme (I've just always used it). Is there a write-up somewhere?

Running tests with the test renderer seems to be incredibly fast, although could just be my new MacBook :)

@ljharb
Copy link
Member

ljharb commented Aug 8, 2018

The following packages are now released:

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

No branches or pull requests

3 participants