-
-
Notifications
You must be signed in to change notification settings - Fork 779
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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
Could not load branches
Nothing to show
Loading
...
head repository: sinonjs/sinon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v15.2.0
Could not load branches
Nothing to show
Loading
- 5 commits
- 7 files changed
- 3 contributors
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.Avi Vahl authoredJun 20, 2023 -
Support callable instances (#2517)
* Support callable instances
* Clean prettier lint
---------
Co-authored-by: - <->bojavou authoredJun 20, 2023 -
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 -
Loading
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.2...v15.2.0