-
-
Notifications
You must be signed in to change notification settings - Fork 772
Comparing changes
Open a pull request
base repository: sinonjs/sinon
base: v15.1.0
head repository: sinonjs/sinon
compare: v15.2.0
- 11 commits
- 8 files changed
- 4 contributors
Commits on May 23, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 05f05ac - Browse repository at this point
Copy the full SHA 05f05acView commit details
Commits on Jun 12, 2023
-
Change fake-timers version to target the one containing the 'jump' fe…
…ature Instead of the later (breaking) version.
Configuration menu - View commit details
-
Copy full SHA for 194fc2e - Browse repository at this point
Copy the full SHA 194fc2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e4918d - Browse repository at this point
Copy the full SHA 2e4918dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0720b2f - Browse repository at this point
Copy the full SHA 0720b2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02b73ae - Browse repository at this point
Copy the full SHA 02b73aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4f868d - Browse repository at this point
Copy the full SHA b4f868dView commit details
Commits on Jun 20, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for d220c99 - Browse repository at this point
Copy the full SHA d220c99View commit details -
Support callable instances (#2517)
* Support callable instances * Clean prettier lint --------- Co-authored-by: - <->
bojavou authoredJun 20, 2023 Configuration menu - View commit details
-
Copy full SHA for a79ccae - Browse repository at this point
Copy the full SHA a79ccaeView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 66b0081 - Browse repository at this point
Copy the full SHA 66b0081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11fe43c - Browse repository at this point
Copy the full SHA 11fe43cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c97f511 - Browse repository at this point
Copy the full SHA c97f511View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v15.1.0...v15.2.0