Releases: fastify/fastify
Releases Β· fastify/fastify
v4.19.2
What's Changed
- fix(typescript): route config should not pass url and method by @climba03003 in #4872
- Overload
DecorationMethod
to fix #4870 by @voxpelli in #4874 - fix: Type inference breaking when Reply generic is not passed by @aadito123 in #4875
- fix: regression with close and serverFactory by @mcollina in #4876
Full Changelog: v4.19.1...v4.19.2
v4.19.1
What's Changed
- docs(typescript): fix typo by @jon-codes in #4861
- docs(testing): add plugin testing guide by @Ekott2006 in #4849
- docs: fix platformatic-cloud anchor id by @sher in #4863
- fix: Type narrow fix issue from PR #4823 by @aadito123 in #4869
New Contributors
- @jon-codes made their first contribution in #4861
- @sher made their first contribution in #4863
Full Changelog: v4.19.0...v4.19.1
v4.19.0
What's Changed
- fix: added a check to prevent creation of secondary server when external server is supplied by @aarontravass in #4741
- feat: added originalUrl in request object #4704 by @aarontravass in #4758
- build(deps-dev): Bump markdownlint-cli2 from 0.7.1 to 0.8.1 by @dependabot in #4819
- Add Platformatic to deploy strategies by @mcollina in #4822
- Fixed an error that occurred when sending an empty body as a buffer by @strelov1 in #4797
- docs(ecosystem): add fastify-better-sqlite3 by @punkish in #4812
- fix: correct type definition for genReqId argument by @sergburn in #4784
- fix typo by @is2ei in #4828
- fix: handle undefined req.routeConfig in frameworkErrors by @giuliowaitforitdavide in #4826
- build(deps-dev): Bump @sinonjs/fake-timers from 10.2.0 to 11.0.0 by @dependabot in #4818
- docs(Routes.md): added short description for constraints option by @giuliowaitforitdavide in #4838
- [fix] Tests are failing in Windows due to command line env syntax by @giuliowaitforitdavide in #4845
- fix(#4774): close bindings through the hook system by @metcoder95 in #4776
- Fix/add missing types fastifycontextconfig by @dancastillo in #4850
- Added "Principles" to explain the key technical principles behind Fastify by @mcollina in #4852
- pluginName will be exposed in FastifyInstance by @md-adil in #4848
- fix: pass Fastify request to frameworkErrors and omit logging if disabled by @sergburn in #4825
- docs: Add documentation for zod type provider by @kibertoad in #4456
- docs(ecosystem): add fastify cacheman by @aalfiann in #4851
- build(deps-dev): Bump eslint-plugin-n from 15.7.0 to 16.0.1 by @dependabot in #4857
- fix: return 431 status code on HTTP header overflow error by @nflaig in #4856
- ci: trigger the new website build by @Eomm in #4839
- Do not leak memory if .listen()` is not called by @mcollina in #4860
- Extend
decorate()
etc to enforce defined values by @voxpelli in #4858 - minor jsdoc fixes by @Uzlopak in #4855
- feat: Type narrow on status().send() chains with Reply generics by @aadito123 in #4823
New Contributors
- @aarontravass made their first contribution in #4741
- @strelov1 made their first contribution in #4797
- @punkish made their first contribution in #4812
- @md-adil made their first contribution in #4848
- @aalfiann made their first contribution in #4851
- @nflaig made their first contribution in #4856
- @aadito123 made their first contribution in #4823
Full Changelog: v4.18.0...v4.19.0
v4.18.0
What's Changed
- Update GOVERNANCE.md by @mcollina in #4709
- docs: add fastify-opaque-apake to Ecosystem.md by @cyyynthia in #4712
- ci: only trigger on pushes to main branches by @Fdawgs in #4714
- ci: test using pnpm 8 by @Fdawgs in #4720
- ci(integration): only trigger on pushes to main branches by @Fdawgs in #4721
- Maintain custom response schema by @jaschaephraim in #4718
- build(deps): Bump lycheeverse/lychee-action from 1.6.1 to 1.7.0 by @dependabot in #4723
- docs(readme): move table of contents by @ileighAube in #4722
- Updates to docs and types regarding the
res
serializer by @bienzaaron in #4716 - chore(deps): bump process-warning to ^2.2.0 by @climba03003 in #4726
- build(deps): bump dependencies by @Fdawgs in #4727
- Add mention to default error handler on reply send by @paul-jolimoi in #4713
- chore: fix Reply.md internal link by @climba03003 in #4731
- Chore(Workflow): Update website.yml by @luisorbaiceta in #4736
- feat: add listeningOrigin fastify immutable instance property (#4586) by @zsimo in #4674
- build(deps-dev): Bump @types/node from 18.16.5 to 20.1.0 by @dependabot in #4738
- chore: add test-compare action by @RafaelGSS in #4737
- support send typedarray objects (#4715) by @Ceereals in #4735
- doc: remove RafaelGSS from plugins team by @RafaelGSS in #4746
- Typo correction from extendible to extensible by @devhabib429 in #4745
- Allow lowercase methods when registering routes by @Uzlopak in #4750
- Fix lowercase HTTP methods type by @matthyk in #4757
- Add missing trailer method definitions by @atesgoral in #4759
- fix: benchmark:parser script by @Eomm in #4765
- Remove debug logging for URL rewrite by @brettwillis in #4754
- chore: pin json-schema-to-ts by @Eomm in #4770
- feat: async validation support by @Eomm in #4752
- docs(ecosystem): add fastify-evervault plugin by @Briscoooe in #4771
- revert: hotfix dev dep by @Eomm in #4775
- docs(request): fix typo in compileValidationSchema function name by @giuliowaitforitdavide in #4780
- Rename types/tsconfig.json to types/tsconfig.eslint.json to avoid hoisting by vscode by @nopeless in #4773
- build(deps): Bump lycheeverse/lychee-action from 1.7.0 to 1.8.0 by @dependabot in #4779
- fix: update removeHeader type to be FastifyReply by @dancastillo in #4781
- Making Vercel Serverless docs easier to use by @Ekott2006 in #4793
- ci: ignore node-14 on windows by @Eomm in #4800
- body reader to use statusCode from stream error, if available (#4785) by @sergburn in #4787
- workflow(benchmark): update node version by @RafaelGSS in #4786
- add sync-next workflow by @Uzlopak in #4801
- remove double validation of onReady-hook by @Uzlopak in #4799
- ci(ci): replace node 19 with node 20 in test matrices by @Fdawgs in #4691
- Fix broken CI by @mcollina in #4809
- reset listening state for each secondary server by @cjihrig in #4810
New Contributors
- @jaschaephraim made their first contribution in #4718
- @ileighAube made their first contribution in #4722
- @bienzaaron made their first contribution in #4716
- @paul-jolimoi made their first contribution in #4713
- @zsimo made their first contribution in #4674
- @Ceereals made their first contribution in #4735
- @devhabib429 made their first contribution in #4745
- @atesgoral made their first contribution in #4759
- @brettwillis made their first contribution in #4754
- @Briscoooe made their first contribution in #4771
- @giuliowaitforitdavide made their first contribution in #4780
- @nopeless made their first contribution in #4773
- @Ekott2006 made their first contribution in #4793
- @sergburn made their first contribution in #4787
- @cjihrig made their first contribution in #4810
Full Changelog: v4.17.0...v4.18.0
v4.17.0
What's Changed
- Add codes to framework errors that lack one by @lilsweetcaligula in #4632
- fix: revert changes made to route hook types by @vidarc in #4708
New Contributors
- @lilsweetcaligula made their first contribution in #4632
- @vidarc made their first contribution in #4708
Full Changelog: 4.16.3...4.17.0
v4.16.3
Full Changelog: 4.16.2...4.16.3
v4.16.2
Full Changelog: 4.16.1...4.16.2
v4.16.1
Full Changelog: 4.16.0...4.16.1
v4.16.0
What's Changed
- docs: spelling, punctuation & grammar minor nits by @shusak in #4642
- docs(mongodb): update to mongodb 5 by @pip77 in #4646
- Install pnpm version 7 to support Node.js 14 in CI by @Yvad60 in #4645
- build(deps-dev): Bump typescript from 4.9.5 to 5.0.3 by @dependabot in #4658
- build(deps-dev): Bump @sinclair/typebox from 0.25.24 to 0.26.8 by @dependabot in #4660
- Add
fastify-koa
plugin by @rozzilla in #4654 - Prevent labeler from removing existing labels by @luisorbaiceta in #4662
- Emit a warning when validating undefined schemas by @franher in #4647
- chore(ecosystem): rename to fastify-orama plugin by @mateonunez in #4667
- Add workflow for benchmarking POST with custom parsers by @kibertoad in #4669
- chore: add
github actions
label automatically by @Eomm in #4664 - Adds async hooks signature on route level by @JbIPS in #4655
- chore(docs): update from cobraz to simenandre by @simenandre in #4671
- Documentation: link from Hooks onRoute to routeOptions definition by @cvuorinen in #4678
- docs: incorrect example for 'onRequestAbort' hook by @TimShilov in #4679
- doc: add fastify-type-provider-effect-schema by @NexZhu in #4683
- doc: update prototype poisoning by @AliakbarETH in #4651
- docs: add optional URL param to upgrade guide and route docs (#4637) by @mateus4k in #4680
- build(deps-dev): Bump markdownlint-cli2 from 0.6.0 to 0.7.0 by @dependabot in #4695
- Add fastify-redis-session plugin by @mohammadraufzahed in #4656
- test: refactor logger test by @climba03003 in #4648
- chore: fix badge link by @Eomm in #4699
- docs: add fastify-log-controller to ecosystem by @Eomm in #4696
- build(deps-dev): Bump tsd from 0.26.1 to 0.28.1 by @dependabot in #4659
- build(deps-dev): Bump @sinclair/typebox from 0.26.8 to 0.28.6 by @dependabot in #4700
- use Object.prototype.hasOwnProperty in compileSchemasForValidation by @Uzlopak in #4692
- Implement support for passing custom text resolution for starting log⦠by @kibertoad in #4698
- refactor: export FastifyBaseLogger as interface instead of type alias by @tzafrirben in #4681
- build(deps): Bump tiny-lru from 10.4.1 to 11.0.1 by @dependabot in #4694
- Added preClose hook by @mcollina in #4697
New Contributors
- @shusak made their first contribution in #4642
- @pip77 made their first contribution in #4646
- @Yvad60 made their first contribution in #4645
- @rozzilla made their first contribution in #4654
- @franher made their first contribution in #4647
- @JbIPS made their first contribution in #4655
- @cvuorinen made their first contribution in #4678
- @TimShilov made their first contribution in #4679
- @NexZhu made their first contribution in #4683
- @AliakbarETH made their first contribution in #4651
- @mateus4k made their first contribution in #4680
- @mohammadraufzahed made their first contribution in #4656
- @tzafrirben made their first contribution in #4681
Full Changelog: v4.15.0...4.16.0
v4.15.0
What's Changed
- build(deps-dev): bump tsd from 0.25.0 to 0.26.0 by @dependabot in #4614
- feat: use internal trees for prettyPrint by @ivan-tymoshenko in #4618
- docs: add metcoder95 as collaborator by @metcoder95 in #4622
- build(deps): bump lycheeverse/lychee-action from 1.5.4 to 1.6.1 by @dependabot in #4603
- Logger validator throws by @victortosts in #4520
- feat: expose prettyPrint method param by @ivan-tymoshenko in #4623
- ensure that generated validators are up to date by @Uzlopak in #4508
- fix: check if validation schema is undefined by @Eomm in #4620
- fix: content-type mis-handling for invalid non-essence content-type by @climba03003 in #4509
- Bump version of fast-json-stringify-compiler by @Uzlopak in #4630
- fix: avoid invoking onError hook when aborted handler resolves by @meyfa in #4631
New Contributors
- @victortosts made their first contribution in #4520
- @meyfa made their first contribution in #4631
Full Changelog: v4.14.1...v4.15.0