| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor!: remove FSTDEP024 deprecation (#6912) Remove the deprecated top-level requestIdLogLabel option. Configure the request ID log label through LogController instead. BREAKING CHANGE: requestIdLogLabel is no longer supported as a top-level Fastify option. Pass it to LogController and provide the instance through logController. | 1 个月前 | |
fix: reset lastIndex before testing global/sticky content-type RegExp parsers (#6846) A content-type parser registered with a g- or y-flagged RegExp keeps a mutable lastIndex between calls, so getParser's .test() could skip part of the next content type and match inconsistently. Reset lastIndex before each test. | 1 个月前 | |
fix(content-type): return undefined for invalid media types (#6942) | 1 个月前 | |
feat: introduce log controller layer (#6580) | 2 个月前 | |
fix: recognize constructor-assigned built-in properties as decorator dependencies (#6892) | 1 个月前 | |
feat: introduce log controller layer (#6580) | 2 个月前 | |
Bumped v5.9.0 | 2 个月前 | |
fix: set status code before publishing diagnostics error channel (#6412) | 9 个月前 | |
refactor!: remove FSTDEP025 (#6909) * refactor!: enforce explicit HTTP method overrides Remove FSTDEP025 and throw FST_ERR_ROUTE_METHOD_ALREADY_SUPPORTED when addHttpMethod attempts to override a supported method without overrideExisting. BREAKING CHANGE: addHttpMethod now requires overrideExisting: true when overriding an existing HTTP method. * docs: add pr link docs/Reference/Errors.md Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com> Signed-off-by: Jean Michelet <110341611+jean-michelet@users.noreply.github.com> --------- Signed-off-by: Jean Michelet <110341611+jean-michelet@users.noreply.github.com> Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com> | 1 个月前 | |
fix: callNotFound should run not-found preHandler regardless of registration order (#6965) setContext() in four-oh-four.js takes a detached shallow snapshot of the selected not-found context. When a route that calls reply.callNotFound() is registered before setNotFoundHandler(), the snapshot is taken before the not-found handler's preReady callback populates its lifecycle hooks, so the copied context retains preHandler: null. reply.callNotFound() then dispatches the not-found handler directly, skipping the preHandler that setNotFoundHandler() declares. This change uses the selected context as the prototype of the route-specific 404 context instead of copying it, keeping the route's own onSend value, so the route-specific context stays linked to the live one and later hook population is visible. Adds a regression test covering the route-first declaration order. --------- Co-authored-by: mcollina <mcollina@users.noreply.github.com> | 28 天前 | |
feat: rfc10008 http query method (#6832) | 2 个月前 | |
fix: handle web stream payload in HEAD route (#6372) * fix: handle web stream in HEAD route * test: add web stream test for HEAD route * test: add web stream cancel error test for HEAD route * feat: provide reason for stream cancellation in HEAD route --------- Co-authored-by: Jean <110341611+jean-michelet@users.noreply.github.com> | 10 个月前 | |
fix: uncatchable throws in writeHead when using async hook (#6881) | 1 个月前 | |
refactor: rename source file names with kebab-case (#6331) | 11 个月前 | |
refactor!: remove FSTDEP024 deprecation (#6912) Remove the deprecated top-level requestIdLogLabel option. Configure the request ID log label through LogController instead. BREAKING CHANGE: requestIdLogLabel is no longer supported as a top-level Fastify option. Pass it to LogController and provide the instance through logController. | 1 个月前 | |
refactor!: remove FSTDEP024 deprecation (#6912) Remove the deprecated top-level requestIdLogLabel option. Configure the request ID log label through LogController instead. BREAKING CHANGE: requestIdLogLabel is no longer supported as a top-level Fastify option. Pass it to LogController and provide the instance through logController. | 1 个月前 | |
chore: no-comma-dangle lint rule (#6069) | 1 年前 | |
Add keep-alive connection tracking and reaping (#3619) | 4 年前 | |
fix: avoid double slash when joining nested prefixes (#6803) | 2 个月前 | |
fix: replace AssertionError with FST_ERR_PLUGIN_DEPENDENCY_NOT_REGISTERED in checkDependencies (#6774) | 3 个月前 | |
feat: add `Reply.prototype.mediaType` (#6932) * feat: add `Reply.prototype.mediaType` Signed-off-by: LiviaMedeiros <livia@cirno.name> * additional test Signed-off-by: Livia Medeiros <livia@cirno.name> --------- Signed-off-by: LiviaMedeiros <livia@cirno.name> Signed-off-by: Livia Medeiros <livia@cirno.name> | 1 个月前 | |
perf: reduce per-request overhead in the request lifecycle (#6831) * perf: reduce per-request overhead in the request lifecycle Improve the "simple" benchmark throughput by ~4% by cutting per-request work: - reply: call res.end(payload) directly when there are no trailers, so headers, payload and the finishing chunk are flushed through the stream machinery in a single corked write - validation: skip validate() entirely when the route has no params/body/querystring/headers schemas - route: skip child logger creation when logging is disabled and the default child logger factory is in use, as the null logger's child() returns itself - req-id-gen: read kGenReqId directly instead of going through the genReqId getter - logger: use performance.now() instead of process.hrtime(), which allocates a tuple on every call Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y1SqgPEDo1gytPt3KB7czh * test: cover the genReqId getter The getter is no longer exercised by the request path, which reads the symbol directly, so cover it explicitly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y1SqgPEDo1gytPt3KB7czh --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Manuel Spigolon <manuel.spigolon@nearform.com> | 2 个月前 | |
fix: disable numeric trustProxy hop-count trust | 1 个月前 | |
Fix prefix route options url (#6719) Co-authored-by: Jean Michelet <110341611+jean-michelet@users.noreply.github.com> | 1 个月前 | |
fix: correct isCustomSerializerCompiler flag check (#6657) The isCustomSerializerCompiler flag was incorrectly checking opts.compilersFactory.buildValidator instead of opts.compilersFactory.buildSerializer, causing the flag to mirror isCustomValidatorCompiler rather than reflecting whether a custom serializer compiler was actually provided. Fixes: #6652 | 4 个月前 | |
perf: reuse cached content types for response serialization (#6854) Signed-off-by: Gürgün Dayıoğlu <hey@gurgun.day> | 2 个月前 | |
refactor!: remove Promise.withResolvers ponyfill (#6910) Use the native Promise.withResolvers implementation now that Node.js 24 is the minimum supported runtime. | 1 个月前 | |
feat: introduce log controller layer (#6580) | 2 个月前 | |
fix(validation): preserve coerced root values | 1 个月前 | |
refactor!: remove FSTDEP025 (#6909) * refactor!: enforce explicit HTTP method overrides Remove FSTDEP025 and throw FST_ERR_ROUTE_METHOD_ALREADY_SUPPORTED when addHttpMethod attempts to override a supported method without overrideExisting. BREAKING CHANGE: addHttpMethod now requires overrideExisting: true when overriding an existing HTTP method. * docs: add pr link docs/Reference/Errors.md Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com> Signed-off-by: Jean Michelet <110341611+jean-michelet@users.noreply.github.com> --------- Signed-off-by: Jean Michelet <110341611+jean-michelet@users.noreply.github.com> Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com> | 1 个月前 | |
fix: set status code before publishing diagnostics error channel (#6412) | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 9 个月前 | ||
| 1 个月前 | ||
| 28 天前 | ||
| 2 个月前 | ||
| 10 个月前 | ||
| 1 个月前 | ||
| 11 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 9 个月前 |