Skip to content

Commit c97f511

Browse files
committed
15.2.0
1 parent 11fe43c commit c97f511

File tree

5 files changed

+74
-4
lines changed

5 files changed

+74
-4
lines changed

CHANGES.md

+35
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changes
22

3+
## 15.2.0
4+
5+
- [`66b0081e`](https://github.com/sinonjs/sinon/commit/66b0081e1f9673b14277882faa10aaa1e3b564ff)
6+
Use fake-timers v10.1.0 re-released as v10.3.0 (Carl-Erik Kopseng)
7+
> Version 10.2.0 of fake-timers had an unexpected breaking
8+
> change. We re-released 10.1.0 as 10.3.0 to force users
9+
> into jumping over the deprecated version.
10+
>
11+
> v10.2.0 was re-released as v11.0.0 and will be part of
12+
> the next Sinon major
13+
- [`a79ccaeb`](https://github.com/sinonjs/sinon/commit/a79ccaeb20bbb558902ae77b20bd026719de3004)
14+
Support callable instances (#2517) (bojavou)
15+
> - Support callable instances
16+
>
17+
> - Clean prettier lint
18+
>
19+
> ***
20+
>
21+
> Co-authored-by: - <->
22+
- [`d220c995`](https://github.com/sinonjs/sinon/commit/d220c99516ddb644d3702b4736bdfd311a2b05ec)
23+
fix: bundling compatibility with webpack@5 (#2519) (Avi Vahl)
24+
> - fix: bundling compatibility with webpack@5
25+
>
26+
> 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.)
27+
>
28+
> this patch ensures that anyone who bundles sinon for browser gets the (browser-compatible) esm version.
29+
>
30+
> 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.
31+
>
32+
> - fix: revert change for package.json -> "browser"
33+
>
34+
> browserify doesn't seem to like esm. leave that entry point alone, and ensure "exports" -> "browser" (which webpack@5 uses) is esm.
35+
36+
_Released by [Carl-Erik Kopseng](https://github.com/fatso83) on 2023-06-20._
37+
338
## 15.1.2
439

540
- [`02b73aed`](https://github.com/sinonjs/sinon/commit/02b73aed2d3d7dee071767fdf79073aa1dd673b6)

docs/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
url: 'https://sinonjs.org'
66
github_username: sinonjs
77
sinon:
8-
current_release: v15.1.2
8+
current_release: v15.2.0
99
current_major_version: 15
1010
markdown: kramdown
1111
kramdown:

docs/changelog.md

+35
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,41 @@ permalink: /releases/changelog
66

77
# Changelog
88

9+
## 15.2.0
10+
11+
- [`66b0081e`](https://github.com/sinonjs/sinon/commit/66b0081e1f9673b14277882faa10aaa1e3b564ff)
12+
Use fake-timers v10.1.0 re-released as v10.3.0 (Carl-Erik Kopseng)
13+
> Version 10.2.0 of fake-timers had an unexpected breaking
14+
> change. We re-released 10.1.0 as 10.3.0 to force users
15+
> into jumping over the deprecated version.
16+
>
17+
> v10.2.0 was re-released as v11.0.0 and will be part of
18+
> the next Sinon major
19+
- [`a79ccaeb`](https://github.com/sinonjs/sinon/commit/a79ccaeb20bbb558902ae77b20bd026719de3004)
20+
Support callable instances (#2517) (bojavou)
21+
> - Support callable instances
22+
>
23+
> - Clean prettier lint
24+
>
25+
> ***
26+
>
27+
> Co-authored-by: - <->
28+
- [`d220c995`](https://github.com/sinonjs/sinon/commit/d220c99516ddb644d3702b4736bdfd311a2b05ec)
29+
fix: bundling compatibility with webpack@5 (#2519) (Avi Vahl)
30+
> - fix: bundling compatibility with webpack@5
31+
>
32+
> 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.)
33+
>
34+
> this patch ensures that anyone who bundles sinon for browser gets the (browser-compatible) esm version.
35+
>
36+
> 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.
37+
>
38+
> - fix: revert change for package.json -> "browser"
39+
>
40+
> browserify doesn't seem to like esm. leave that entry point alone, and ensure "exports" -> "browser" (which webpack@5 uses) is esm.
41+
42+
_Released by [Carl-Erik Kopseng](https://github.com/fatso83) on 2023-06-20._
43+
944
## 15.1.2
1045

1146
- [`02b73aed`](https://github.com/sinonjs/sinon/commit/02b73aed2d3d7dee071767fdf79073aa1dd673b6)

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"xhr",
1616
"assert"
1717
],
18-
"version": "15.1.2",
18+
"version": "15.2.0",
1919
"homepage": "https://sinonjs.org/",
2020
"author": "Christian Johansen",
2121
"repository": {

0 commit comments

Comments
 (0)