Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sinonjs/sinon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v15.1.0
Choose a base ref
...
head repository: sinonjs/sinon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v15.2.0
Choose a head ref
  • 11 commits
  • 8 files changed
  • 4 contributors

Commits on May 23, 2023

  1. docs: Remove threw(obj) from docs (#2513)

    Since the introduction of threw in
    0feec9f, no one have reported that
    `threw(obj)` doesn't work as the documentation states.
    
    ```js
    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.
    mroderick authored May 23, 2023
    Configuration menu
    Copy the full SHA
    05f05ac View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Change fake-timers version to target the one containing the 'jump' fe…

    …ature
    
    Instead of the later (breaking) version.
    fatso83 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    194fc2e View commit details
    Browse the repository at this point in the history
  2. Update lock file

    fatso83 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    2e4918d View commit details
    Browse the repository at this point in the history
  3. 15.1.1

    fatso83 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    0720b2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02b73ae View commit details
    Browse the repository at this point in the history
  5. 15.1.2

    fatso83 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    b4f868d View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. fix: bundling compatibility with webpack@5 (#2519)

    * 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.
    AviVahl authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    d220c99 View commit details
    Browse the repository at this point in the history
  2. Support callable instances (#2517)

    * Support callable instances
    
    * Clean prettier lint
    
    ---------
    
    Co-authored-by: - <->
    bojavou authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    a79ccae View commit details
    Browse the repository at this point in the history
  3. Use fake-timers v10.1.0 re-released as v10.3.0

    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
    fatso83 committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    66b0081 View commit details
    Browse the repository at this point in the history
  4. lockfile update

    fatso83 committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    11fe43c View commit details
    Browse the repository at this point in the history
  5. 15.2.0

    fatso83 committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    c97f511 View commit details
    Browse the repository at this point in the history
Loading