Skip to content

Bump sinon from 9.2.4 to 22.1.0 - #1156

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/sinon-22.0.0
Open

Bump sinon from 9.2.4 to 22.1.0#1156
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/sinon-22.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 14, 2026

Copy link
Copy Markdown
Contributor

Bumps sinon from 9.2.4 to 22.1.0.

Changelog

Sourced from sinon's changelog.

22.1.0

  • d36e921b fix: let returns override returnsArg (王胜)

    Signed-off-by: 王胜 2318857637@qq.com

  • 40c4caa0 fix: align restoreObject docs test with idempotent behavior (#2745) (Julia Miller)

    restoreObject was made idempotent in #2737 — it no longer throws for objects with no restorable methods. Updates the docs page and its corresponding test to reflect this.

  • a68dac19 fix: throw a clear error when throwArg index equals the argument count (#2743) (spokodev)
    • fix: throw a clear error when throwArg index equals the argument count

    spyCall.throwArg(pos) guarded with pos > this.args.length, so calling it with pos equal to the number of recorded arguments slipped past the guard and reached throw this.args[pos], throwing undefined instead of the intended TypeError. A thrown undefined cannot be inspected as an Error and is reported by test frameworks as no exception thrown.

    Use >= to match ensureArgs in behavior.js and the sibling callArg helpers, which already reject an out-of-range index with a clear error.

  • 9ea504e3 feat: make sinon.restoreObject idempotent (#2737) (Ilia Choly)

    Passing an object with no live fakes to restoreObject now restores nothing instead of throwing, giving it symmetry with sinon.restore() and sandbox.restore(). The strict "found no methods" check is retained for spy(object) and stub(object), which now use a dedicated walkObjectStrict export, while restoreObject uses the loose walkObject. Passing a falsy value still throws.

    Fixes #2736

  • 4db4feff fix: preserve fake undefined argument validation (Vishal Kumar Singh)
  • 755a40d7 fix: isolate callId counter per sandbox for parallel test support (Vishal Kumar Singh)

    The global callId counter in proxy-invoke.js caused calledImmediatelyBefore and calledImmediatelyAfter to fail when tests run in parallel with separate sandboxes. Each sandbox now maintains its own callId counter, passed through the spy/stub/fake creation chain via a context object.

    Fixes #2472

Released by Morgan Roderick on 2026-07-20.

22.0.0

... (truncated)

Commits
  • ab289e9 22.1.0
  • bb3b75a chore: remove Jekyll steps from version hook
  • bb38f25 chore: run docs tests in preversion hook
  • d36e921 fix: let returns override returnsArg
  • 11db213 ci: run docs tests on every PR (#2746)
  • 40c4caa fix: align restoreObject docs test with idempotent behavior (#2745)
  • 5ccb7fd build(deps): bump the action-deps group with 4 updates (#2744)
  • a68dac1 fix: throw a clear error when throwArg index equals the argument count (#2743)
  • 9ea504e feat: make sinon.restoreObject idempotent (#2737)
  • cf5d9e8 fix: remove dead link and exclude code example URLs from link check
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by mrgnrdrck, a new releaser for sinon since your current version.


Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 14, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch from b19a74d to ca96ce3 Compare July 16, 2026 16:46
@dependabot dependabot Bot changed the title Bump sinon from 9.2.4 to 22.0.0 bump sinon from 9.2.4 to 22.0.0 Jul 16, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch from ca96ce3 to 08aee4f Compare July 16, 2026 22:36
@dependabot dependabot Bot changed the title bump sinon from 9.2.4 to 22.0.0 Bump sinon from 9.2.4 to 22.0.0 Jul 17, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch from 08aee4f to 83e94a1 Compare July 17, 2026 00:20
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.93%. Comparing base (ff5a668) to head (2ad3bd5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1156   +/-   ##
=======================================
  Coverage   68.93%   68.93%           
=======================================
  Files           9        9           
  Lines         898      898           
=======================================
  Hits          619      619           
  Misses        279      279           
Flag Coverage Δ
integration 49.77% <ø> (ø)
unit 67.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch from 83e94a1 to 2351945 Compare July 17, 2026 04:19
@dependabot dependabot Bot changed the title Bump sinon from 9.2.4 to 22.0.0 Bump sinon from 9.2.4 to 22.1.0 Jul 22, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch 2 times, most recently from 34a60dc to c895abf Compare July 22, 2026 22:31
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.4 to 22.1.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/CHANGES.md)
- [Commits](sinonjs/sinon@v9.2.4...v22.1.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-version: 22.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/sinon-22.0.0 branch from c895abf to 2ad5889 Compare July 22, 2026 22:48
@dependabot @github

dependabot Bot commented on behalf of github Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of sinon exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant