Socket
Socket
Sign inDemoInstall

sinon

Package Overview
Dependencies
Maintainers
4
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Versions

13
21

15.1.2

Diff

Changelog

Source

15.1.2

Released by Carl-Erik Kopseng on 2023-06-12.

fatso83
published 15.1.1 •

Changelog

Source

15.1.1

  • 194fc2ef Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng)

    Instead of the later (breaking) version. See #470

  • 05f05ac3 docs: Remove threw(obj) from docs (#2513) (Morgan Roderick)

    Since the introduction of threw in

    0feec9ffba0da6bc2996cefa0c6e71872e8bedb2, no one have reported that

    threw(obj) doesn't work as the documentation states.

    const sinon = require("sinon");
    
    const o = { pie: "apple" };
    
    const f = sinon.fake.throws(o);
    
    f();
    
    // this is supposed to return true
    
    f.threw(o);
    
    // => false
    

    Since it has been 12+ years without an error report, it's safe to assume

    that no one uses the threw method in this way. Let's remove it from

    the documentation.

Released by Carl-Erik Kopseng on 2023-06-12.

fatso83
published 15.1.0 •

Changelog

Source

15.1.0

  • 79e719f2 Ensure we use a fake-timers version with clock.jump (Carl-Erik Kopseng)
  • b2a4df5a Add docs for clock.jump method (#2512) (Jason O'Neill)
  • f096abff fix (#2514): only force new or inherited descriptors to be configurable (#2515) (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-05-18.

fatso83
published 15.0.4 •

Changelog

Source

15.0.4

  • e9042c4f Handling non-configurable object descriptors on the prototype (#2508) (Carl-Erik Kopseng)

    This should essentially make decorated methods stubbable again (see #2491)

  • 430c9a60 Remove uses of var (#2506) (Carl-Erik Kopseng)

    Replace var with const where possible in /lib and /test.

    Modified the let codemod to be a codemod.

    Took about half an hour with --watch running

Released by Carl-Erik Kopseng on 2023-04-20.

fatso83
published 15.0.3 •

Changelog

Source

15.0.3

  • b775f1b4 Avoid tampering with globals and other modules' exports in tests (#2504) (Carl-Erik Kopseng)
  • 477064b6 fix: make it possible to call through to underlying stub in stub instance (#2503) (Carl-Erik Kopseng)

    closes #2501

  • 6e19746e Remove dead Travis and Gitter references (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-03-26.

fatso83
published 15.0.2 •

Changelog

Source

15.0.2

  • 19bd99f3 Use no-op for every function when restoring instances (#2499) (Carl-Erik Kopseng)
  • 8663ffa0 Upgrade deps (#2498) (Carl-Erik Kopseng)

    Browserify, supports-color, husky had to be held back.

  • e01275bb Un-pin @sinonjs/fake-timers (#2495) (Jordan Hawker)

    The commit upgrading from v9 to v10 appears to have accidentally dropped the caret from the version range

  • 6cbde9b0 fix throws().callsFake() precedence (#2497) (Eduardo Diaz)

    This makes sure an unconditional callsFake() invoked on the same stub that was previously setup to throw will overwrite the previous behavior. This aligns it with the other behaviors.

  • 45be60f3 Replace probot/stale with official stale action (Morgan Roderick)

Released by Carl-Erik Kopseng on 2023-03-12.

fatso83
published 15.0.1 •

Changelog

Source

15.0.1

  • aa493da4 Upgrade to fake-timers v10.0.2 (Carl-Erik Kopseng)

    Contains several fixes

  • b3ee0aa5 Use Node version 18 in Runkit examples (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2022-12-15.

mrgnrdrck
published 15.0.0 •

Changelog

Source

15.0.0

  • b75fbfa9 Fix 2448: remove custom formatter (Morgan Roderick)

    Remove option to pass a custom formatter.

    The sub libraries of Sinon has long moved on to use util.inspect from Node. By using that in Sinon itself, we align all the libraries.

Released by Morgan Roderick on 2022-11-28.

mrgnrdrck
published 14.0.2 •

Changelog

Source

14.0.2

  • 4d70f6e0 Upgrade nise to latest (Morgan Roderick)
  • 96a0d756 Update @sinonjs/samsam to latest (Morgan Roderick)
  • babb4736 Prefer @sinonjs/commons@2 (Morgan Roderick)

    That makes ES2017 support explicit

Released by Morgan Roderick on 2022-11-07.

fatso83
published 14.0.1 •

Changelog

Source

14.0.1

  • 6c4753ef Fixed CSS selectors in _base.scss and changed blockquote default size to 16px. (Jose Lupianez)
  • A bunch of dependency updates

Released by Carl-Erik Kopseng on 2022-10-03.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc