Skip to content

Commit 2d93d68

Browse files
committed
21.0.2
1 parent 3af394e commit 2d93d68

3 files changed

Lines changed: 61 additions & 41 deletions

File tree

CHANGES.md

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,27 @@
22

33
## 21.0.2
44

5-
- [`2948314c`](https://github.com/sinonjs/sinon/commit/2948314cc4289bae0a27fabdd263565e07c3ba68)
6-
prettier (Carl-Erik Kopseng)
75
- [`024321c4`](https://github.com/sinonjs/sinon/commit/024321c48e670de35098b2555173e25f024db90d)
86
fix: skip Node specific tests in browser env (Carl-Erik Kopseng)
97
- [`b836fccb`](https://github.com/sinonjs/sinon/commit/b836fccb8adabd3d116338b19ae1f6a4ccfc7d3e)
108
fix: js-yaml breaking change from v3 to v4 (Carl-Erik Kopseng)
119
- [`ebf0c431`](https://github.com/sinonjs/sinon/commit/ebf0c4313f41edfdf71f206c826a8ce7d56f2d2c)
1210
docs: add how-to article for stubbing ES module imports (#1832) (#2676) (Eduard Barrera)
13-
>
14-
> * docs: add how-to article for stubbing ES module imports with esm package
15-
>
16-
> Adds a comprehensive How-To guide that addresses issue #1832, documenting
17-
> how to configure Node.js to allow Sinon stubs to work with ES modules.
18-
>
19-
> - Explains why ES module namespace bindings are immutable by spec
20-
> - Shows how to use the 'esm' npm package with mutableNamespace: true
21-
> - Provides a complete working example with project layout, package.json,
22-
> loader file, source modules, and a full test suite
23-
> - Documents limitations (destructured imports, non-standard behavior)
24-
> - Replaces the TODO comment in link-seams-commonjs.md with a cross-reference
25-
>
26-
> Closes #1832
27-
>
28-
> * style: fix prettier formatting in stub-esm-default-export.md
29-
>
30-
> Replace single quotes with double quotes in all JavaScript code
31-
> blocks within the how-to article, as required by the project's
32-
> Prettier configuration.
33-
>
34-
> * Add related article on Typescript and SWC stubbing
35-
>
36-
> Added a related article on real world dependency stubbing using Typescript and SWC.
37-
>
38-
> * Make linting pass: new warnings are from new rules
39-
>
40-
> * Update workflow actions
41-
>
42-
> * Fetch depth = 2
43-
>
44-
> ---------
45-
>
46-
> Co-authored-by: Eduard Barrera <eduardbar@users.noreply.github.com>
47-
> Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>
11+
> - docs: add how-to article for stubbing ES module imports with esm package
12+
>
13+
> Adds a comprehensive How-To guide that addresses issue #1832, documenting
14+
> how to configure Node.js to allow Sinon stubs to work with ES modules.
15+
>
16+
> - Explains why ES module namespace bindings are immutable by spec
17+
> - Shows how to use the 'esm' npm package with mutableNamespace: true
18+
> - Provides a complete working example with project layout, package.json,
19+
> loader file, source modules, and a full test suite
20+
> - Documents limitations (destructured imports, non-standard behavior)
21+
> - Replaces the TODO comment in link-seams-commonjs.md with a cross-reference
22+
>
23+
> Closes #1832
24+
> Co-authored-by: Eduard Barrera <eduardbar@users.noreply.github.com>
25+
> Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>
4826
- [`ebcd506c`](https://github.com/sinonjs/sinon/commit/ebcd506cbb55df6c7d2bda558f58386a218df9be)
4927
Fix spies not being reset properly (#2673) (simon-id)
5028
- [`3beab2ba`](https://github.com/sinonjs/sinon/commit/3beab2ba97fe74cdb0f495420ac06652e59835aa)

docs/_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ title: Sinon.JS
22
description: >-
33
Standalone test spies, stubs and mocks for JavaScript. Works with any unit
44
testing framework.
5-
url: 'https://sinonjs.org'
5+
url: https://sinonjs.org
66
github_username: sinonjs
77
sinon:
8-
current_release: v21.0.1
8+
current_release: v21.0.2
99
current_major_version: 21
1010
markdown: kramdown
1111
kramdown:
@@ -31,10 +31,10 @@ exclude:
3131
collections:
3232
howto:
3333
output: true
34-
permalink: '/how-to/:path/'
34+
permalink: /how-to/:path/
3535
releases:
3636
output: true
37-
permalink: '/:collection/:path/'
37+
permalink: /:collection/:path/
3838
sass:
3939
sass_dir: _sass
4040
style: compressed

docs/changelog.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,48 @@ permalink: /releases/changelog
66

77
# Changelog
88

9+
## 21.0.2
10+
11+
- [`024321c4`](https://github.com/sinonjs/sinon/commit/024321c48e670de35098b2555173e25f024db90d)
12+
fix: skip Node specific tests in browser env (Carl-Erik Kopseng)
13+
- [`b836fccb`](https://github.com/sinonjs/sinon/commit/b836fccb8adabd3d116338b19ae1f6a4ccfc7d3e)
14+
fix: js-yaml breaking change from v3 to v4 (Carl-Erik Kopseng)
15+
- [`ebf0c431`](https://github.com/sinonjs/sinon/commit/ebf0c4313f41edfdf71f206c826a8ce7d56f2d2c)
16+
docs: add how-to article for stubbing ES module imports (#1832) (#2676) (Eduard Barrera)
17+
> - docs: add how-to article for stubbing ES module imports with esm package
18+
>
19+
> Adds a comprehensive How-To guide that addresses issue #1832, documenting
20+
> how to configure Node.js to allow Sinon stubs to work with ES modules.
21+
>
22+
> - Explains why ES module namespace bindings are immutable by spec
23+
> - Shows how to use the 'esm' npm package with mutableNamespace: true
24+
> - Provides a complete working example with project layout, package.json,
25+
> loader file, source modules, and a full test suite
26+
> - Documents limitations (destructured imports, non-standard behavior)
27+
> - Replaces the TODO comment in link-seams-commonjs.md with a cross-reference
28+
>
29+
> Closes #1832
30+
> Co-authored-by: Eduard Barrera <eduardbar@users.noreply.github.com>
31+
> Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>
32+
- [`ebcd506c`](https://github.com/sinonjs/sinon/commit/ebcd506cbb55df6c7d2bda558f58386a218df9be)
33+
Fix spies not being reset properly (#2673) (simon-id)
34+
- [`3beab2ba`](https://github.com/sinonjs/sinon/commit/3beab2ba97fe74cdb0f495420ac06652e59835aa)
35+
Make doc tests pass with new jQuery (Carl-Erik Kopseng)
36+
- [`766715c6`](https://github.com/sinonjs/sinon/commit/766715c68a94fd66e9ca79f62c23d07fd1645d4c)
37+
build: reduce transitive audit findings (Carl-Erik Kopseng)
38+
- [`92aaf5c9`](https://github.com/sinonjs/sinon/commit/92aaf5c9d1686a9b4a025c31cb3b0813e7fd2350)
39+
build: upgrade eslint config and replace dependency-check (Carl-Erik Kopseng)
40+
- [`c6aaa871`](https://github.com/sinonjs/sinon/commit/c6aaa8719ea831c43112ff0d0727a35e6bf92731)
41+
chore: ignore project worktrees (Carl-Erik Kopseng)
42+
- [`ef387e8e`](https://github.com/sinonjs/sinon/commit/ef387e8ec6eb692f63844130b4590d018729a723)
43+
Upgrade most deps (Carl-Erik Kopseng)
44+
- [`3cf4e77d`](https://github.com/sinonjs/sinon/commit/3cf4e77d2c20a63a27c0ac14e0186f45761a0b77)
45+
docs: improve writing of documentation (#2675) (Eduardo de la Cruz Palacios)
46+
- [`6349032f`](https://github.com/sinonjs/sinon/commit/6349032fc42f01c302e05d3146e489d92fc9dbf9)
47+
Check login status before publishing steps are performed (Carl-Erik Kopseng)
48+
49+
_Released by [Carl-Erik Kopseng](https://github.com/fatso83) on 2026-03-04._
50+
951
## 21.0.1
1052

1153
- [`456a65c2`](https://github.com/sinonjs/sinon/commit/456a65c2813533fa4e946b9e707baf798a679ad3)

0 commit comments

Comments
 (0)