From ea20a93b265b820ebe5e965587edfcf6569007da Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:05:58 +0200 Subject: [PATCH] fix(deps): update dependency fastify to v5 (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [fastify](https://fastify.dev/) ([source](https://redirect.github.com/fastify/fastify)) | [`4.28.1` -> `5.0.0`](https://renovatebot.com/diffs/npm/fastify/4.28.1/5.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.28.1/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.28.1/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
fastify/fastify (fastify) ### [`v5.0.0`](https://redirect.github.com/fastify/fastify/releases/tag/v5.0.0) [Compare Source](https://redirect.github.com/fastify/fastify/compare/v4.28.1...v5.0.0) #### What's Changed - add missing route shorthands by [@​Uzlopak](https://redirect.github.com/Uzlopak) in [https://github.com/fastify/fastify/pull/4409](https://redirect.github.com/fastify/fastify/pull/4409) - lib: drop setDefaultRoute and getDefaultRoute methods by [@​RafaelGSS](https://redirect.github.com/RafaelGSS) in [https://github.com/fastify/fastify/pull/4485](https://redirect.github.com/fastify/fastify/pull/4485) - Sync next-branch by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/fastify/fastify/pull/4815](https://redirect.github.com/fastify/fastify/pull/4815) - Next: Disallow `decorate('name', null)` in the types by [@​voxpelli](https://redirect.github.com/voxpelli) in [https://github.com/fastify/fastify/pull/4878](https://redirect.github.com/fastify/fastify/pull/4878) - feat!: Add req.hostname and req.port by [@​aarontravass](https://redirect.github.com/aarontravass) in [https://github.com/fastify/fastify/pull/4766](https://redirect.github.com/fastify/fastify/pull/4766) - Change request id header default value to false by [@​philippviereck](https://redirect.github.com/philippviereck) in [https://github.com/fastify/fastify/pull/4194](https://redirect.github.com/fastify/fastify/pull/4194) - Remove deprecated variadic listen by [@​jsumners](https://redirect.github.com/jsumners) in [https://github.com/fastify/fastify/pull/4900](https://redirect.github.com/fastify/fastify/pull/4900) - Sync next-branch by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/fastify/fastify/pull/4894](https://redirect.github.com/fastify/fastify/pull/4894) - fix: requestIdHeader docs by [@​philippviereck](https://redirect.github.com/philippviereck) in [https://github.com/fastify/fastify/pull/4916](https://redirect.github.com/fastify/fastify/pull/4916) - Sync next-branch by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/fastify/fastify/pull/4930](https://redirect.github.com/fastify/fastify/pull/4930) - Sync next-branch by [@​github-actions](https://redirect.github.com/github-actions) in [https://github.com/fastify/fastify/pull/4941](https://redirect.github.com/fastify/fastify/pull/4941) - types: Remove variadic listen types by [@​Uzlopak](https://redirect.github.com/Uzlopak) in [https://github.com/fastify/fastify/pull/4966](https://redirect.github.com/fastify/fastify/pull/4966) - fix: remove http version check by [@​beyazit](https://redirect.github.com/beyazit) in [https://github.com/fastify/fastify/pull/4962](https://redirect.github.com/fastify/fastify/pull/4962) - feat: new logger api by [@​aarontravass](https://redirect.github.com/aarontravass) in [https://github.com/fastify/fastify/pull/5020](https://redirect.github.com/fastify/fastify/pull/5020) - fix(plugins): mixing async and callback style now returns an error by [@​giuliowaitforitdavide](https://redirect.github.com/giuliowaitforitdavide) in [https://github.com/fastify/fastify/pull/5141](https://redirect.github.com/fastify/fastify/pull/5141) - feat: align fastify.hasRoute to fmw.hasRoute by [@​dancastillo](https://redirect.github.com/dancastillo) in [https://github.com/fastify/fastify/pull/5102](https://redirect.github.com/fastify/fastify/pull/5102) - feat: set useSemicolonDefault default option to false by [@​dancastillo](https://redirect.github.com/dancastillo) in [https://github.com/fastify/fastify/pull/5320](https://redirect.github.com/fastify/fastify/pull/5320) - feat: make contentTypeParser's existingParser check more strict by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5329](https://redirect.github.com/fastify/fastify/pull/5329) - feat: loosen content-type checking by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/4450](https://redirect.github.com/fastify/fastify/pull/4450) - feat: rework contentTypeParser methods by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5372](https://redirect.github.com/fastify/fastify/pull/5372) - perf: limit search space for contentType by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5400](https://redirect.github.com/fastify/fastify/pull/5400) - perf: update method matching by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5419](https://redirect.github.com/fastify/fastify/pull/5419) - chore: updated dependencies to latest versions by [@​puskin94](https://redirect.github.com/puskin94) in [https://github.com/fastify/fastify/pull/5422](https://redirect.github.com/fastify/fastify/pull/5422) - chore: merge next into main for v5 release by [@​jsumners](https://redirect.github.com/jsumners) in [https://github.com/fastify/fastify/pull/5446](https://redirect.github.com/fastify/fastify/pull/5446) - docs(ref/typescript): support Docusaurus v3 by [@​james-kaguru](https://redirect.github.com/james-kaguru) in [https://github.com/fastify/fastify/pull/5450](https://redirect.github.com/fastify/fastify/pull/5450) - chore: remove unused dependency and fix ci by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5454](https://redirect.github.com/fastify/fastify/pull/5454) - feat: (types) add shorthand types for MKCALENDAR and REPORT by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5455](https://redirect.github.com/fastify/fastify/pull/5455) - fix: ci labeler by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5463](https://redirect.github.com/fastify/fastify/pull/5463) - docs(guides/database): correct typo by [@​monish001](https://redirect.github.com/monish001) in [https://github.com/fastify/fastify/pull/5461](https://redirect.github.com/fastify/fastify/pull/5461) - test: add tests for error handling by [@​domdomegg](https://redirect.github.com/domdomegg) in [https://github.com/fastify/fastify/pull/5451](https://redirect.github.com/fastify/fastify/pull/5451) - docs(reference/routes): fix example on constraints by [@​Cadienvan](https://redirect.github.com/Cadienvan) in [https://github.com/fastify/fastify/pull/5468](https://redirect.github.com/fastify/fastify/pull/5468) - perf: Optimize resolving X-Forwarded-For addresses by [@​dmkng](https://redirect.github.com/dmkng) in [https://github.com/fastify/fastify/pull/5458](https://redirect.github.com/fastify/fastify/pull/5458) - fix: `config` type in RouteShorthandOptions by [@​BrianValente](https://redirect.github.com/BrianValente) in [https://github.com/fastify/fastify/pull/5355](https://redirect.github.com/fastify/fastify/pull/5355) - feat: request and reply decorators can not be a reference type by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5462](https://redirect.github.com/fastify/fastify/pull/5462) - docs: update indentation on type providers section by [@​Tony133](https://redirect.github.com/Tony133) in [https://github.com/fastify/fastify/pull/5474](https://redirect.github.com/fastify/fastify/pull/5474) - feat: log all available addresses if listening host is 0.0.0.0 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5476](https://redirect.github.com/fastify/fastify/pull/5476) - chore: remove node 18 from CI by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5481](https://redirect.github.com/fastify/fastify/pull/5481) - feat: writeEarlyHints by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5480](https://redirect.github.com/fastify/fastify/pull/5480) - docs: update indentation and code snippet in the routes section by [@​Tony133](https://redirect.github.com/Tony133) in [https://github.com/fastify/fastify/pull/5482](https://redirect.github.com/fastify/fastify/pull/5482) - refactor: change `reply.redirect()` signature by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5483](https://redirect.github.com/fastify/fastify/pull/5483) - docs: update indentation and code snippet in the type providers section by [@​Tony133](https://redirect.github.com/Tony133) in [https://github.com/fastify/fastify/pull/5485](https://redirect.github.com/fastify/fastify/pull/5485) - feat: emit diagnostics_channel events upon routing request by [@​tlhunter](https://redirect.github.com/tlhunter) in [https://github.com/fastify/fastify/pull/5252](https://redirect.github.com/fastify/fastify/pull/5252) - chore: Bump pnpm/action-setup from 3 to 4 by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5492](https://redirect.github.com/fastify/fastify/pull/5492) - chore: remove unnecessary eslint override by [@​Cangit](https://redirect.github.com/Cangit) in [https://github.com/fastify/fastify/pull/5493](https://redirect.github.com/fastify/fastify/pull/5493) - docs(ecosystem): Add fastify-kysely plugin by [@​alenap93](https://redirect.github.com/alenap93) in [https://github.com/fastify/fastify/pull/5475](https://redirect.github.com/fastify/fastify/pull/5475) - chore: update tap@19 by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5471](https://redirect.github.com/fastify/fastify/pull/5471) - chore: Remove `reply.getReponseTime()` in [https://github.com/fastify/fastify/pull/5490](https://redirect.github.com/fastify/fastify/pull/5490) - chore: remove unused test by [@​Cangit](https://redirect.github.com/Cangit) in [https://github.com/fastify/fastify/pull/5496](https://redirect.github.com/fastify/fastify/pull/5496) - chore: readyListener can be async on server.ready() by [@​remidewitte](https://redirect.github.com/remidewitte) in [https://github.com/fastify/fastify/pull/5501](https://redirect.github.com/fastify/fastify/pull/5501) - chore: test deprecation cleanup by [@​Cangit](https://redirect.github.com/Cangit) in [https://github.com/fastify/fastify/pull/5510](https://redirect.github.com/fastify/fastify/pull/5510) - chore: Migrate to neostandard by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5509](https://redirect.github.com/fastify/fastify/pull/5509) - fix: hasRoute method comparison with case insensitive by [@​SMNBLMRR](https://redirect.github.com/SMNBLMRR) in [https://github.com/fastify/fastify/pull/5508](https://redirect.github.com/fastify/fastify/pull/5508) - feat(types): Introduce SafePromiseLike by [@​rozzilla](https://redirect.github.com/rozzilla) in [https://github.com/fastify/fastify/pull/5506](https://redirect.github.com/fastify/fastify/pull/5506) - fix: Type inferrence with auxilliary hook handlers by [@​aadito123](https://redirect.github.com/aadito123) in [https://github.com/fastify/fastify/pull/5517](https://redirect.github.com/fastify/fastify/pull/5517) - docs: addContentTypeParser with fastify.register by [@​moradebianchetti81](https://redirect.github.com/moradebianchetti81) in [https://github.com/fastify/fastify/pull/5499](https://redirect.github.com/fastify/fastify/pull/5499) - docs: remove navigation for empty content by [@​liuhanqu](https://redirect.github.com/liuhanqu) in [https://github.com/fastify/fastify/pull/5521](https://redirect.github.com/fastify/fastify/pull/5521) - fix: server.listen listener is not cleanup properly by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5522](https://redirect.github.com/fastify/fastify/pull/5522) - feat: type definitions and documentation for separated type provider. by [@​Bram-dc](https://redirect.github.com/Bram-dc) in [https://github.com/fastify/fastify/pull/5427](https://redirect.github.com/fastify/fastify/pull/5427) - chore: support pre and alpha tags by [@​jsumners](https://redirect.github.com/jsumners) in [https://github.com/fastify/fastify/pull/5528](https://redirect.github.com/fastify/fastify/pull/5528) - chore: Bump the dependencies-major group with 2 updates by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5530](https://redirect.github.com/fastify/fastify/pull/5530) - chore: Bump neostandard from 0.7.2 to 0.8.0 in the dev-dependencies group by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5531](https://redirect.github.com/fastify/fastify/pull/5531) - fix(v5): update .npmignore by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5537](https://redirect.github.com/fastify/fastify/pull/5537) - test: fix test finished earlier than expected by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5540](https://redirect.github.com/fastify/fastify/pull/5540) - chore: rm < node19 support from secondaryServer.close() by [@​Cangit](https://redirect.github.com/Cangit) in [https://github.com/fastify/fastify/pull/5542](https://redirect.github.com/fastify/fastify/pull/5542) - chore(sponsor): add valtown by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5543](https://redirect.github.com/fastify/fastify/pull/5543) - chore: Bump the dev-dependencies group with 2 updates by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5546](https://redirect.github.com/fastify/fastify/pull/5546) - docs: use `http2` directive in nginx config by [@​LiviaMedeiros](https://redirect.github.com/LiviaMedeiros) in [https://github.com/fastify/fastify/pull/5548](https://redirect.github.com/fastify/fastify/pull/5548) - chore: Bump neostandard from 0.10.0 to 0.11.0 in the dev-dependencies group by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5554](https://redirect.github.com/fastify/fastify/pull/5554) - chore: fix lint by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5558](https://redirect.github.com/fastify/fastify/pull/5558) - ci: remove automerge from ci alternative runtimes by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5557](https://redirect.github.com/fastify/fastify/pull/5557) - feat: support different body schema per content type by [@​nflaig](https://redirect.github.com/nflaig) in [https://github.com/fastify/fastify/pull/5545](https://redirect.github.com/fastify/fastify/pull/5545) - chore: remove dc-polyfill by [@​Cangit](https://redirect.github.com/Cangit) in [https://github.com/fastify/fastify/pull/5560](https://redirect.github.com/fastify/fastify/pull/5560) - fix: res serializer not given reply ([#​5556](https://redirect.github.com/fastify/fastify/issues/5556)) by [@​mch-dsk](https://redirect.github.com/mch-dsk) in [https://github.com/fastify/fastify/pull/5561](https://redirect.github.com/fastify/fastify/pull/5561) - chore: Bump process-warning from 3.0.0 to 4.0.0 in the dependencies-major group by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5568](https://redirect.github.com/fastify/fastify/pull/5568) - chore: Bump the dev-dependencies group with 2 updates by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5569](https://redirect.github.com/fastify/fastify/pull/5569) - chore: allow ! in PR title by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5571](https://redirect.github.com/fastify/fastify/pull/5571) - docs: add [@​pybot/fastify-autoload](https://redirect.github.com/pybot/fastify-autoload) to comm plugins by [@​kunal097](https://redirect.github.com/kunal097) in [https://github.com/fastify/fastify/pull/5579](https://redirect.github.com/fastify/fastify/pull/5579) - feat: customize http methods by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5567](https://redirect.github.com/fastify/fastify/pull/5567) - refactor(typescript): re-order FastifyReply generic parameters by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5570](https://redirect.github.com/fastify/fastify/pull/5570) - docs: Adding `crudify-mongo` plugin to community list by [@​aaroncadillac](https://redirect.github.com/aaroncadillac) in [https://github.com/fastify/fastify/pull/5581](https://redirect.github.com/fastify/fastify/pull/5581) - docs(reference/typescript): remove type provider from typebox example by [@​jscheffner](https://redirect.github.com/jscheffner) in [https://github.com/fastify/fastify/pull/5576](https://redirect.github.com/fastify/fastify/pull/5576) - refactor!: remove json shorthand by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5586](https://redirect.github.com/fastify/fastify/pull/5586) - chore: remove deprecation 005 by [@​jsumners](https://redirect.github.com/jsumners) in [https://github.com/fastify/fastify/pull/5589](https://redirect.github.com/fastify/fastify/pull/5589) - fix: nullish host by [@​sourcecodeit](https://redirect.github.com/sourcecodeit) in [https://github.com/fastify/fastify/pull/5590](https://redirect.github.com/fastify/fastify/pull/5590) - chore(sponsor): add handsontable by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5592](https://redirect.github.com/fastify/fastify/pull/5592) - fix: removed warning listener from tests by [@​sourcecodeit](https://redirect.github.com/sourcecodeit) in [https://github.com/fastify/fastify/pull/5598](https://redirect.github.com/fastify/fastify/pull/5598) - fix: test suite import.js emitting errors by [@​dancastillo](https://redirect.github.com/dancastillo) in [https://github.com/fastify/fastify/pull/5599](https://redirect.github.com/fastify/fastify/pull/5599) - chore: Bump [@​types/node](https://redirect.github.com/types/node) from 20.14.13 to 22.0.0 in the dev-dependencies group by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5600](https://redirect.github.com/fastify/fastify/pull/5600) - docs(reply): standardize import style in examples by [@​Tony133](https://redirect.github.com/Tony133) in [https://github.com/fastify/fastify/pull/5580](https://redirect.github.com/fastify/fastify/pull/5580) - docs(typescript): update example fastify version by [@​Fdawgs](https://redirect.github.com/Fdawgs) in [https://github.com/fastify/fastify/pull/5602](https://redirect.github.com/fastify/fastify/pull/5602) - refactor: remove FSTDEP007 by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5604](https://redirect.github.com/fastify/fastify/pull/5604) - refactor: remove `FSTDEP008` and `FSTDEP009` by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5609](https://redirect.github.com/fastify/fastify/pull/5609) - refactor: remove `FSTDEP010` by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5611](https://redirect.github.com/fastify/fastify/pull/5611) - refactor: remove `FSTDEP021` by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5613](https://redirect.github.com/fastify/fastify/pull/5613) - refactor: use `Object.hasOwn` by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5614](https://redirect.github.com/fastify/fastify/pull/5614) - refactor: remove `FSTDEP012`, `FSTDEP015`, `FSTDEP016`, `FSTDEP017`, `FSTDEP018`, `FSTDEP019` by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5616](https://redirect.github.com/fastify/fastify/pull/5616) - refactor: remove `FSTDEP013` by [@​climba03003](https://redirect.github.com/climba03003) in [https://github.com/fastify/fastify/pull/5618](https://redirect.github.com/fastify/fastify/pull/5618) - fix: throwing "FST_ERR_DUPLICATED_ROUTE" error instead of raw error by [@​Rantoledo](https://redirect.github.com/Rantoledo) in [https://github.com/fastify/fastify/pull/5621](https://redirect.github.com/fastify/fastify/pull/5621) - chore: Bump [@​sinclair/typebox](https://redirect.github.com/sinclair/typebox) from 0.32.35 to 0.33.4 in the dev-dependencies group by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/5625](https://redirect.github.com/fastify/fastify/pull/5625) - fix: reorder handling of `Response` replies by [@​barbieri](https://redirect.github.com/barbieri) in [https://github.com/fastify/fastify/pull/5612](https://redirect.github.com/fastify/fastify/pull/5612) - ci(.github): use latest node lts version by [@​Fdawgs](https://redirect.github.com/Fdawgs) in [https://github.com/fastify/fastify/pull/5577](https://redirect.github.com/fastify/fastify/pull/5577) - docs: add default value for maxParamLength by [@​busybox11](https://redirect.github.com/busybox11) in [https://github.com/fastify/fastify/pull/5630](https://redirect.github.com/fastify/fastify/pull/5630) - chore: simplify `neostandard` setup by [@​voxpelli](https://redirect.github.com/voxpelli) in [https://github.com/fastify/fastify/pull/5635](https://redirect.github.com/fastify/fastify/pull/5635) - chore: fix sponsor link by [@​Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/5640](https://redirect.github.com/fastify/fastify/pull/5640) - docs: move RafaelGSS to past collaborators by [@​RafaelGSS](https://redirect.github.com/RafaelGSS) in [https://github.com/fastify/fastify/pull/5645](https://redirect.github.com/fastify/fastify/pull/5645) - docs(type-providers): fix typos by [@​mikesamm](https://redirect.github.com/mikesamm) in [https://github.com/fastify/fastify/pull/5651](https://redirect.github.com/fastify/fastify/pull/5651) - feat: add fastify v4 codemods by [@​arshcodemod](https://redirect.github.com/arshcodemod) in [https://github.com/fastify/fastify/pull/5642](https://redirect.github.com/fastify/fastify/pull/5642) - chore: bump find-my-way to v9 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5652](https://redirect.github.com/fastify/fastify/pull/5652) - chore: bump ajv-compiler to v4.0.0 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5653](https://redirect.github.com/fastify/fastify/pull/5653) - chore: Bumped light-my-request to v6.0.0 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5655](https://redirect.github.com/fastify/fastify/pull/5655) - chore: Bumped avvio to v9.0.0 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5656](https://redirect.github.com/fastify/fastify/pull/5656) - chore: bump fast-json-stringify-compiler to v5.0.0 by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5660](https://redirect.github.com/fastify/fastify/pull/5660) - docs: add dancastillo to Fastify Plugins team by [@​dancastillo](https://redirect.github.com/dancastillo) in [https://github.com/fastify/fastify/pull/5668](https://redirect.github.com/fastify/fastify/pull/5668) - docs: join plugin team by [@​jean-michelet](https://redirect.github.com/jean-michelet) in [https://github.com/fastify/fastify/pull/5677](https://redirect.github.com/fastify/fastify/pull/5677) - chore: list the next deprecation code by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5673](https://redirect.github.com/fastify/fastify/pull/5673) - types: remove nonexistant done parameter from onRegister by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5678](https://redirect.github.com/fastify/fastify/pull/5678) - docs: add v5 guide by [@​mcollina](https://redirect.github.com/mcollina) in [https://github.com/fastify/fastify/pull/5674](https://redirect.github.com/fastify/fastify/pull/5674) - feat: bind `this` to instance in onclose by [@​gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/fastify/fastify/pull/5670](https://redirect.github.com/fastify/fastify/pull/5670) - docs: update v4 codemods by [@​mohab-sameh](https://redirect.github.com/mohab-sameh) in [https://github.com/fastify/fastify/pull/5666](https://redirect.github.com/fastify/fastify/pull/5666) - docs: Add required .js extension to relative ESM imports by [@​masto](https://redirect.github.com/masto) in [https://github.com/fastify/fastify/pull/5685](https://redirect.github.com/fastify/fastify/pull/5685) #### New Contributors - [@​beyazit](https://redirect.github.com/beyazit) made their first contribution in [https://github.com/fastify/fastify/pull/4962](https://redirect.github.com/fastify/fastify/pull/4962) - [@​puskin94](https://redirect.github.com/puskin94) made their first contribution in [https://github.com/fastify/fastify/pull/5422](https://redirect.github.com/fastify/fastify/pull/5422) - [@​james-kaguru](https://redirect.github.com/james-kaguru) made their first contribution in [https://github.com/fastify/fastify/pull/5450](https://redirect.github.com/fastify/fastify/pull/5450) - [@​monish001](https://redirect.github.com/monish001) made their first contribution in [https://github.com/fastify/fastify/pull/5461](https://redirect.github.com/fastify/fastify/pull/5461) - [@​dmkng](https://redirect.github.com/dmkng) made their first contribution in [https://github.com/fastify/fastify/pull/5458](https://redirect.github.com/fastify/fastify/pull/5458) - [@​BrianValente](https://redirect.github.com/BrianValente) made their first contribution in [https://github.com/fastify/fastify/pull/5355](https://redirect.github.com/fastify/fastify/pull/5355) - [@​Cangit](https://redirect.github.com/Cangit) made their first contribution in [https://github.com/fastify/fastify/pull/5493](https://redirect.github.com/fastify/fastify/pull/5493) - [@​alenap93](https://redirect.github.com/alenap93) made their first contribution in [https://github.com/fastify/fastify/pull/5475](https://redirect.github.com/fastify/fastify/pull/5475) - [@​moradebianchetti81](https://redirect.github.com/moradebianchetti81) made their first contribution in [https://github.com/fastify/fastify/pull/5499](https://redirect.github.com/fastify/fastify/pull/5499) - [@​Bram-dc](https://redirect.github.com/Bram-dc) made their first contribution in [https://github.com/fastify/fastify/pull/5427](https://redirect.github.com/fastify/fastify/pull/5427) - [@​LiviaMedeiros](https://redirect.github.com/LiviaMedeiros) made their first contribution in [https://github.com/fastify/fastify/pull/5548](https://redirect.github.com/fastify/fastify/pull/5548) - [@​mch-dsk](https://redirect.github.com/mch-dsk) made their first contribution in [https://github.com/fastify/fastify/pull/5561](https://redirect.github.com/fastify/fastify/pull/5561) - [@​kunal097](https://redirect.github.com/kunal097) made their first contribution in [https://github.com/fastify/fastify/pull/5579](https://redirect.github.com/fastify/fastify/pull/5579) - [@​aaroncadillac](https://redirect.github.com/aaroncadillac) made their first contribution in [https://github.com/fastify/fastify/pull/5581](https://redirect.github.com/fastify/fastify/pull/5581) - [@​jscheffner](https://redirect.github.com/jscheffner) made their first contribution in [https://github.com/fastify/fastify/pull/5576](https://redirect.github.com/fastify/fastify/pull/5576) - [@​sourcecodeit](https://redirect.github.com/sourcecodeit) made their first contribution in [https://github.com/fastify/fastify/pull/5590](https://redirect.github.com/fastify/fastify/pull/5590) - [@​Rantoledo](https://redirect.github.com/Rantoledo) made their first contribution in [https://github.com/fastify/fastify/pull/5621](https://redirect.github.com/fastify/fastify/pull/5621) - [@​barbieri](https://redirect.github.com/barbieri) made their first contribution in [https://github.com/fastify/fastify/pull/5612](https://redirect.github.com/fastify/fastify/pull/5612) - [@​busybox11](https://redirect.github.com/busybox11) made their first contribution in [https://github.com/fastify/fastify/pull/5630](https://redirect.github.com/fastify/fastify/pull/5630) - [@​mikesamm](https://redirect.github.com/mikesamm) made their first contribution in [https://github.com/fastify/fastify/pull/5651](https://redirect.github.com/fastify/fastify/pull/5651) - [@​arshcodemod](https://redirect.github.com/arshcodemod) made their first contribution in [https://github.com/fastify/fastify/pull/5642](https://redirect.github.com/fastify/fastify/pull/5642) - [@​jean-michelet](https://redirect.github.com/jean-michelet) made their first contribution in [https://github.com/fastify/fastify/pull/5677](https://redirect.github.com/fastify/fastify/pull/5677) - [@​mohab-sameh](https://redirect.github.com/mohab-sameh) made their first contribution in [https://github.com/fastify/fastify/pull/5666](https://redirect.github.com/fastify/fastify/pull/5666) - [@​masto](https://redirect.github.com/masto) made their first contribution in [https://github.com/fastify/fastify/pull/5685](https://redirect.github.com/fastify/fastify/pull/5685) **Full Changelog**: https://github.com/fastify/fastify/compare/v4.27.0...v5.0.0
--- ### 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 is behind base branch, 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](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/tf2pickup-org/tf2pickup). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 20 +-- pnpm-lock.yaml | 319 ++++++++++++++++++++--------------- src/auth/plugins/sign-out.ts | 2 +- src/auth/plugins/steam.ts | 4 +- src/main.ts | 4 +- 5 files changed, 197 insertions(+), 152 deletions(-) diff --git a/package.json b/package.json index 3ddbe4c..5872a31 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,14 @@ "build": "tsc -p tsconfig.build.json && tsc-alias" }, "dependencies": { - "@fastify/cookie": "9.4.0", - "@fastify/flash": "5.2.0", - "@fastify/formbody": "7.4.0", - "@fastify/request-context": "5.1.0", - "@fastify/secure-session": "7.5.1", - "@fastify/sensible": "5.6.0", - "@fastify/static": "7.0.4", - "@fastify/websocket": "10.0.1", + "@fastify/cookie": "10.0.1", + "@fastify/flash": "6.0.0", + "@fastify/formbody": "8.0.1", + "@fastify/request-context": "6.0.0", + "@fastify/secure-session": "8.1.0", + "@fastify/sensible": "6.0.1", + "@fastify/static": "8.0.1", + "@fastify/websocket": "11.0.1", "@kitajs/fastify-html-plugin": "4.2.0", "@kitajs/html": "4.2.2", "@kitajs/ts-html-plugin": "4.1.0", @@ -31,9 +31,9 @@ "croner": "8.1.1", "date-fns": "4.1.0", "dotenv": "16.4.5", - "fastify": "4.28.1", + "fastify": "5.0.0", "fastify-plugin": "4.5.1", - "fastify-type-provider-zod": "2.0.0", + "fastify-type-provider-zod": "3.0.0", "generate-password": "1.7.1", "jsonwebtoken": "9.0.2", "lodash-es": "4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6be129..fabaf0e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,29 +9,29 @@ importers: .: dependencies: '@fastify/cookie': - specifier: 9.4.0 - version: 9.4.0 + specifier: 10.0.1 + version: 10.0.1 '@fastify/flash': - specifier: 5.2.0 - version: 5.2.0 + specifier: 6.0.0 + version: 6.0.0 '@fastify/formbody': - specifier: 7.4.0 - version: 7.4.0 + specifier: 8.0.1 + version: 8.0.1 '@fastify/request-context': - specifier: 5.1.0 - version: 5.1.0 + specifier: 6.0.0 + version: 6.0.0 '@fastify/secure-session': - specifier: 7.5.1 - version: 7.5.1 + specifier: 8.1.0 + version: 8.1.0 '@fastify/sensible': - specifier: 5.6.0 - version: 5.6.0 + specifier: 6.0.1 + version: 6.0.1 '@fastify/static': - specifier: 7.0.4 - version: 7.0.4 + specifier: 8.0.1 + version: 8.0.1 '@fastify/websocket': - specifier: 10.0.1 - version: 10.0.1 + specifier: 11.0.1 + version: 11.0.1 '@kitajs/fastify-html-plugin': specifier: 4.2.0 version: 4.2.0(@kitajs/html@4.2.2)(@kitajs/ts-html-plugin@4.1.0(@kitajs/html@4.2.2)(typescript@5.5.4)) @@ -60,14 +60,14 @@ importers: specifier: 16.4.5 version: 16.4.5 fastify: - specifier: 4.28.1 - version: 4.28.1 + specifier: 5.0.0 + version: 5.0.0 fastify-plugin: specifier: 4.5.1 version: 4.5.1 fastify-type-provider-zod: - specifier: 2.0.0 - version: 2.0.0(fastify@4.28.1)(zod@3.23.8) + specifier: 3.0.0 + version: 3.0.0(fastify@5.0.0)(zod@3.23.8) generate-password: specifier: 1.7.1 version: 1.7.1 @@ -508,49 +508,54 @@ packages: resolution: {integrity: sha512-autAXT203ixhqei9xt+qkYOvY8l6LAFIdT2UXc/RPNeUVfqRF1BV94GTJyVPFKT8nFM6MyVJhjLj9E8JWvf5zQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@fastify/accept-negotiator@1.1.0': - resolution: {integrity: sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==} - engines: {node: '>=14'} + '@fastify/accept-negotiator@2.0.0': + resolution: {integrity: sha512-/Sce/kBzuTxIq5tJh85nVNOq9wKD8s+viIgX0fFMDBdw95gnpf53qmF1oBgJym3cPFliWUuSloVg/1w/rH0FcQ==} + + '@fastify/ajv-compiler@4.0.0': + resolution: {integrity: sha512-dt0jyLAlay14LpIn4Fg1SY7V5NJ9KH0YFDpYVQY5cgIVBvdI8908AMx5zQ0bBYPGT6Wh+bM3f2caMmOXLP3QsQ==} - '@fastify/ajv-compiler@3.6.0': - resolution: {integrity: sha512-LwdXQJjmMD+GwLOkP7TVC68qa+pSSogeWWmznRJ/coyTcfe9qA05AHFSe1eZFwK6q+xVRpChnvFUkf1iYaSZsQ==} + '@fastify/cookie@10.0.1': + resolution: {integrity: sha512-NV/wbCUv4ETJ5KM1KMu0fLx0nSCm9idIxwg66NZnNbfPQH3rdbx6k0qRs5uy0y+MhBgvDudYRA30KlK659chyw==} + + '@fastify/cookie@10.0.0': + resolution: {integrity: sha512-S43spazwAfzm5nKlqq/spAGW+O6r+WQzg5vXXI1ArCXXFa8KBA/tiU3XRVQUehSNtbN5PA6+g183hzh5/dZ6Iw==} '@fastify/cookie@9.4.0': resolution: {integrity: sha512-Th+pt3kEkh4MQD/Q2q1bMuJIB5NX/D5SwSpOKu3G/tjoGbwfpurIMJsWSPS0SJJ4eyjtmQ8OipDQspf8RbUOlg==} - '@fastify/error@3.4.1': - resolution: {integrity: sha512-wWSvph+29GR783IhmvdwWnN4bUxTD01Vm5Xad4i7i1VuAOItLvbPAb69sb0IQ2N57yprvhNIwAP5B6xfKTmjmQ==} + '@fastify/error@4.0.0': + resolution: {integrity: sha512-OO/SA8As24JtT1usTUTKgGH7uLvhfwZPwlptRi2Dp5P4KKmJI3gvsZ8MIHnNwDs4sLf/aai5LzTyl66xr7qMxA==} - '@fastify/fast-json-stringify-compiler@4.3.0': - resolution: {integrity: sha512-aZAXGYo6m22Fk1zZzEUKBvut/CIIQe/BapEORnxiD5Qr0kPHqqI69NtEMCme74h+at72sPhbkb4ZrLd1W3KRLA==} + '@fastify/fast-json-stringify-compiler@5.0.0': + resolution: {integrity: sha512-tywfuZfXsyxLC5kEqrMubbFa9vpAxNtuPE7j9w5si1r+6p5b981pDfZ5Y8HBqmjDQl+PABT7cV5jZgXI2j+I5g==} - '@fastify/flash@5.2.0': - resolution: {integrity: sha512-mVPXZmX8PgNHWhqasN5He/Cz68YSxXuZ732Uqd8HZ8Rjtkhk8aqNU6v54NFmxzACNI4dLtXP4yj1BogdaySyRw==} + '@fastify/flash@6.0.0': + resolution: {integrity: sha512-NtO44Vg3V+FMSy7833arA5SFR/SsES67YrM91RpKPQBotec6akSvXK56ExklHhC8Frk+PozHuv2KIgIDZIABjA==} - '@fastify/formbody@7.4.0': - resolution: {integrity: sha512-H3C6h1GN56/SMrZS8N2vCT2cZr7mIHzBHzOBa5OPpjfB/D6FzP9mMpE02ZzrFX0ANeh0BAJdoXKOF2e7IbV+Og==} + '@fastify/formbody@8.0.1': + resolution: {integrity: sha512-LPrcadSIK8TrQk510Zdj56fnw7cyHq0/PW0YHGGM8ycGL4X7XAex+FKcwpzB4i5lF9eykc71a4EtcO9AEoByqw==} '@fastify/merge-json-schemas@0.1.1': resolution: {integrity: sha512-fERDVz7topgNjtXsJTTW1JKLy0rhuLRcquYqNR9rF7OcVpCa2OVW49ZPDIhaRRCaUuvVxI+N416xUoF76HNSXA==} - '@fastify/request-context@5.1.0': - resolution: {integrity: sha512-PM7wrLJOEylVDpxabOFLaYsdAiaa0lpDUcP2HMFJ1JzgiWuC6k4r3duf6Pm9YLnzlGmT+Yp4tkQjqsu7V/pSOA==} + '@fastify/request-context@6.0.0': + resolution: {integrity: sha512-8W1OSVYPw2e3IgHf27ceigBT0Z4LExA78WdHXqilJ4X8Ee1+nP0h1RB/WHrGXLDdVR+J7B05K88KRtYm2WCElQ==} - '@fastify/secure-session@7.5.1': - resolution: {integrity: sha512-3xnTmlI4rhboyLtXtGDnrAXz8MLbrkwn9Owo4CZ2/GC9H3Eux0D5QWwKowxmn4VaFadj2wC67RoycFFi/46xaw==} + '@fastify/secure-session@8.1.0': + resolution: {integrity: sha512-sCxnu6U4AcQ2LQjpnF5FW+9LC9A0HpEZl93JtdbSfjc8vrzhPAWCeyAzyabyOlBTY50Iu7KJgfBVftdF2RCrOA==} hasBin: true - '@fastify/send@2.1.0': - resolution: {integrity: sha512-yNYiY6sDkexoJR0D8IDy3aRP3+L4wdqCpvx5WP+VtEU58sn7USmKynBzDQex5X42Zzvw2gNzzYgP90UfWShLFA==} + '@fastify/send@3.1.1': + resolution: {integrity: sha512-LdiV2mle/2tH8vh6GwGl0ubfUAgvY+9yF9oGI1iiwVyNUVOQamvw5n+OFu6iCNNoyuCY80FFURBn4TZCbTe8LA==} - '@fastify/sensible@5.6.0': - resolution: {integrity: sha512-Vq6Z2ZQy10GDqON+hvLF52K99s9et5gVVxTul5n3SIAf0Kq5QjPRUKkAMT3zPAiiGvoHtS3APa/3uaxfDgCODQ==} + '@fastify/sensible@6.0.1': + resolution: {integrity: sha512-D0rN0kMeZKP23f4w9MoCI9e4+n7vASFAsGoRNn9bondSbplLeIfR2HcjCbyElAM04jGrPRLi/edyThEPOyC9cQ==} - '@fastify/static@7.0.4': - resolution: {integrity: sha512-p2uKtaf8BMOZWLs6wu+Ihg7bWNBdjNgCwDza4MJtTqg+5ovKmcbgbR9Xs5/smZ1YISfzKOCNYmZV8LaCj+eJ1Q==} + '@fastify/static@8.0.1': + resolution: {integrity: sha512-7idyhbcgf14v4bjWzUeHEFvnVxvNJ1n5cyGPgFtwTZjnjUQ1wgC7a2FQai7OGKqCKywDEjzbPhAZRW+uEK1LMg==} - '@fastify/websocket@10.0.1': - resolution: {integrity: sha512-8/pQIxTPRD8U94aILTeJ+2O3el/r19+Ej5z1O1mXlqplsUH7KzCjAI0sgd5DM/NoPjAi5qLFNIjgM5+9/rGSNw==} + '@fastify/websocket@11.0.1': + resolution: {integrity: sha512-44yam5+t1I9v09hWBYO+ezV88+mb9Se2BjgERtzB/68+0mGeTfFkjBeDBe2y+ZdiPpeO2rhevhdnfrBm5mqH+Q==} '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -872,14 +877,6 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - ajv-formats@2.1.1: - resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - ajv-formats@3.0.1: resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} peerDependencies: @@ -948,8 +945,8 @@ packages: peerDependencies: postcss: ^8.1.0 - avvio@8.3.2: - resolution: {integrity: sha512-st8e519GWHa/azv8S87mcJvZs4WsgTBjOw/Ih1CP6u+8SZvcOeAYNG6JbsIrAUUJJ7JfmrnOkR8ipDS+u9SIRQ==} + avvio@9.0.0: + resolution: {integrity: sha512-UbYrOXgE/I+knFG+3kJr9AgC7uNo8DG+FGGODpH9Bj1O1kL/QDjBXnTem9leD3VdQKtaHjV3O85DQ7hHh4IIHw==} axios@1.7.2: resolution: {integrity: sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==} @@ -1179,6 +1176,10 @@ packages: resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} engines: {node: '>= 0.6.0'} + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + didyoumean@1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} @@ -1313,9 +1314,6 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} - fast-content-type-parse@1.1.0: - resolution: {integrity: sha512-fBHHqSTFLVnR61C+gltJuE5GkVQMV0S2nqUO8TJ+5Z3qAKG8vAx4FKai1s5jq/inV1+sREynIWSuQ6HgoSXpDQ==} - fast-copy@3.0.2: resolution: {integrity: sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==} @@ -1332,8 +1330,8 @@ packages: fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - fast-json-stringify@5.16.1: - resolution: {integrity: sha512-KAdnLvy1yu/XrRtP+LJnxbBGrhN+xXu+gt3EUvZhYGKCr3lFHq/7UFJHHFgmJKoqlh6B40bZLEv7w46B0mqn1g==} + fast-json-stringify@6.0.0: + resolution: {integrity: sha512-FGMKZwniMTgZh7zQp9b6XnBVxUmKVahQLQeRQHqwYmPDqDhcEKZ3BaQsxelFFI5PY7nN71OEeiL47/zUWcYe1A==} fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} @@ -1360,14 +1358,14 @@ packages: fastify-plugin@5.0.0: resolution: {integrity: sha512-0725fmH/yYi8ugsjszLci+lLnGBK6cG+WSxM7edY2OXJEU7gr2JiGBoieL2h9mhTych1vFsEfXsAsGGDJ/Rd5w==} - fastify-type-provider-zod@2.0.0: - resolution: {integrity: sha512-LSbz6DikD9BcQmSDFn7uXFmrFS2gRMiSkwiQeIeAH3XEGOyjokJKsH4DRRuxSn7fTz1UNTNiujib4+MTNw+nOg==} + fastify-type-provider-zod@3.0.0: + resolution: {integrity: sha512-7zU+leWpPC5r8vQotPbkfUZhU144ScsQRkkQjgTGjwKGhNMEj6/bPO/yerSFJU9YCGQfSwao33RPFm1HXJUR5g==} peerDependencies: - fastify: ^4.0.0 + fastify: ^5.0.0 zod: ^3.14.2 - fastify@4.28.1: - resolution: {integrity: sha512-kFWUtpNr4i7t5vY2EJPCN2KgMVpuqfU4NjnJNCgiNB900oiDeYqaNDRcAfeBbOF5hGixixxcKnOU4KN9z6QncQ==} + fastify@5.0.0: + resolution: {integrity: sha512-Qe4dU+zGOzg7vXjw4EvcuyIbNnMwTmcuOhlOrOJsgwzvjEZmsM/IeHulgJk+r46STjdJS/ZJbxO8N70ODXDMEQ==} fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -1384,8 +1382,8 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} - find-my-way@8.2.0: - resolution: {integrity: sha512-HdWXgFYc6b1BJcOBDBwjqWuHJj1WYiqrxSh25qtU4DabpMFdj/gSunNBQb83t+8Zt67D7CXEzJWTkxaShMTMOA==} + find-my-way@9.0.1: + resolution: {integrity: sha512-/5NN/R0pFWuff16TMajeKt2JyiW+/OE8nOO8vo1DwZTxLaIURb7lcBYPIgRPh61yCNh9l8voeKwcrkUzmB00vw==} engines: {node: '>=14'} find-up@5.0.0: @@ -1477,6 +1475,11 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + globals@14.0.0: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} @@ -1584,6 +1587,10 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + jackspeak@4.0.1: + resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} + engines: {node: 20 || >=22} + jiti@1.21.6: resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==} hasBin: true @@ -1631,8 +1638,8 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - light-my-request@5.13.0: - resolution: {integrity: sha512-9IjUN9ZyCS9pTG+KqTDEQo68Sui2lHsYBrfMyVUTTZ3XhH8PMZq7xO94Kr+eP9dhi/kcKsx4N41p2IXEBil1pQ==} + light-my-request@6.0.0: + resolution: {integrity: sha512-kFkFXrmKCL0EEeOmJybMH5amWFd+AFvlvMlvFTRxCUwbhfapZqDmeLMPoWihntnYY6JpoQDE9k+vOzObF1fDqg==} lilconfig@2.1.0: resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} @@ -1695,6 +1702,10 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + magic-string@0.30.11: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} @@ -1737,6 +1748,10 @@ packages: engines: {node: '>=10.0.0'} hasBin: true + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -1890,6 +1905,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -2211,9 +2230,6 @@ packages: resolution: {integrity: sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==} engines: {node: '>= 0.8'} - process-warning@3.0.0: - resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==} - process-warning@4.0.0: resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} @@ -2290,8 +2306,8 @@ packages: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true - ret@0.4.3: - resolution: {integrity: sha512-0f4Memo5QP7WQyUEAYUO3esD/XjOc3Zjjg5CPsAq1p8sIu0XPeMbHJemKA0BO7tV0X7+A0FoEpbmHXWxPyD3wQ==} + ret@0.5.0: + resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==} engines: {node: '>=10'} reusify@1.0.4: @@ -2312,8 +2328,8 @@ packages: safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - safe-regex2@3.1.0: - resolution: {integrity: sha512-RAAZAGbap2kBfbVhvmnTFv73NWLMvDGOITFYTZBAaY8eR+Ir4ef7Up/e7amo+y1+AH+3PtLkrt9mvcTsG9LXug==} + safe-regex2@4.0.0: + resolution: {integrity: sha512-Hvjfv25jPDVr3U+4LDzBuZPPOymELG3PYcSk5hcevooo1yxxamQL/bHs/GrEPGmMoMEwRrHVGiCA1pXi97B8Ew==} safe-stable-stringify@2.4.3: resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} @@ -2711,8 +2727,8 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - zod-to-json-schema@3.23.2: - resolution: {integrity: sha512-uSt90Gzc/tUfyNqxnjlfBs8W6WSGpNBv0rVsNxP/BVSMHMKGdthPYff4xtCHYloJGM0CFxFsb3NbC0eqPhfImw==} + zod-to-json-schema@3.23.3: + resolution: {integrity: sha512-TYWChTxKQbRJp5ST22o/Irt9KC5nj7CdBKYB/AosCRdj/wxEMvv4NNaj9XVUHDOIp53ZxArGhnw5HMZziPFjog==} peerDependencies: zod: ^3.23.3 @@ -2901,49 +2917,59 @@ snapshots: dependencies: levn: 0.4.1 - '@fastify/accept-negotiator@1.1.0': {} + '@fastify/accept-negotiator@2.0.0': {} - '@fastify/ajv-compiler@3.6.0': + '@fastify/ajv-compiler@4.0.0': dependencies: ajv: 8.17.1 - ajv-formats: 2.1.1(ajv@8.17.1) - fast-uri: 2.4.0 + ajv-formats: 3.0.1(ajv@8.17.1) + fast-uri: 3.0.1 + + '@fastify/cookie@10.0.1': + dependencies: + cookie-signature: 1.2.1 + fastify-plugin: 5.0.0 + + '@fastify/cookie@10.0.0': + dependencies: + cookie-signature: 1.2.1 + fastify-plugin: 5.0.0 '@fastify/cookie@9.4.0': dependencies: cookie-signature: 1.2.1 fastify-plugin: 4.5.1 - '@fastify/error@3.4.1': {} + '@fastify/error@4.0.0': {} - '@fastify/fast-json-stringify-compiler@4.3.0': + '@fastify/fast-json-stringify-compiler@5.0.0': dependencies: - fast-json-stringify: 5.16.1 + fast-json-stringify: 6.0.0 - '@fastify/flash@5.2.0': + '@fastify/flash@6.0.0': dependencies: - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 - '@fastify/formbody@7.4.0': + '@fastify/formbody@8.0.1': dependencies: fast-querystring: 1.1.2 - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 '@fastify/merge-json-schemas@0.1.1': dependencies: fast-deep-equal: 3.1.3 - '@fastify/request-context@5.1.0': + '@fastify/request-context@6.0.0': dependencies: - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 - '@fastify/secure-session@7.5.1': + '@fastify/secure-session@8.1.0': dependencies: - '@fastify/cookie': 9.4.0 - fastify-plugin: 4.5.1 + '@fastify/cookie': 10.0.0 + fastify-plugin: 5.0.0 sodium-native: 4.1.1 - '@fastify/send@2.1.0': + '@fastify/send@3.1.1': dependencies: '@lukeed/ms': 2.0.2 escape-html: 1.0.3 @@ -2951,29 +2977,29 @@ snapshots: http-errors: 2.0.0 mime: 3.0.0 - '@fastify/sensible@5.6.0': + '@fastify/sensible@6.0.1': dependencies: '@lukeed/ms': 2.0.2 - fast-deep-equal: 3.1.3 - fastify-plugin: 4.5.1 + dequal: 2.0.3 + fastify-plugin: 5.0.0 forwarded: 0.2.0 http-errors: 2.0.0 type-is: 1.6.18 vary: 1.1.2 - '@fastify/static@7.0.4': + '@fastify/static@8.0.1': dependencies: - '@fastify/accept-negotiator': 1.1.0 - '@fastify/send': 2.1.0 + '@fastify/accept-negotiator': 2.0.0 + '@fastify/send': 3.1.1 content-disposition: 0.5.4 - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 fastq: 1.17.1 - glob: 10.4.5 + glob: 11.0.0 - '@fastify/websocket@10.0.1': + '@fastify/websocket@11.0.1': dependencies: duplexify: 4.1.3 - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 ws: 8.18.0 transitivePeerDependencies: - bufferutil @@ -3293,10 +3319,6 @@ snapshots: acorn@8.12.1: {} - ajv-formats@2.1.1(ajv@8.17.1): - optionalDependencies: - ajv: 8.17.1 - ajv-formats@3.0.1(ajv@8.17.1): optionalDependencies: ajv: 8.17.1 @@ -3358,9 +3380,9 @@ snapshots: postcss: 8.4.47 postcss-value-parser: 4.2.0 - avvio@8.3.2: + avvio@9.0.0: dependencies: - '@fastify/error': 3.4.1 + '@fastify/error': 4.0.0 fastq: 1.17.1 axios@1.7.2: @@ -3604,6 +3626,8 @@ snapshots: dependency-graph@0.11.0: {} + dequal@2.0.3: {} + didyoumean@1.2.2: {} dir-glob@3.0.1: @@ -3798,8 +3822,6 @@ snapshots: events@3.3.0: {} - fast-content-type-parse@1.1.0: {} - fast-copy@3.0.2: {} fast-decode-uri-component@1.0.1: {} @@ -3816,7 +3838,7 @@ snapshots: fast-json-stable-stringify@2.1.0: {} - fast-json-stringify@5.16.1: + fast-json-stringify@6.0.0: dependencies: '@fastify/merge-json-schemas': 0.1.1 ajv: 8.17.1 @@ -3844,25 +3866,24 @@ snapshots: fastify-plugin@5.0.0: {} - fastify-type-provider-zod@2.0.0(fastify@4.28.1)(zod@3.23.8): + fastify-type-provider-zod@3.0.0(fastify@5.0.0)(zod@3.23.8): dependencies: - fastify: 4.28.1 + fastify: 5.0.0 zod: 3.23.8 - zod-to-json-schema: 3.23.2(zod@3.23.8) + zod-to-json-schema: 3.23.3(zod@3.23.8) - fastify@4.28.1: + fastify@5.0.0: dependencies: - '@fastify/ajv-compiler': 3.6.0 - '@fastify/error': 3.4.1 - '@fastify/fast-json-stringify-compiler': 4.3.0 + '@fastify/ajv-compiler': 4.0.0 + '@fastify/error': 4.0.0 + '@fastify/fast-json-stringify-compiler': 5.0.0 abstract-logging: 2.0.1 - avvio: 8.3.2 - fast-content-type-parse: 1.1.0 - fast-json-stringify: 5.16.1 - find-my-way: 8.2.0 - light-my-request: 5.13.0 + avvio: 9.0.0 + fast-json-stringify: 6.0.0 + find-my-way: 9.0.1 + light-my-request: 6.0.0 pino: 9.4.0 - process-warning: 3.0.0 + process-warning: 4.0.0 proxy-addr: 2.0.7 rfdc: 1.4.1 secure-json-parse: 2.7.0 @@ -3886,11 +3907,11 @@ snapshots: dependencies: to-regex-range: 5.0.1 - find-my-way@8.2.0: + find-my-way@9.0.1: dependencies: fast-deep-equal: 3.1.3 fast-querystring: 1.1.2 - safe-regex2: 3.1.0 + safe-regex2: 4.0.0 find-up@5.0.0: dependencies: @@ -3976,6 +3997,15 @@ snapshots: package-json-from-dist: 1.0.0 path-scurry: 1.11.1 + glob@11.0.0: + dependencies: + foreground-child: 3.2.1 + jackspeak: 4.0.1 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + globals@14.0.0: {} globals@15.9.0: {} @@ -4073,6 +4103,12 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.1: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + jiti@1.21.6: {} joycon@3.1.1: {} @@ -4132,10 +4168,10 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - light-my-request@5.13.0: + light-my-request@6.0.0: dependencies: cookie: 0.6.0 - process-warning: 3.0.0 + process-warning: 4.0.0 set-cookie-parser: 2.6.0 lilconfig@2.1.0: {} @@ -4180,6 +4216,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.0.1: {} + magic-string@0.30.11: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -4209,6 +4247,10 @@ snapshots: mime@3.0.0: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -4323,6 +4365,11 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-type@4.0.0: {} path-type@5.0.0: {} @@ -4635,8 +4682,6 @@ snapshots: pretty-hrtime@1.0.3: {} - process-warning@3.0.0: {} - process-warning@4.0.0: {} process@0.11.10: {} @@ -4707,7 +4752,7 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - ret@0.4.3: {} + ret@0.5.0: {} reusify@1.0.4: {} @@ -4741,9 +4786,9 @@ snapshots: safe-buffer@5.2.1: {} - safe-regex2@3.1.0: + safe-regex2@4.0.0: dependencies: - ret: 0.4.3 + ret: 0.5.0 safe-stable-stringify@2.4.3: {} @@ -5123,7 +5168,7 @@ snapshots: yocto-queue@0.1.0: {} - zod-to-json-schema@3.23.2(zod@3.23.8): + zod-to-json-schema@3.23.3(zod@3.23.8): dependencies: zod: 3.23.8 diff --git a/src/auth/plugins/sign-out.ts b/src/auth/plugins/sign-out.ts index aa049bf..27478ce 100644 --- a/src/auth/plugins/sign-out.ts +++ b/src/auth/plugins/sign-out.ts @@ -10,7 +10,7 @@ export default fp( return await reply .clearCookie('return_url') .clearCookie('token') - .redirect(302, returnUrl) + .redirect(returnUrl, 302) .send() }) }, diff --git a/src/auth/plugins/steam.ts b/src/auth/plugins/steam.ts index ba5cf4e..f70e82f 100644 --- a/src/auth/plugins/steam.ts +++ b/src/auth/plugins/steam.ts @@ -70,7 +70,7 @@ export default fp( async app => { app.get('/auth/steam', async (_request, reply) => { const url = await getSteamLoginUrl() - return await reply.redirect(302, url) + return await reply.redirect(url, 302) }) app.get('/auth/steam/return', async (request, reply) => { @@ -92,7 +92,7 @@ export default fp( return await reply .clearCookie('return_url') .setCookie('token', token, { maxAge: secondsInWeek, path: '/' }) - .redirect(302, returnUrl) + .redirect(returnUrl, 302) .send() } catch (e) { assertIsError(e) diff --git a/src/main.ts b/src/main.ts index 468999d..e861dfa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,12 +1,12 @@ import fastify from 'fastify' import { serializerCompiler, validatorCompiler } from 'fastify-type-provider-zod' import { resolve } from 'node:path' -import { logger } from './logger' +import { logger as loggerInstance } from './logger' import { environment } from './environment' import { secrets } from './secrets' import { hoursToSeconds } from 'date-fns' -const app = fastify({ logger }) +const app = fastify({ loggerInstance }) app.setSerializerCompiler(serializerCompiler) app.setValidatorCompiler(validatorCompiler)