Fastro v1.1.0: Architectural Refinements & 100% Coverage
Following the successful launch of v1.0.0, we are excited to announce Fastro v1.1.0. This release focuses on internal architectural refinements that further push the boundaries of performance and reliability, ensuring Fastro remains the fastest or near-native framework for Deno.
🚀 Optimized Middleware Engine
Middlewares are the backbone of any web application, but they often come with a performance cost. In v1.1.0, we've overhauled how Fastro handles them:
1. Pre-built Middleware Chains
Historically, frameworks often compute the middleware stack per request. In v1.1.0, Fastro pre-builds combined middleware chains (Global + Route-specific) once at serve() time. This eliminates array spreads and concatenation overhead during the critical request path.
2. Unified Cache Fast-path
We've eliminated the "double-dispatch" overhead. Previously, requests with global middlewares had to bypass certain cache optimizations. Now, our Unified Cache Fast-path allows every cached route to execute its entire pre-built chain in a single, highly-optimized dispatch cycle. This significantly improves performance for applications with heavy global middleware usage.
3. V8 JIT Optimized Dispatch
Through rigorous micro-benchmarking, we've refined our internal applyMiddlewares engine. By leveraging tiered inlining for common scenarios (1-2 middlewares) and an optimized recursive loop for larger stacks, we ensure that the V8 JIT compiler can generate the most efficient machine code for your request lifecycle.
🛡️ Rock-Solid: 100% Comprehensive Coverage
Reliability is not optional. While v1.0.0 boasted high coverage, v1.1.0 marks a milestone: 100% Branch and Line coverage across the entire project codebase.
Every single edge case, from complex URL pattern matching to recursive promise resolutions in handlers, is now verified by our test suite. When you build on Fastro, you are building on a foundation where every line of code has been proven to work.
🏁 Performance Results
Our latest benchmarks confirm that these architectural changes pay off. Fastro continues to reach 100%+ of native Deno throughput in several scenarios, thanks to our intelligent caching and lazy parsing strategies.
| Scenario | % of Native |
|---|---|
| Root | 100.42% |
| Query Params | 111.73% |
| Middleware | 93.37% |
Note: Results may vary based on environment. See BENCHMARK.md for details.
How to Update
Update your imports to the latest version:
import Fastro from "https://deno.land/x/fastro@v1.1.1/mod.ts";Or update your deno.json if you are using import maps.
Thank you for your continued support!