Skip to content

1.3.0 — NamedPipeline

Choose a tag to compare

@Maartz Maartz released this 02 Apr 15:18
· 21 commits to main since this release

What's New

Added

  • NamedPipeline (Spec 29) — reusable, named middleware pipeline that can be declared once and applied to multiple routes or scopes. Conforms to Sendable and ModulePlug, works with @PlugPipeline result builder, and integrates via new scope(_:through:) overload accepting NamedPipeline. Supports conditionals, loops, halt propagation, and nested scope composition.
let apiPipeline = NamedPipeline {
    requestId()
    auth
}

let router = Router {
    scope("/api", through: apiPipeline) {
        GET("/users") { conn in ... }
    }
}

CI

  • Upgraded to Swift 6.3 toolchain across all CI jobs.

Full Changelog: 1.2.0...1.3.0