
This PR contains the following updates:
Release Notes
sinonjs/sinon (sinon)
Compare Source
66b0081e
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
Support callable instances (#2517) (bojavou)
Co-authored-by: - <->
d220c995
fix: bundling compatibility with webpack@5 (#2519) (Avi Vahl)- fix: bundling compatibility with webpack@5
when using webpack v5 to bundle code that callsrequire('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 byCarl-Erik Kopseng on 2023-06-20.
Compare Source
02b73aed
Update lock file after removing node_modules ... (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-06-12.
Compare Source
194fc2ef
Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng)Instead of the later (breaking) version. See#470
05f05ac3
docs: Remove threw(obj) from docs (#2513) (Morgan Roderick)Since the introduction of threw in
0feec9f
, no one have reported that
threw(obj)
doesn't work as the documentation states.
constsinon=require("sinon");consto={pie:"apple"};constf=sinon.fake.throws(o);f();// this is supposed to return truef.threw(o);// => false
Since it has been 12+ years without an error report, it's safe to assume
that no one uses thethrew
method in this way. Let's remove it from
the documentation.
Released byCarl-Erik Kopseng on 2023-06-12.
Compare Source
79e719f2
Ensure we use a fake-timers version with clock.jump (Carl-Erik Kopseng)b2a4df5a
Add docs for clock.jump method (#2512) (Jason O'Neill)f096abff
fix (#2514): only force new or inherited descriptors to be configurable (#2515) (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-05-18.
Compare Source
e9042c4f
Handling non-configurable object descriptors on the prototype (#2508) (Carl-Erik Kopseng)This should essentially make decorated methods stubbable again (see#2491)
430c9a60
Remove uses ofvar
(#2506) (Carl-Erik Kopseng)Replace var with const where possible in /lib and /test.
Modified the let codemod to be a codemod.
Took about half an hour with --watch running
Released byCarl-Erik Kopseng on 2023-04-20.
Compare Source
b775f1b4
Avoid tampering with globals and other modules' exports in tests (#2504) (Carl-Erik Kopseng)477064b6
fix: make it possible to call through to underlying stub in stub instance (#2503) (Carl-Erik Kopseng)closes#2501
6e19746e
Remove dead Travis and Gitter references (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-03-26.
Compare Source
19bd99f3
Use no-op for every function when restoring instances (#2499) (Carl-Erik Kopseng)8663ffa0
Upgrade deps (#2498) (Carl-Erik Kopseng)Browserify, supports-color, husky had to be held back.
e01275bb
Un-pin@sinonjs/fake-timers (#2495) (Jordan Hawker)The commit upgrading from v9 to v10 appears to have accidentally dropped the caret from the version range
6cbde9b0
fix throws().callsFake() precedence (#2497) (Eduardo Diaz)This makes sure an unconditionalcallsFake()
invoked on the same stub that was previously setup to throw will overwrite the previous behavior. This aligns it with the other behaviors.
45be60f3
Replace probot/stale with official stale action (Morgan Roderick)
Released byCarl-Erik Kopseng on 2023-03-12.
Compare Source
aa493da4
Upgrade to fake-timers v10.0.2 (Carl-Erik Kopseng)Contains several fixes
b3ee0aa5
Use Node version 18 in Runkit examples (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2022-12-15.
Compare Source
b75fbfa9
Fix 2448: remove custom formatter (Morgan Roderick)Remove option to pass a custom formatter.
The sub libraries of Sinon has long moved on to useutil.inspect
from
Node. By using that in Sinon itself, we align all the libraries.
Released by Morgan Roderick on 2022-11-28.
Compare Source
Released by Morgan Roderick on 2022-11-07.
Compare Source
6c4753ef
Fixed CSS selectors in_base.scss
and changed blockquote default size to 16px. (Jose Lupianez)- A bunch of dependency updates
Released byCarl-Erik Kopseng on 2022-10-03.
Compare Source
Released by Morgan Roderick on 2022-05-07.
Compare Source
bddb631a
Update fake-timers (Carl-Erik Kopseng)eaed0eb2
Bump nokogiri from 1.13.3 to 1.13.4 (#2451) (dependabot[bot])
Released byCarl-Erik Kopseng on 2022-04-14.
Compare Source
ec4223f9
Bump nise to fixsinonjs/nise#193 (Carl-Erik Kopseng)f329a010
Add unimported to workflow (#2441) (Morgan Roderick)7f16cec9
Enable updates to same major version (Carl-Erik Kopseng)f784d7ad
Re-introduce new version.sh script to version hook (Joel Bradshaw)This was inadvertently removed during merge conflicts, and is required
for any of the new release process stuff to work
51c508ab
Add dry run mode tonpm version
(#2436) (Joel Bradshaw)05341dcf
Update npm version scripts to manage new releases branch (Joel Bradshaw)fe658261
Remove release archives from master (Joel Bradshaw)These archives made it difficult to find things in the GitHub interface,
and take up a lot of space in a checked-out repo for something that is
not useful to most people checking out the repository.
The main purpose of these archives is to make old versions and
documentation available on the Sinon website that is run out of this
repo. This can be supported by using a separate branch for website
releases, and to maintain the archives.
Following this commit, thenpm version
scripts will be updated to
automatically handle archiving the releases in the new releases branch
and keeping it up to date with master.
Also remove the directories we removed from .prettierignore, since they
don't exist any more.
Released byCarl-Erik Kopseng on 2022-02-01.
Compare Source
cf3d6c0c
Upgrade packages (#2431) (Carl-Erik Kopseng)41710467
Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master (#2426) (Joel Bradshaw)Co-authored-by: Carl-Erik Kopsengcarlerik@gmail.com
c80a7266
Bump node-fetch from 2.6.1 to 2.6.7 (#2430) (dependabot[bot])Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
a00f14a9
Add explicit export for./*
(#2413) (なつき)b82ca7ad
Bump cached-path-relative from 1.0.2 to 1.1.0 (#2428) (dependabot[bot])a9ea1427
Add documentation for assert.calledOnceWithMatch (#2424) (Mathias Schreck)1d5ab86b
Be more general in stripping off stack frames to fix Firefox tests (#2425) (Joel Bradshaw)56b06129
Check call count type (#2410) (Joel Bradshaw)7863e2df
Fix#2414: make Sinon available on homepage (Carl-Erik Kopseng)fabaabdd
Bump nokogiri from 1.11.4 to 1.13.1 (#2423) (dependabot[bot])dbc0fbd2
Bump shelljs from 0.8.4 to 0.8.5 (#2422) (dependabot[bot])fb8b3d72
Run Prettier (Carl-Erik Kopseng)12a45939
Fix 2377: Throw error when trying to stub non-configurable or non-writable properties (#2417) (Stuart Dotson)Fixes issue#2377 by throwing an error when trying to stub non-configurable or non-writable properties
Released byCarl-Erik Kopseng on 2022-01-28.
Compare Source
3f598221
Fix issue with npm unlink for npm version > 6 (Carl-Erik Kopseng)51417a38
Fix bundling of cjs module (#2412) (Julian Grinblat)
Released byCarl-Erik Kopseng on 2021-11-04.
Compare Source
b20ef9e4
Upgrade to fake-timers@8 (Carl-Erik Kopseng). This is potentially breaking, but should not be,
as the breaking change deals with the Node timer object created by fake timers.eba42cc3
Enable esm named exports (#2382) (Julian Grinblat)b0cf5448
Spelling (#2398) (Josh Soref)e78a6706
Make calledWith() assertions idempotent (#2407) (Joel Bradshaw)2814c0a2
Generate CHANGES.md using@studio/changes (Morgan Roderick)This will bring us closer to having the same release process as the
other@sinonjs
packages.
2d5d6ad4
Run tests in Node 16 in GitHub Actions (Morgan Roderick)
Released byCarl-Erik Kopseng on 2021-11-03.
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻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 byMend Renovate. View repository job loghere.
Uh oh!
There was an error while loading.Please reload this page.
This PR contains the following updates:
^11.0.0
->^15.0.0
Release Notes
sinonjs/sinon (sinon)
v15.2.0
Compare Source
66b0081e
Use fake-timers v10.1.0 re-released as v10.3.0 (Carl-Erik Kopseng)
a79ccaeb
Support callable instances (#2517) (bojavou)
d220c995
fix: bundling compatibility with webpack@5 (#2519) (Avi Vahl)
Released byCarl-Erik Kopseng on 2023-06-20.
v15.1.2
Compare Source
02b73aed
Update lock file after removing node_modules ... (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-06-12.
v15.1.1
Compare Source
194fc2ef
Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng)
05f05ac3
docs: Remove threw(obj) from docs (#2513) (Morgan Roderick)
Released byCarl-Erik Kopseng on 2023-06-12.
v15.1.0
Compare Source
79e719f2
Ensure we use a fake-timers version with clock.jump (Carl-Erik Kopseng)
b2a4df5a
Add docs for clock.jump method (#2512) (Jason O'Neill)
f096abff
fix (#2514): only force new or inherited descriptors to be configurable (#2515) (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-05-18.
v15.0.4
Compare Source
e9042c4f
Handling non-configurable object descriptors on the prototype (#2508) (Carl-Erik Kopseng)
430c9a60
Remove uses of
var
(#2506) (Carl-Erik Kopseng)Released byCarl-Erik Kopseng on 2023-04-20.
v15.0.3
Compare Source
b775f1b4
Avoid tampering with globals and other modules' exports in tests (#2504) (Carl-Erik Kopseng)
477064b6
fix: make it possible to call through to underlying stub in stub instance (#2503) (Carl-Erik Kopseng)
6e19746e
Remove dead Travis and Gitter references (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2023-03-26.
v15.0.2
Compare Source
19bd99f3
Use no-op for every function when restoring instances (#2499) (Carl-Erik Kopseng)
8663ffa0
Upgrade deps (#2498) (Carl-Erik Kopseng)
e01275bb
Un-pin@sinonjs/fake-timers (#2495) (Jordan Hawker)
6cbde9b0
fix throws().callsFake() precedence (#2497) (Eduardo Diaz)
45be60f3
Replace probot/stale with official stale action (Morgan Roderick)
Released byCarl-Erik Kopseng on 2023-03-12.
v15.0.1
Compare Source
aa493da4
Upgrade to fake-timers v10.0.2 (Carl-Erik Kopseng)
b3ee0aa5
Use Node version 18 in Runkit examples (Carl-Erik Kopseng)
Released byCarl-Erik Kopseng on 2022-12-15.
v15.0.0
Compare Source
b75fbfa9
Fix 2448: remove custom formatter (Morgan Roderick)
Released by Morgan Roderick on 2022-11-28.
v14.0.2
Compare Source
4d70f6e0
Upgrade nise to latest (Morgan Roderick)
96a0d756
Update@sinonjs/samsam to latest (Morgan Roderick)
babb4736
Prefer@sinonjs/commons@2 (Morgan Roderick)
Released by Morgan Roderick on 2022-11-07.
v14.0.1
Compare Source
6c4753ef
Fixed CSS selectors in
_base.scss
and changed blockquote default size to 16px. (Jose Lupianez)Released byCarl-Erik Kopseng on 2022-10-03.
v14.0.0
Compare Source
c2bbd826
Drop node 12 (Morgan Roderick)
Released by Morgan Roderick on 2022-05-07.
v13.0.2
Compare Source
bddb631a
Update fake-timers (Carl-Erik Kopseng)
eaed0eb2
Bump nokogiri from 1.13.3 to 1.13.4 (#2451) (dependabot[bot])
Released byCarl-Erik Kopseng on 2022-04-14.
v13.0.1
Compare Source
ec4223f9
Bump nise to fixsinonjs/nise#193 (Carl-Erik Kopseng)
f329a010
Add unimported to workflow (#2441) (Morgan Roderick)
7f16cec9
Enable updates to same major version (Carl-Erik Kopseng)
f784d7ad
Re-introduce new version.sh script to version hook (Joel Bradshaw)
51c508ab
Add dry run mode to
npm version
(#2436) (Joel Bradshaw)05341dcf
Update npm version scripts to manage new releases branch (Joel Bradshaw)
fe658261
Remove release archives from master (Joel Bradshaw)
Released byCarl-Erik Kopseng on 2022-02-01.
v13.0.0
Compare Source
cf3d6c0c
Upgrade packages (#2431) (Carl-Erik Kopseng)
41710467
Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master (#2426) (Joel Bradshaw)
c80a7266
Bump node-fetch from 2.6.1 to 2.6.7 (#2430) (dependabot[bot])
a00f14a9
Add explicit export for
./*
(#2413) (なつき)b82ca7ad
Bump cached-path-relative from 1.0.2 to 1.1.0 (#2428) (dependabot[bot])
a9ea1427
Add documentation for assert.calledOnceWithMatch (#2424) (Mathias Schreck)
1d5ab86b
Be more general in stripping off stack frames to fix Firefox tests (#2425) (Joel Bradshaw)
56b06129
Check call count type (#2410) (Joel Bradshaw)
7863e2df
Fix#2414: make Sinon available on homepage (Carl-Erik Kopseng)
fabaabdd
Bump nokogiri from 1.11.4 to 1.13.1 (#2423) (dependabot[bot])
dbc0fbd2
Bump shelljs from 0.8.4 to 0.8.5 (#2422) (dependabot[bot])
fb8b3d72
Run Prettier (Carl-Erik Kopseng)
12a45939
Fix 2377: Throw error when trying to stub non-configurable or non-writable properties (#2417) (Stuart Dotson)
Released byCarl-Erik Kopseng on 2022-01-28.
v12.0.1
Compare Source
3f598221
Fix issue with npm unlink for npm version > 6 (Carl-Erik Kopseng)
51417a38
Fix bundling of cjs module (#2412) (Julian Grinblat)
Released byCarl-Erik Kopseng on 2021-11-04.
v12.0.0
Compare Source
b20ef9e4
Upgrade to fake-timers@8 (Carl-Erik Kopseng). This is potentially breaking, but should not be,
as the breaking change deals with the Node timer object created by fake timers.
eba42cc3
Enable esm named exports (#2382) (Julian Grinblat)
b0cf5448
Spelling (#2398) (Josh Soref)
e78a6706
Make calledWith() assertions idempotent (#2407) (Joel Bradshaw)
2814c0a2
Generate CHANGES.md using@studio/changes (Morgan Roderick)
2d5d6ad4
Run tests in Node 16 in GitHub Actions (Morgan Roderick)
Released byCarl-Erik Kopseng on 2021-11-03.
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻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 byMend Renovate. View repository job loghere.