Bump sinon from 2.1.0 to 21.0.3 by dependabot[bot] · Pull Request #124 · HydraJS/HydraJS
Bumps sinon from 2.1.0 to 21.0.3.
Release notes
Sourced from sinon's releases.
Make resetHistory work for props
- Fix #1638: Make resetHistory work for props
Speed up stub creation
- Performance: spend less time stubbing methods (#1627)
Add match.every and match.some
Replace 4.1.5, which was a bad build
- Fix bad build, missing nise@1.2.0 (#1656)
- Upgrade dependency supports-color
Fix issue with
useFakeServerThis release fixes an issue, where the server type from
useFakeServeris unexpected (#1534)Minor fix for Symbol names and deprecation of spy.reset
- Fix: assertion error messages did not handle Symbol names (#1640)
- Deprecate spy.reset(), use spy.resetHistory() instead (#1446)
Add stub#resolvesThis
- Fix #1521 by caching references to Array.prototype.filter (#1523)
- Fix #1368 by adding stub#resolvesThis (#1517)
v3.1.0
- Add factory functions for sandbox and fake server (#1515)
- Add support for passing a function to stub.throws(...). (#1511)
- Lots of documentation updates
- Fix regression on sandbox.stub(obj,protoMethod) (#1512)
v3.0.0
- Remove deprecated exports see migration guide
- Fix #1432: add details around expectations.withArgs behavior to docs (#1501)
- Fix #1487: incorrect withArgs().returnValue
- add format.setFormatter
- Upgrade lolex to 2.1.2
- Extract fakeXhr, fakeServer and fakeServerWithClock into own module
niseand re-import it to keep api the sameFix #1474: stub#usingPromise and stub#onNthCall have unexpected interactions
This release fixes #1474
Fix #1476
- Fix #1476: spy.withArgs(args...).firstCall is broken
Fix #1274: spy.withArgs(args...).callCount is incorrect
Fix: Check configurable on a prop before creating
... (truncated)
Changelog
Sourced from sinon's changelog.
21.0.3
Released by Carl-Erik Kopseng on 2026-03-16.
21.0.2
024321c4fix: skip Node specific tests in browser env (Carl-Erik Kopseng)b836fccbfix: js-yaml breaking change from v3 to v4 (Carl-Erik Kopseng)ebf0c431docs: add how-to article for stubbing ES module imports (#1832) (#2676) (Eduard Barrera)
- docs: add how-to article for stubbing ES module imports with esm package
Adds a comprehensive How-To guide that addresses issue #1832, documenting how to configure Node.js to allow Sinon stubs to work with ES modules.
- Explains why ES module namespace bindings are immutable by spec
- Shows how to use the 'esm' npm package with mutableNamespace: true
- Provides a complete working example with project layout, package.json, loader file, source modules, and a full test suite
- Documents limitations (destructured imports, non-standard behavior)
- Replaces the TODO comment in link-seams-commonjs.md with a cross-reference
Closes #1832 Co-authored-by: Eduard Barrera eduardbar@users.noreply.github.com Co-authored-by: Carl-Erik Kopseng carlerik@gmail.com
ebcd506cFix spies not being reset properly (#2673) (simon-id)3beab2baMake doc tests pass with new jQuery (Carl-Erik Kopseng)766715c6build: reduce transitive audit findings (Carl-Erik Kopseng)92aaf5c9build: upgrade eslint config and replace dependency-check (Carl-Erik Kopseng)c6aaa871chore: ignore project worktrees (Carl-Erik Kopseng)ef387e8eUpgrade most deps (Carl-Erik Kopseng)3cf4e77ddocs: improve writing of documentation (#2675) (Eduardo de la Cruz Palacios)6349032fCheck login status before publishing steps are performed (Carl-Erik Kopseng)Released by Carl-Erik Kopseng on 2026-03-04.
21.0.1
... (truncated)
Commits
138148221.0.30494251fix(#2678): upgrade samsam to fix buffer comparisons2d93d6821.0.23af394elint-staged -> 16.3.22948314prettier024321cfix: skip Node specific tests in browser envb836fccfix: js-yaml breaking change from v3 to v4ebf0c43docs: add how-to article for stubbing ES module imports (#1832) (#2676)ebcd506Fix spies not being reset properly (#2673)3beab2bMake doc tests pass with new jQuery- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by fatso83, a new releaser for sinon since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)