Skip to content

Commit 70911c0

Browse files
committed
13.0.0
1 parent d97b47c commit 70911c0

File tree

5 files changed

+406
-5
lines changed

5 files changed

+406
-5
lines changed

CHANGES.md

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,206 @@
11
# Changes
22

3+
## 13.0.0
4+
5+
- [`cf3d6c0c`](https://github.com/sinonjs/sinon/commit/cf3d6c0cd9689c0ee673b3daa8bf9abd70304392)
6+
Upgrade packages (#2431) (Carl-Erik Kopseng)
7+
> - Update all @sinonjs/ packages
8+
>
9+
> $ npx npm-check-updates -u /@sinonjs/ && npm i
10+
>
11+
> @sinonjs/samsam ^6.0.2 → ^6.1.0
12+
>
13+
> @sinonjs/eslint-config ^4.0.2 → ^4.0.4
14+
>
15+
> @sinonjs/referee ^8.0.2 → ^9.1.1
16+
>
17+
> - Upgrade Mocha and Puppeteer
18+
>
19+
> - Make ESM support test run without 'esm' module
20+
>
21+
> - Upgrade lint-staged and some minor/patch versions
22+
>
23+
> - Upgrade eslint-config to fix \*.mjs issue
24+
>
25+
> - Upgrade to fake-timers 9
26+
>
27+
> - chore: ensure always using latest LTS release
28+
- [`41710467`](https://github.com/sinonjs/sinon/commit/417104670d575e96a1b645ea40ce763afa76fb1b)
29+
Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master (#2426) (Joel Bradshaw)
30+
> Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>
31+
- [`c80a7266`](https://github.com/sinonjs/sinon/commit/c80a72660e89d88b08275eff1028ecb9e26fd8e9)
32+
Bump node-fetch from 2.6.1 to 2.6.7 (#2430) (dependabot[bot])
33+
> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34+
- [`a00f14a9`](https://github.com/sinonjs/sinon/commit/a00f14a97dbe8c65afa89674e16ad73fc7d2fdc0)
35+
Add explicit export for `./*` (#2413) (なつき)
36+
- [`b82ca7ad`](https://github.com/sinonjs/sinon/commit/b82ca7ad9b1add59007771f65a18ee34415de8ca)
37+
Bump cached-path-relative from 1.0.2 to 1.1.0 (#2428) (dependabot[bot])
38+
- [`a9ea1427`](https://github.com/sinonjs/sinon/commit/a9ea142716c094ef3c432ecc4089f8207b8dd8b6)
39+
Add documentation for assert.calledOnceWithMatch (#2424) (Mathias Schreck)
40+
- [`1d5ab86b`](https://github.com/sinonjs/sinon/commit/1d5ab86ba60e50dd69593ffed2bffd4b8faa0d38)
41+
Be more general in stripping off stack frames to fix Firefox tests (#2425) (Joel Bradshaw)
42+
> - Revert breaking change to stack-stripping regex
43+
>
44+
> This regex was made more specific in an attempt to avoid incorrectly
45+
>
46+
> stripping off parts of messages - we strip off anything after " at",
47+
>
48+
> which means "to have been called at least once" becomes "to have been
49+
>
50+
> called".
51+
>
52+
> However, the new regex was too specific and made faulty assumptions
53+
>
54+
> about stack traces - namely, that they'll always have parentheses after
55+
>
56+
> the at. Firefox's stack traces, however, look like so:
57+
>
58+
> func() at callFn@about:blank line 2 > injectedScript:47353:21
59+
>
60+
> So, we could try to come up with a better regex that matches all
61+
>
62+
> browsers that we test with, or perhaps add some sort of indicator when
63+
>
64+
> we're appending the stack traces, but since this change is breaking the
65+
>
66+
> tests for everyone right now, for expedience we'll just revert to how we
67+
>
68+
> were stripping things before.
69+
>
70+
> This means changing one of the asserts back to how it was before, where
71+
>
72+
> it was asserting against a partial message due to the over-eager
73+
>
74+
> stripping, so add a comment about that as well.
75+
>
76+
> - Update with a more general regex
77+
>
78+
> This should match any stack frame format that has at least one non-word,
79+
>
80+
> non-space character in it, which should be a pretty safe assumption, and
81+
>
82+
> holds for the three browsers we test in anyway.
83+
>
84+
> This gets us back to not trimming messages improperly, while also not
85+
>
86+
> breaking firefox, and I think is reasonable as far as regexes go.
87+
>
88+
> This seems like a reasonable enough regex - the original fixed one was
89+
>
90+
> overly complicated because it tried to remove an arbitrary number of
91+
>
92+
> stack frames, which was unnecessary because we only append one.
93+
- [`56b06129`](https://github.com/sinonjs/sinon/commit/56b06129e223eae690265c37b1113067e2b31bdc)
94+
Check call count type (#2410) (Joel Bradshaw)
95+
> - Strip stack frames in `this.message`
96+
>
97+
> This saves us from having to do it every time, and makes things much
98+
>
99+
> nicer. Also use a little bit more specific regex, to avoid issues with
100+
>
101+
> messages that happen to contain the word "at"
102+
>
103+
> - Check type of callCount argument and error accordingly
104+
>
105+
> This is to fixes #2408, which could result in error messages like
106+
>
107+
> "expected spy to be called 10 times but was called 10 times".
108+
>
109+
> Now we will instead say "expected '10' to be a number, but was of type
110+
>
111+
> string", which is much clearer!
112+
>
113+
> - A little more explanatory comment
114+
>
115+
> - Edit the comment about appending stack frames
116+
>
117+
> What's actually happening here is that we want to add a frame of context
118+
>
119+
> to `callStr`, but the first two stack frames will be within Sinon code
120+
>
121+
> and thus probably not helpful to the end-user.
122+
>
123+
> So, we skip the first two stack frames, and append the third stack
124+
>
125+
> frame, which should contain a meaningful location to the end-user.
126+
>
127+
> - Add test for adding stack traces to error message
128+
>
129+
> This ensures that if at some point we end up with another Sinon layer in
130+
>
131+
> the stack at some point, we'll catch it and hopefully adjust accordingly
132+
>
133+
> For reference, as of this commit, the Sinon portion of the stack is:
134+
>
135+
> lib/sinon/proxy-invoke.js:65:15
136+
>
137+
> lib/sinon/proxy.js:265:26
138+
>
139+
> Also convert a neighboring test to async while we're at it
140+
- [`7863e2df`](https://github.com/sinonjs/sinon/commit/7863e2dfdbda79e0a32e42af09e6539fc2f2b80f)
141+
Fix #2414: make Sinon available on homepage (Carl-Erik Kopseng)
142+
- [`fabaabdd`](https://github.com/sinonjs/sinon/commit/fabaabdda82f39a7f5b75b55bd56cf77b1cd4a8f)
143+
Bump nokogiri from 1.11.4 to 1.13.1 (#2423) (dependabot[bot])
144+
> Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.4 to 1.13.1.
145+
>
146+
> - [Release notes](https://github.com/sparklemotion/nokogiri/releases)
147+
>
148+
> - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
149+
>
150+
> - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.4...v1.13.1)
151+
>
152+
> ***
153+
>
154+
> updated-dependencies:
155+
>
156+
> - dependency-name: nokogiri
157+
>
158+
> dependency-type: indirect
159+
>
160+
> ...
161+
>
162+
> Signed-off-by: dependabot[bot] <support@github.com>
163+
>
164+
> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
165+
- [`dbc0fbd2`](https://github.com/sinonjs/sinon/commit/dbc0fbd263c8419fa47f9c3b20cf47890a242d21)
166+
Bump shelljs from 0.8.4 to 0.8.5 (#2422) (dependabot[bot])
167+
> Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
168+
>
169+
> - [Release notes](https://github.com/shelljs/shelljs/releases)
170+
>
171+
> - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
172+
>
173+
> - [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)
174+
>
175+
> ***
176+
>
177+
> updated-dependencies:
178+
>
179+
> - dependency-name: shelljs
180+
>
181+
> dependency-type: direct:development
182+
>
183+
> ...
184+
>
185+
> Signed-off-by: dependabot[bot] <support@github.com>
186+
>
187+
> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
188+
- [`fb8b3d72`](https://github.com/sinonjs/sinon/commit/fb8b3d72a85dc8fb0547f859baf3f03a22a039f7)
189+
Run Prettier (Carl-Erik Kopseng)
190+
- [`12a45939`](https://github.com/sinonjs/sinon/commit/12a45939e9b047b6d3663fe55f2eb383ec63c4e1)
191+
Fix 2377: Throw error when trying to stub non-configurable or non-writable properties (#2417) (Stuart Dotson)
192+
> Fixes issue #2377 by throwing an error when trying to stub non-configurable or non-writable properties
193+
- [`27df9cba`](https://github.com/sinonjs/sinon/commit/27df9cba736144e138dbb987817ecfa5ee8e4fa8)
194+
Trim dead weight (Carl-Erik Kopseng)
195+
- [`415764ec`](https://github.com/sinonjs/sinon/commit/415764eca9687fb79159359f2792265b8faadf46)
196+
Avoid build breaking post release due to CHANGES.md (Carl-Erik Kopseng)
197+
- [`c8987c87`](https://github.com/sinonjs/sinon/commit/c8987c875cb2d7b3aed407bfa9c28c5dffded79f)
198+
Update docs/changelog.md and set new release id in docs/\_config.yml (Carl-Erik Kopseng)
199+
- [`834e97b8`](https://github.com/sinonjs/sinon/commit/834e97b8437a15032e9d7b0855fbe6ac8b65921b)
200+
Add release documentation for v12.0.1 (Carl-Erik Kopseng)
201+
202+
_Released by [Carl-Erik Kopseng](https://github.com/fatso83) on 2022-01-28._
203+
3204
## 12.0.1
4205

5206
- [`3f598221`](https://github.com/sinonjs/sinon/commit/3f598221045904681f2b3b3ba1df617ed5e230e3)

docs/_config.yml

Lines changed: 1 addition & 1 deletion
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: v12.0.1
8+
current_release: v13.0.0
99
markdown: kramdown
1010
kramdown:
1111
input: GFM

0 commit comments

Comments
 (0)