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

CHANGED: The jsdom dependency to allow a range of supported versions. #95

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

chriscartlidge
Copy link
Contributor

This allows versions of node <= 0.12.0 to use this project as jsdom 4.X > require node 4.X >

Issue: #94

@@ -67,7 +67,7 @@
"react": "0.13.x || 0.14.x"
},
"optionalDependencies": {
"jsdom": "^6.1.0",
"jsdom": "~3.1.2",
Copy link
Member

Choose a reason for hiding this comment

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

Please use ^, instead of ~ - older nodes are fine, but older npms don't even work properly with the registry, so there's no reason to support them.

@chriscartlidge
Copy link
Contributor Author

@ljharb Sorted.

@ljharb ljharb changed the title CHANGED: The jsdom dependency to ~3.1.2. CHANGED: The jsdom dependency to ^3.1.2. Dec 31, 2015
@ljharb
Copy link
Member

ljharb commented Dec 31, 2015

So, this will actually prohibit v6, and only work with v3 - what would be ideal is confirming exactly which major version lines of jsdom enzyme works with, and including all of them in the semver range - for example, ^3.1.2 || ^6.1.0, if it works with just those two, etc.

@chriscartlidge
Copy link
Contributor Author

@ljharb So it looks like we work against all of the jsdom versions apart from v4. I have updated the semver to take this into consideration.

@chriscartlidge chriscartlidge changed the title CHANGED: The jsdom dependency to ^3.1.2. CHANGED: The jsdom dependency to allow a range of supported versions. Jan 6, 2016
@@ -67,7 +67,7 @@
"react": "0.13.x || 0.14.x"
},
"optionalDependencies": {
"jsdom": "^6.1.0",
"jsdom": "^3.1.2 || ^5.6.1 || ^7.2.2",
Copy link
Member

Choose a reason for hiding this comment

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

could this also include || ^6.1.0 if it works with 6.x? If so, then this won't be a breaking change.

@chriscartlidge chriscartlidge force-pushed the master branch 3 times, most recently from 400df87 to 01d1ef9 Compare January 6, 2016 17:41
This allows versions of node <= 0.12.0 to use this project as jsdom 4.X > require node 4.X >
@chriscartlidge
Copy link
Contributor Author

@ljharb Sorted.

@lelandrichardson
Copy link
Collaborator

👍 I think this is good to go

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.

3 participants