Socket
Socket
Sign inDemoInstall

sinon

Package Overview
Dependencies
13
Maintainers
4
Versions
204
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
21Next

18.0.0

Diff

Changelog

Source

18.0.0

This is what 17.0.2 should have been, as that contained two breaking changes. After updating Nise we are down to one breaking change, which only affects sinon-test (which has been updated), so most people are not affected. The legacyRoutes flag that is currently enabled in Nise by default will at some later version be disabled. We will then issue a little migration note.

Released by Carl-Erik Kopseng on 2024-05-15.

fatso83
published 17.0.2 •

Changelog

Source

17.0.2

  • f6dca0ba upgrade packages (#2595) (Carl-Erik Kopseng)
  • 5025d001 Avoid return and callArg* clearing each other's state (#2593) (Carl-Erik Kopseng)
    • Partially revert "fix returns does not override call through (#2567)"

    • revert to the old manual clearing of props
  • ed068a88 Bump ip from 1.1.8 to 1.1.9 (#2587) (dependabot[bot])
  • ec4d592e fix #2589: avoid invoking getter as side-effect (#2592) (Carl-Erik Kopseng)
  • 9972e1e3 Fix typo in mocks documentation (#2591) (Eduardo de la Cruz Palacios)
  • 52e6e4c5 chore: prefer cache option of setup-node (Morgan Roderick)
  • 08da1235 Bump actions/cache from 3 to 4 (dependabot[bot])
  • 404ef47e Bump nokogiri from 1.14.3 to 1.16.2 (dependabot[bot])
  • fd79612c Update Bug_report.md (Carl-Erik Kopseng)
  • 1fbc812a Re-add about (Carl-Erik Kopseng)
  • fc8f6c3e Fix formatting :clown: (Carl-Erik Kopseng)
  • c57e38ae Remove old template (Carl-Erik Kopseng)
  • 754bf7a9 Update Bug_report.md (Carl-Erik Kopseng)
  • 87eed9d2 Fix some typos at code comments (#2581) (EliyahuMachluf)
  • cbae6997 Link to createStubInstance util.md docs in stubs.md (#2577) (Daniel Kaplan)
  • adcf936d Fix Mocha watch task by delegating to Node (#2573) (Carl-Erik Kopseng)
  • 30ad2372 prettier:write (Carl-Erik Kopseng)
  • 45c4d6b9 Remove outdated info from README (#2571) (Carl-Erik Kopseng)
  • 6c9f5c2a Add a notice that the Fake Timers API doc is incomplete (#2570) (Carl-Erik Kopseng)
  • 93db3ef3 breaking: Remove sinon.defaultConfig and related modules (#2565) (Carl-Erik Kopseng)
    • breaking: Remove sinon.defaultConfig and related modules

    default-config and get-config are leftovers from when Sinon

    shipped with sinon.test (now the independent NPM module

    'sinon-test').

Released by Carl-Erik Kopseng on 2024-05-07.

fatso83
published 17.0.1 •

Changelog

Source

17.0.1

  • 5fde5aeb fix returns does not override call through (#2567) (Raz Luvaton)
  • b5fc3671 Documentation for assertion options for the sandbox (#2564) (Carl-Erik Kopseng)
  • f7d180cc fix: assertion log limit (#2485) (Spencer Goossens)
  • 4f538e3e Fix mochify breaking on node:assert (#2559) (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-11-01.

fatso83
published 17.0.0 •

Changelog

Source

17.0.0

  • 11a8e3f2 Remove Proxyquire as it did not handle newer syntax (Carl-Erik Kopseng)
  • ec37d634 Drop Node 16, as it is out of maintenance (Carl-Erik Kopseng)
  • 75e2b691 Upgrade fake-timers@11.2.2: new Intl mirroring and bugfixes (Carl-Erik Kopseng)

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

fatso83
published 16.1.3 •

Changelog

Source

16.1.3

  • 93e8aa93 Remove postinstall script as it causes issues for consumers (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-10-19.

fatso83
published 16.1.2 •

fatso83
published 16.1.1 •

fatso83
published 16.1.0 •

Changelog

Source

16.1.0

  • cac5184b Enable use of assignment in the presence of accessors (#2538) (Carl-Erik Kopseng)
  • f8c20e54 New article: making Sinon work with complex setups (#2540) (Carl-Erik Kopseng)

    Co-authored-by: Morgan Roderick morgan@roderick.dk >

  • cb5b9621 Add NPM script 'dev-docs' and document its usage (Carl-Erik Kopseng)
  • dd7c6091 Add a little update to contributing (Carl-Erik Kopseng)
  • 79acdf38 Move tool versions into single file at root (Carl-Erik Kopseng)
  • 03b1db50 Expose Changelog page (#2550) (Carl-Erik Kopseng)
  • e1c3dad2 Add section on tooling and recommend using ASDF for tool versioning (#2547) (Carl-Erik Kopseng) Released by Carl-Erik Kopseng on 2023-10-05.
mrgnrdrck
published 16.0.0 •

Changelog

Source

16.0.0

  • c3396058 fix(2525): ensure non empty message when error of type string is passed, but no message (#2544) (Mark de Dios)
  • baa1aee9 .define method (#2539) (Konstantin Gukov)
    • .define method for temporarily defining new properties during the tests
  • fe799e78 Fix issue 2534: spies are not restored (#2535) (Carl-Erik Kopseng)
  • 305fb6cc fix: actaully reset 'injectedKeys' (#2456) (Morgan Roderick)
  • de2635dd Bump LTS version one notch: 20 (#2529) (Carl-Erik Kopseng)

Released by Morgan Roderick on 2023-09-13.

fatso83
published 15.2.0 •

Changelog

Source

15.2.0

  • 66b0081e Use fake-timers v10.1.0 re-released as v10.3.0 (Carl-Erik Kopseng)

    Version 10.2.0 of fake-timers had an unexpected breaking change. We re-released 10.1.0 as 10.3.0 to force users into jumping over the deprecated version.

    v10.2.0 was re-released as v11.0.0 and will be part of the next Sinon major

  • a79ccaeb Support callable instances (#2517) (bojavou)
    • Support callable instances
    • Clean prettier lint

    Co-authored-by: - <->

  • d220c995 fix: bundling compatibility with webpack@5 (#2519) (Avi Vahl)
    • fix: bundling compatibility with webpack@5

    when using webpack v5 to bundle code that calls require('sinon') (cjs) , it would have defaulted to "exports->require" and fail with multiple node-api requirements (util, timers, etc.)

    this patch ensures that anyone who bundles sinon for browser gets the (browser-compatible) esm version.

    tested on both webpack v5 and v4. should be noted that v4 worked even without this patch, as it automatically injected polyfills. v5 no longer does so. with this PR, people using webpack@4 to bundle sinon at least see size improvement, as the polyfills are no longer required.

    • fix: revert change for package.json -> "browser"

    browserify doesn't seem to like esm. leave that entry point alone, and ensure "exports" -> "browser" (which webpack@5 uses) is esm.

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

2345
21Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc