[Snyk] Upgrade: chai-spies, node-fetch, sinon #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade multiple dependencies.
👯♂ The following dependencies are linked and will therefore be updated together.ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
chai-spies
from 1.0.0 to 1.1.0 | 1 version ahead of your current version | 10 months ago
on 2023-10-31
node-fetch
from 2.6.1 to 2.7.0 | 13 versions ahead of your current version | a year ago
on 2023-08-23
sinon
from 7.3.1 to 7.5.0 | 4 versions ahead of your current version | 5 years ago
on 2019-09-23
Issues fixed by the recommended upgrade:
SNYK-JS-NODEFETCH-2342118
Release notes
Package name: chai-spies
What's Changed
spy.on
with nullish prototype by @ sebamarynissen in #118New Contributors
Full Changelog: 1.0.0...v1.1.0
This is a major release which introduces many new featues, such as sandboxes, as well as new convenience methods and assertions.
This major release also comes with some breaking changes:
Breaking Changes
removed
reset
method. #35 (@ stalniy)You will need to update any callsites to
spy.reset()
to instead assign a new spy to that variable or property.exposes original function body in
spy.toString
calls #93 (@ stalniy)If you check the
spy.toString()
output in your tests, this will need to be changed to accomodate for this change.Features
added spy.returns #35 (@ stalniy)
Allows to create spies that return constant value
added spy.on #61 (#38, @ stalniy)
Allows to add spies on existing methods
added posibility to replace original method when spying with
spy.on
#68 (#62, @ stalniy)added spy.restore #61 (#38, @ stalniy)
Allows to remove spies added by
spy.on
and restore original method implementationadded support for sanboxes #61 (#38, @ stalniy)
Now it's possible to create sanboxes and track/restore spies in sandbox
added support for
nth
call checks #75 (#59, @ cnexans)Allows to check spy arguments on specified call
spy(1); // first call
spy(2); // second call
spy(3); // third call
spy(i); // nth call
expect(spy).to.have.been.first.called.with(1)
expect(spy).to.have.been.second.called.with(2)
expect(spy).to.have.been.third.called.with(3)
expect(spy).on.nth(i).be.called.with(i)
Bug Fixes
.with
when multiple identical arguments are passed in spy call #56 (#45, @ meeber)Documentation
Package name: node-fetch
2.7.0 (2023-08-23)
Features
AbortError
(#1744) (9b9d458)2.6.13 (2023-08-18)
Bug Fixes
2.6.12 (2023-06-29)
Bug Fixes
2.6.11 (2023-05-09)
Reverts
2.6.10 (2023-05-08)
Bug Fixes
2.6.9 (2023-01-30)
Bug Fixes
2.6.8 (2023-01-13)
Bug Fixes
global
variable inbrowser.js
(#1534) (8bb6e31)Package name: sinon
7.5.0
7.4.2
7.4.1
7.3.2
7.3.1
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: