Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
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.2
Choose a base ref
Loading
...
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
Loading
  • 5 commits
  • 7 files changed
  • 3 contributors

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.
    Avi Vahl 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