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

Force upgrade @sinonjs/commons #2181

Merged
merged 1 commit into from Dec 23, 2019

Conversation

mroderick
Copy link
Member

Fixes #2180

Background

I guess @sinonjs/commons should have had a major version bump somewhere along the way, when the API changed.

Solution

  • Force @sinonjs/commons to latest

How to verify - mandatory

  1. Observe tests pass

@mroderick mroderick added the semver:patch changes will cause a new patch version label Dec 23, 2019
Copy link
Member

@mantoni mantoni left a comment

Choose a reason for hiding this comment

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

No, it was correct to release the global feature as a minor. But we need to force upgrade features that we depend on, because if someone installed sinon v7, they get the transitive dependencies locked in the package-lock.json. I suppose in this case, upgrading sinon to v8 did not upgrade commons, unless it's a fresh install.

@mantoni
Copy link
Member

mantoni commented Dec 23, 2019

Here is how this happened:

This is the commit that introduced the new commons feature in Sinon and it should have had the commons upgrade: f34a13e

In the same commit, I upgraded commons in the sinon tree implicitly because I had to reinstall all dependencies with rm -rf node_modules package-lock.json: f34a13e#diff-32607347f8126e6534ebc7ebaec4853dR188

This was necessary, because I ran into this npm issue: https://npm.community/t/cannot-read-property-match-of-undefined/203

Otherwise tests would have failed and it would have been obvious that commons needed an upgrade.

@mantoni mantoni merged commit e5837e4 into sinonjs:master Dec 23, 2019
@mantoni mantoni deleted the force-upgrade-commons branch December 23, 2019 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch changes will cause a new patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@sinonjs/commons version in Sinon v8 is out of date
2 participants