Update dependency sinon to v19
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| sinon (source) | 11.1.2 -> 19.0.2 |
Release Notes
sinonjs/sinon (sinon)
v19.0.2
4eb4c4bcUse fix 13.0.2 version of fake-timers to get Date to pass instanceof checks (Carl-Erik Kopseng)a5b03db3Add links to code that is affected by the breaking changes (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2024-09-13.
v19.0.1
037ec2d2Update migration docs (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2024-09-13.
v19.0.0
3534ab4fBump samsam and nise to latest versions (#2617) (Carl-Erik Kopseng)Ensures consistency and less breakage when there are "circular" dependencies.
912c568dupgrade fake timers and others (#2612) (Carl-Erik Kopseng)- Upgrade dependencies (includes breaking API in Fake Timers)
- fake-timers: no longer creating dates using the original Date class, but a subclass (proxy)
9715798eUse newer @mochify/* packages (#2609) (Carl-Erik Kopseng)Co-authored-by: Maximilian Antoni [email protected]
Released by Carl-Erik Kopseng on 2024-09-13.
v18.0.1
Basically a patch release to update a transitive dependency in Nise.
03e33ec6Pin [email protected] to avoid breaking change (Carl-Erik Kopseng)5a7924adAdd createStubInstance header in stubs.md (Daniel Kaplan)ad6804cdBump elliptic from 6.5.5 to 6.5.7 (#2608) (dependabot[bot])033287bdBump path-to-regexp and nise (#2611) (dependabot[bot])Bumps path-to-regexp to 8.1.0 and updates ancestor dependency nise. These dependencies need to be updated together.
Updates
path-to-regexpfrom 6.2.2 to 8.1.0Updates
nisefrom 6.0.0 to 6.0.1
updated-dependencies:
-
dependency-name: path-to-regexp
dependency-type: indirect
-
dependency-name: nise
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
0c609f95re-add testing of esm browser builds (Carl-Erik Kopseng)It seems unclear why it was removed in the first place: I have tested extensively that it does work and it does fail the build if changing any assertion in the script
da4230a0Bump braces from 3.0.2 to 3.0.3 (#2605) (dependabot[bot])Bumps braces from 3.0.2 to 3.0.3.
updated-dependencies:
-
dependency-name: braces
dependency-type: indirect
...
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
02542370feat(ci): add node v22 (#2600) (Rotzbua)794cb81afix(tests): typo (#2603) (Rotzbua)1eb2a254Use NodeJS 22.2.0 as base development version (Carl-Erik Kopseng)1aa713fdBump rexml from 3.2.5 to 3.2.8 (#2599) (dependabot[bot])Bumps rexml from 3.2.5 to 3.2.8. >
- Release notes >
- Changelog >
- Commits > > --- > updated-dependencies: >
- dependency-name: rexml > dependency-type: indirect > ... > > Signed-off-by: dependabot[bot] [email protected] > Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Released by Carl-Erik Kopseng on 2024-09-10.
v18.0.0
This is what 17.0.2 should have been, as that contained two breaking changes. After updating Nise we are down to one breaking change, which only affects sinon-test (which has been updated), so most people are not affected. The legacyRoutes flag that is currently enabled in Nise by default will at some later version be disabled. We will then issue a little migration note.
01d45312Use Nise 6 with legacyRoutes flag enabled (Carl-Erik Kopseng)This should be disabled in a future Sinon version by default.
c618edc5fix #2594: remove needless sandbox creation (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2024-05-15.
v17.0.2
f6dca0baupgrade packages (#2595) (Carl-Erik Kopseng)5025d001Avoid return and callArg* clearing each other's state (#2593) (Carl-Erik Kopseng)- Partially revert "fix returns does not override call through (#2567)"
- revert to the old manual clearing of props
ed068a88Bump ip from 1.1.8 to 1.1.9 (#2587) (dependabot[bot])ec4d592efix #2589: avoid invoking getter as side-effect (#2592) (Carl-Erik Kopseng)9972e1e3Fix typo in mocks documentation (#2591) (Eduardo de la Cruz Palacios)52e6e4c5chore: prefer cache option of setup-node (Morgan Roderick)08da1235Bump actions/cache from 3 to 4 (dependabot[bot])404ef47eBump nokogiri from 1.14.3 to 1.16.2 (dependabot[bot])fd79612cUpdate Bug_report.md (Carl-Erik Kopseng)1fbc812aRe-add about (Carl-Erik Kopseng)fc8f6c3eFix formatting :clown: (Carl-Erik Kopseng)c57e38aeRemove old template (Carl-Erik Kopseng)754bf7a9Update Bug_report.md (Carl-Erik Kopseng)87eed9d2Fix some typos at code comments (#2581) (EliyahuMachluf)cbae6997Link to createStubInstance util.md docs in stubs.md (#2577) (Daniel Kaplan)adcf936dFix Mocha watch task by delegating to Node (#2573) (Carl-Erik Kopseng)30ad2372prettier:write (Carl-Erik Kopseng)45c4d6b9Remove outdated info from README (#2571) (Carl-Erik Kopseng)6c9f5c2aAdd a notice that the Fake Timers API doc is incomplete (#2570) (Carl-Erik Kopseng)93db3ef3breaking: Remove sinon.defaultConfig and related modules (#2565) (Carl-Erik Kopseng)- breaking: Remove sinon.defaultConfig and related modules
default-config and get-config are leftovers from when Sinon
shipped with sinon.test (now the independent NPM module
'sinon-test').
Released by Carl-Erik Kopseng on 2024-05-07.
v17.0.1
5fde5aebfix returns does not override call through (#2567) (Raz Luvaton)b5fc3671Documentation for assertion options for the sandbox (#2564) (Carl-Erik Kopseng)f7d180ccfix: assertion log limit (#2485) (Spencer Goossens)4f538e3eFix mochify breaking on node:assert (#2559) (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-11-01.
v17.0.0
11a8e3f2Remove Proxyquire as it did not handle newer syntax (Carl-Erik Kopseng)ec37d634Drop Node 16, as it is out of maintenance (Carl-Erik Kopseng)75e2b691Upgrade [email protected]: new Intl mirroring and bugfixes (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-10-20.
v16.1.3
93e8aa93Remove postinstall script as it causes issues for consumers (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-10-19.
v16.1.2
v16.1.1
ff0e993dShowcase #replace.usingAccessor for DI in the typescript case study (#2556) (Carl-Erik Kopseng)c47a4beeBump @babel/traverse from 7.22.5 to 7.23.2 (#2555) (dependabot[bot])Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Released by Carl-Erik Kopseng on 2023-10-18.
v16.1.0
cac5184bEnable use of assignment in the presence of accessors (#2538) (Carl-Erik Kopseng)f8c20e54New article: making Sinon work with complex setups (#2540) (Carl-Erik Kopseng)Co-authored-by: Morgan Roderick [email protected] >
cb5b9621Add NPM script 'dev-docs' and document its usage (Carl-Erik Kopseng)dd7c6091Add a little update to contributing (Carl-Erik Kopseng)79acdf38Move tool versions into single file at root (Carl-Erik Kopseng)03b1db50Expose Changelog page (#2550) (Carl-Erik Kopseng)e1c3dad2Add section on tooling and recommend using ASDF for tool versioning (#2547) (Carl-Erik Kopseng) Released by Carl-Erik Kopseng on 2023-10-05.
v16.0.0
c3396058fix(2525): ensure non empty message when error of type string is passed, but no message (#2544) (Mark de Dios)baa1aee9.define method (#2539) (Konstantin Gukov)- .define method for temporarily defining new properties during the tests
fe799e78Fix issue 2534: spies are not restored (#2535) (Carl-Erik Kopseng)305fb6ccfix: actaully reset 'injectedKeys' (#2456) (Morgan Roderick)de2635ddBump LTS version one notch: 20 (#2529) (Carl-Erik Kopseng)
Released by Morgan Roderick on 2023-09-13.
v15.2.0
66b0081eUse 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
a79ccaebSupport callable instances (#2517) (bojavou)-
Support callable instances
-
Clean prettier lint
Co-authored-by: - <->
-
d220c995fix: bundling compatibility with webpack@5 (#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 on 2023-06-20.
v15.1.2
02b73aedUpdate lock file after removing node_modules ... (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-06-12.
v15.1.1
194fc2efChange fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng)Instead of the later (breaking) version. See #470
05f05ac3docs: Remove threw(obj) from docs (#2513) (Morgan Roderick)Since the introduction of threw in
0feec9f, no one have reported thatthrew(obj)doesn't work as the documentation states.const sinon = require("sinon"); const o = { pie: "apple" }; const f = sinon.fake.throws(o); f(); // this is supposed to return true f.threw(o); // => falseSince it has been 12+ years without an error report, it's safe to assume
that no one uses the
threwmethod in this way. Let's remove it fromthe documentation.
Released by Carl-Erik Kopseng on 2023-06-12.
v15.1.0
79e719f2Ensure we use a fake-timers version with clock.jump (Carl-Erik Kopseng)b2a4df5aAdd docs for clock.jump method (#2512) (Jason O'Neill)f096abfffix (#2514): only force new or inherited descriptors to be configurable (#2515) (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-05-18.
v15.0.4
e9042c4fHandling non-configurable object descriptors on the prototype (#2508) (Carl-Erik Kopseng)This should essentially make decorated methods stubbable again (see #2491)
430c9a60Remove 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 by Carl-Erik Kopseng on 2023-04-20.
v15.0.3
b775f1b4Avoid tampering with globals and other modules' exports in tests (#2504) (Carl-Erik Kopseng)477064b6fix: make it possible to call through to underlying stub in stub instance (#2503) (Carl-Erik Kopseng)closes #2501
6e19746eRemove dead Travis and Gitter references (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2023-03-26.
v15.0.2
19bd99f3Use no-op for every function when restoring instances (#2499) (Carl-Erik Kopseng)8663ffa0Upgrade deps (#2498) (Carl-Erik Kopseng)Browserify, supports-color, husky had to be held back.
e01275bbUn-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
6cbde9b0fix throws().callsFake() precedence (#2497) (Eduardo Diaz)This makes sure an unconditional
callsFake()invoked on the same stub that was previously setup to throw will overwrite the previous behavior. This aligns it with the other behaviors.45be60f3Replace probot/stale with official stale action (Morgan Roderick)
Released by Carl-Erik Kopseng on 2023-03-12.
v15.0.1
aa493da4Upgrade to fake-timers v10.0.2 (Carl-Erik Kopseng)Contains several fixes
b3ee0aa5Use Node version 18 in Runkit examples (Carl-Erik Kopseng)
Released by Carl-Erik Kopseng on 2022-12-15.
v15.0.0
b75fbfa9Fix 2448: remove custom formatter (Morgan Roderick)Remove option to pass a custom formatter.
The sub libraries of Sinon has long moved on to use
util.inspectfrom Node. By using that in Sinon itself, we align all the libraries.
Released by Morgan Roderick on 2022-11-28.
v14.0.2
4d70f6e0Upgrade nise to latest (Morgan Roderick)96a0d756Update @sinonjs/samsam to latest (Morgan Roderick)babb4736Prefer @sinonjs/commons@2 (Morgan Roderick)That makes ES2017 support explicit
Released by Morgan Roderick on 2022-11-07.
v14.0.1
6c4753efFixed CSS selectors in_base.scssand changed blockquote default size to 16px. (Jose Lupianez)- A bunch of dependency updates
Released by Carl-Erik Kopseng on 2022-10-03.
v14.0.0
c2bbd826Drop node 12 (Morgan Roderick)And embrace Node 18
See https://nodejs.org/en/about/releases/
Released by Morgan Roderick on 2022-05-07.
v13.0.2
bddb631aUpdate fake-timers (Carl-Erik Kopseng)eaed0eb2Bump nokogiri from 1.13.3 to 1.13.4 (#2451) (dependabot[bot])
Released by Carl-Erik Kopseng on 2022-04-14.
v13.0.1
ec4223f9Bump nise to fix sinonjs/nise#193 (Carl-Erik Kopseng)f329a010Add unimported to workflow (#2441) (Morgan Roderick)7f16cec9Enable updates to same major version (Carl-Erik Kopseng)f784d7adRe-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
51c508abAdd dry run mode tonpm version(#2436) (Joel Bradshaw)-
Add DRY_RUN flag to skip publish/push
-
Allow overriding branch names for testing
-
05341dcfUpdate npm version scripts to manage new releases branch (Joel Bradshaw)fe658261Remove 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, the
npm versionscripts 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 by Carl-Erik Kopseng on 2022-02-01.
v13.0.0
cf3d6c0cUpgrade packages (#2431) (Carl-Erik Kopseng)-
Update all @sinonjs/ packages
-
Upgrade to fake-timers 9
-
chore: ensure always using latest LTS release
-
41710467Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master (#2426) (Joel Bradshaw)Co-authored-by: Carl-Erik Kopseng [email protected]
c80a7266Bump 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>
a00f14a9Add explicit export for./*(#2413) (なつき)b82ca7adBump cached-path-relative from 1.0.2 to 1.1.0 (#2428) (dependabot[bot])a9ea1427Add documentation for assert.calledOnceWithMatch (#2424) (Mathias Schreck)1d5ab86bBe more general in stripping off stack frames to fix Firefox tests (#2425) (Joel Bradshaw)56b06129Check call count type (#2410) (Joel Bradshaw)7863e2dfFix #2414: make Sinon available on homepage (Carl-Erik Kopseng)fabaabddBump nokogiri from 1.11.4 to 1.13.1 (#2423) (dependabot[bot])dbc0fbd2Bump shelljs from 0.8.4 to 0.8.5 (#2422) (dependabot[bot])fb8b3d72Run Prettier (Carl-Erik Kopseng)12a45939Fix 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 by Carl-Erik Kopseng on 2022-01-28.
v12.0.1
3f598221Fix issue with npm unlink for npm version > 6 (Carl-Erik Kopseng)51417a38Fix bundling of cjs module (#2412) (Julian Grinblat)
Released by Carl-Erik Kopseng on 2021-11-04.
v12.0.0
b20ef9e4Upgrade 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.eba42cc3Enable esm named exports (#2382) (Julian Grinblat)b0cf5448Spelling (#2398) (Josh Soref)e78a6706Make calledWith() assertions idempotent (#2407) (Joel Bradshaw)2814c0a2Generate CHANGES.md using @studio/changes (Morgan Roderick)This will bring us closer to having the same release process as the other
@sinonjspackages.2d5d6ad4Run tests in Node 16 in GitHub Actions (Morgan Roderick)
Released by Carl-Erik Kopseng on 2021-11-03.
Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.