internetarchive / bookreader

The Internet Archive BookReader
https://openlibrary.org/dev/docs/bookreader
GNU Affero General Public License v3.0
997 stars 418 forks source link

Update dependency sinon to v17 #1266

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sinon (source) ^15.1.0 -> ^17.0.0 age adoption passing confidence

Release Notes

sinonjs/sinon (sinon) ### [`v17.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1700) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v16.1.3...v17.0.0) - [`11a8e3f2`](https://togithub.com/sinonjs/sinon/commit/11a8e3f24ccec981a280dbe63df316d1fbde4ddd) Remove Proxyquire as it did not handle newer syntax (Carl-Erik Kopseng) - [`ec37d634`](https://togithub.com/sinonjs/sinon/commit/ec37d6346fd51dd9b9ccf95d41c3339a0c88f539) Drop Node 16, as it is out of maintenance (Carl-Erik Kopseng) - [`75e2b691`](https://togithub.com/sinonjs/sinon/commit/75e2b6910ca40ee5f3a39295ec654e124a6a325b) Upgrade fake-timers@11.2.2: new Intl mirroring and bugfixes (Carl-Erik Kopseng) *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-10-20.* ### [`v16.1.3`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1613) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v16.1.2...v16.1.3) - [`93e8aa93`](https://togithub.com/sinonjs/sinon/commit/93e8aa93c56c2d9d1ff783263adbd93de2603803) Remove postinstall script as it causes issues for consumers (Carl-Erik Kopseng) *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-10-19.* ### [`v16.1.2`](https://togithub.com/sinonjs/sinon/compare/v16.1.1...v16.1.2) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v16.1.1...v16.1.2) ### [`v16.1.1`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1611) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v16.1.0...v16.1.1) - [`ff0e993d`](https://togithub.com/sinonjs/sinon/commit/ff0e993df2adac356995bbc12d1d520a819360bd) Showcase #replace.usingAccessor for DI in the typescript case study ([#​2556](https://togithub.com/sinonjs/sinon/issues/2556)) (Carl-Erik Kopseng) - [`c47a4bee`](https://togithub.com/sinonjs/sinon/commit/c47a4beeba98a5138d5b7a4a8a36ed7a8bf00861) Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.22.5 to 7.23.2 ([#​2555](https://togithub.com/sinonjs/sinon/issues/2555)) (dependabot\[bot]) > Co-authored-by: dependabot\[bot] <49699333+dependabot\[bot][@​users](https://togithub.com/users).noreply.github.com> *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-10-18.* ### [`v16.1.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1610) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v16.0.0...v16.1.0) - [`cac5184b`](https://togithub.com/sinonjs/sinon/commit/cac5184b2a5c395e7e8775192ebcab234b6c180f) Enable use of assignment in the presence of accessors ([#​2538](https://togithub.com/sinonjs/sinon/issues/2538)) (Carl-Erik Kopseng) - [`f8c20e54`](https://togithub.com/sinonjs/sinon/commit/f8c20e5414464cf36a1dd48845ff57bf4e87d158) New article: making Sinon work with complex setups ([#​2540](https://togithub.com/sinonjs/sinon/issues/2540)) (Carl-Erik Kopseng) > Co-authored-by: Morgan Roderick > - [`cb5b9621`](https://togithub.com/sinonjs/sinon/commit/cb5b96214891dcff0890f07d01fe6b7d1627e8cb) Add NPM script 'dev-docs' and document its usage (Carl-Erik Kopseng) - [`dd7c6091`](https://togithub.com/sinonjs/sinon/commit/dd7c6091f415f1f0129cb9673f79ad3e44eecd21) Add a little update to contributing (Carl-Erik Kopseng) - [`79acdf38`](https://togithub.com/sinonjs/sinon/commit/79acdf380af52a34847a4861e637f5738c4b39eb) Move tool versions into single file at root (Carl-Erik Kopseng) - [`03b1db50`](https://togithub.com/sinonjs/sinon/commit/03b1db50a1114b0e7ee5a26b0c813eda3fc54e07) Expose Changelog page ([#​2550](https://togithub.com/sinonjs/sinon/issues/2550)) (Carl-Erik Kopseng) - [`e1c3dad2`](https://togithub.com/sinonjs/sinon/commit/e1c3dad21d3d7c18f23f014bd952b5e4136687cb) Add section on tooling and recommend using ASDF for tool versioning ([#​2547](https://togithub.com/sinonjs/sinon/issues/2547)) (Carl-Erik Kopseng) *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-10-05.* ### [`v16.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1600) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.2.0...v16.0.0) - [`c3396058`](https://togithub.com/sinonjs/sinon/commit/c339605834f6fd7ba3afdd179fff3a8544e62bd7) fix(2525): ensure non empty message when error of type string is passed, but no message ([#​2544](https://togithub.com/sinonjs/sinon/issues/2544)) (Mark de Dios) - [`baa1aee9`](https://togithub.com/sinonjs/sinon/commit/baa1aee9e5766ff1bfcbc62d81ddaf3138174c54) .define method ([#​2539](https://togithub.com/sinonjs/sinon/issues/2539)) (Konstantin Gukov) > - .define method for temporarily defining new properties during the tests - [`fe799e78`](https://togithub.com/sinonjs/sinon/commit/fe799e78967cafcdfa29ef1d7cd00c420704b926) Fix issue 2534: spies are not restored ([#​2535](https://togithub.com/sinonjs/sinon/issues/2535)) (Carl-Erik Kopseng) - [`305fb6cc`](https://togithub.com/sinonjs/sinon/commit/305fb6ccb823a4a6059d8440d93c8032bef2afeb) fix: actaully reset 'injectedKeys' ([#​2456](https://togithub.com/sinonjs/sinon/issues/2456)) (Morgan Roderick) - [`de2635dd`](https://togithub.com/sinonjs/sinon/commit/de2635dd4293f21bd1e5a8b3e14d14d4f6e1f1da) Bump LTS version one notch: 20 ([#​2529](https://togithub.com/sinonjs/sinon/issues/2529)) (Carl-Erik Kopseng) *Released by Morgan Roderick on 2023-09-13.* ### [`v15.2.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1520) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.2...v15.2.0) - [`66b0081e`](https://togithub.com/sinonjs/sinon/commit/66b0081e1f9673b14277882faa10aaa1e3b564ff) 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`](https://togithub.com/sinonjs/sinon/commit/a79ccaeb20bbb558902ae77b20bd026719de3004) Support callable instances ([#​2517](https://togithub.com/sinonjs/sinon/issues/2517)) (bojavou) > - Support callable instances > > - Clean prettier lint > > *** > > Co-authored-by: - <-> - [`d220c995`](https://togithub.com/sinonjs/sinon/commit/d220c99516ddb644d3702b4736bdfd311a2b05ec) fix: bundling compatibility with webpack@5 ([#​2519](https://togithub.com/sinonjs/sinon/issues/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](https://togithub.com/fatso83) on 2023-06-20.* ### [`v15.1.2`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1512) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.1...v15.1.2) - [`02b73aed`](https://togithub.com/sinonjs/sinon/commit/02b73aed2d3d7dee071767fdf79073aa1dd673b6) Update lock file after removing node_modules ... (Carl-Erik Kopseng) *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.* ### [`v15.1.1`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1511) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v15.1.0...v15.1.1) - [`194fc2ef`](https://togithub.com/sinonjs/sinon/commit/194fc2ef726aba1cfd5753316414934d2551e18c) Change fake-timers version to specifically target the one containing the 'jump' feature (Carl-Erik Kopseng) > Instead of the later (breaking) version. See [#​470](https://togithub.com/sinonjs/fake-timers/issues/470) - [`05f05ac3`](https://togithub.com/sinonjs/sinon/commit/05f05ac30b1cb95c57dde3e30a4952679afb309a) docs: Remove threw(obj) from docs ([#​2513](https://togithub.com/sinonjs/sinon/issues/2513)) (Morgan Roderick) > Since the introduction of threw in > > [`0feec9f`](https://togithub.com/sinonjs/sinon/commit/0feec9ffba0da6bc2996cefa0c6e71872e8bedb2), no one have reported that > > `threw(obj)` doesn't work as the documentation states. > > ```js > const sinon = require("sinon"); > > const o = { pie: "apple" }; > > const f = sinon.fake.throws(o); > > f(); > > // this is supposed to return true > > f.threw(o); > > // => false > ``` > > Since it has been 12+ years without an error report, it's safe to assume > > that no one uses the `threw` method in this way. Let's remove it from > > the documentation. *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2023-06-12.*

Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

â™» 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 by Mend Renovate. View repository job log here.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1266 (4adef9b) into master (a12cd8d) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 4adef9b differs from pull request most recent head dbf056f. Consider uploading reports for the commit dbf056f to get more accurate results

@@           Coverage Diff           @@
##           master    #1266   +/-   ##
=======================================
  Coverage   69.25%   69.25%           
=======================================
  Files          59       59           
  Lines        5067     5067           
  Branches     1060     1060           
=======================================
  Hits         3509     3509           
  Misses       1532     1532           
  Partials       26       26           
renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

âš  Warning: custom changes will be lost.