sinonjs/sinon (sinon)
### [`v15.2.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1520)
[Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.2...v15.2.0)
- [`66b0081e`](https://togithub.com/sinonjs/sinon/commit/66b0081e1f9673b14277882faa10aaa1e3b564ff)
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`](https://togithub.com/sinonjs/sinon/commit/a79ccaeb20bbb558902ae77b20bd026719de3004)
Support callable instances ([#2517](https://togithub.com/sinonjs/sinon/issues/2517)) (bojavou)
> - Support callable instances
>
> - Clean prettier lint
>
> ***
>
> Co-authored-by: - <->
- [`d220c995`](https://togithub.com/sinonjs/sinon/commit/d220c99516ddb644d3702b4736bdfd311a2b05ec)
fix: bundling compatibility with webpack@5 ([#2519](https://togithub.com/sinonjs/sinon/issues/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](https://togithub.com/fatso83) on 2023-06-20.*
### [`v15.1.2`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1512)
[Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.1...v15.1.2)
- [`02b73aed`](https://togithub.com/sinonjs/sinon/commit/02b73aed2d3d7dee071767fdf79073aa1dd673b6)
Update lock file after removing node_modules ... (Carl-Erik Kopseng)
*Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.*
### [`v15.1.1`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1511)
[Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.0...v15.1.1)
- [`194fc2ef`](https://togithub.com/sinonjs/sinon/commit/194fc2ef726aba1cfd5753316414934d2551e18c)
Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng)
> Instead of the later (breaking) version. See [#470](https://togithub.com/sinonjs/fake-timers/issues/470)
- [`05f05ac3`](https://togithub.com/sinonjs/sinon/commit/05f05ac30b1cb95c57dde3e30a4952679afb309a)
docs: Remove threw(obj) from docs ([#2513](https://togithub.com/sinonjs/sinon/issues/2513)) (Morgan Roderick)
> Since the introduction of threw in
>
> [`0feec9f`](https://togithub.com/sinonjs/sinon/commit/0feec9ffba0da6bc2996cefa0c6e71872e8bedb2), 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.
*Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.*
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
15.1.0
->15.2.0
Release Notes
sinonjs/sinon (sinon)
### [`v15.2.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1520) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.2...v15.2.0) - [`66b0081e`](https://togithub.com/sinonjs/sinon/commit/66b0081e1f9673b14277882faa10aaa1e3b564ff) 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`](https://togithub.com/sinonjs/sinon/commit/a79ccaeb20bbb558902ae77b20bd026719de3004) Support callable instances ([#2517](https://togithub.com/sinonjs/sinon/issues/2517)) (bojavou) > - Support callable instances > > - Clean prettier lint > > *** > > Co-authored-by: - <-> - [`d220c995`](https://togithub.com/sinonjs/sinon/commit/d220c99516ddb644d3702b4736bdfd311a2b05ec) fix: bundling compatibility with webpack@5 ([#2519](https://togithub.com/sinonjs/sinon/issues/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](https://togithub.com/fatso83) on 2023-06-20.* ### [`v15.1.2`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1512) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.1...v15.1.2) - [`02b73aed`](https://togithub.com/sinonjs/sinon/commit/02b73aed2d3d7dee071767fdf79073aa1dd673b6) Update lock file after removing node_modules ... (Carl-Erik Kopseng) *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.* ### [`v15.1.1`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1511) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.0...v15.1.1) - [`194fc2ef`](https://togithub.com/sinonjs/sinon/commit/194fc2ef726aba1cfd5753316414934d2551e18c) Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng) > Instead of the later (breaking) version. See [#470](https://togithub.com/sinonjs/fake-timers/issues/470) - [`05f05ac3`](https://togithub.com/sinonjs/sinon/commit/05f05ac30b1cb95c57dde3e30a4952679afb309a) docs: Remove threw(obj) from docs ([#2513](https://togithub.com/sinonjs/sinon/issues/2513)) (Morgan Roderick) > Since the introduction of threw in > > [`0feec9f`](https://togithub.com/sinonjs/sinon/commit/0feec9ffba0da6bc2996cefa0c6e71872e8bedb2), 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. *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.*Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.