Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Relaxes dependency versioning #70

Merged
merged 2 commits into from
Jan 27, 2016
Merged

Relaxes dependency versioning #70

merged 2 commits into from
Jan 27, 2016

Conversation

jakubpawlowicz
Copy link
Contributor

Currently both promise and request versions are pinned which makes it impossible to get patched updates within the same major version, see the commit message to a50469d.

It may require a version bump to 1.7, not sure what your policy is.

All tests are green locally.

Assuming it uses semver versioning.
The newest version of `request` uses patched versions of `hawk` and
`is-my-json-valid`, recently highlighted for DoS vulnerabilities.

Since `request` 2.53 uses `hawk` 2.x, which wasn't patched, the only
way to fix this vulnerability is to update to the most recent `request`
version.

See: mozilla/hawk#171

This is generally a good practice to use semver dependency versioning.
@kattrali
Copy link
Contributor

Thank you for the contribution, @jakubpawlowicz. The change makes sense, but would it be possible to lock to at least a minor a version which satisfies the requirements for the vulnerability patch? After taking a look at promise, I'm not sure either that it uses semver, and would like to mitigate the chance of dependency breakage as much as possible.

Any thoughts, @snmaynard @eanakashima?

@jakubpawlowicz
Copy link
Contributor Author

@kattrali sure, that would work as well, only requiring similar PR in case of any future issues. Although I'm a big fan of semver it's up to owners of this package to decide.

Please let me know how you'd like to bump the versions.

@kattrali
Copy link
Contributor

I poked around with this a bit, and I think it is fine for now. I may revisit and revise later. Thanks, @jakubpawlowicz.

kattrali added a commit that referenced this pull request Jan 27, 2016
Relaxes dependency versioning
@kattrali kattrali merged commit 25ea88f into bugsnag:master Jan 27, 2016
@jakubpawlowicz
Copy link
Contributor Author

Thank you, @kattrali!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants