Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 5, 2026

This PR contains the following updates:

Package Update Change
vapor/vapor minor from: "4.120.0"from: "4.121.0"

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

vapor/vapor (vapor/vapor)

v4.121.0: - The RouteNotFound that is used when the router finds nothing is now public

Compare Source

What's Changed

The RouteNotFound that is used when the router finds nothing is now public by @​fizker in #​3326

When no routes match the current request, DefaultResponder throws the RouteNotFound error.

This PR makes that error public, allowing any middleware to handle that specific scenario.

Unlike the CatchAll route **, a middleware catching the RouteNotFound works across all HTTP methods automatically.

This would be used in a middleware like so:

public struct CatchAllMiddleware: AsyncMiddleware {
    public func respond(to request: Request, chainingTo next: any AsyncResponder) async throws -> Response {
        do {
            return try await next.respond(to: request)
        } catch is RouteNotFound {
            // No route was found, so this would normally result in a 404. 
            // We can now handle this like any other request.
            // Or we can make treat it like an ErrorMiddleware where we 
            // log purposeful 404s different than `RouteNotFound` 404s.
            ...
        }
    }
}
This patch was released by @​0xTim

Full Changelog: vapor/vapor@4.120.0...4.121.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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. View the repository job log.

@renovate renovate bot merged commit 945d258 into main Jan 5, 2026
3 checks passed
@renovate renovate bot deleted the renovate/vapor-vapor-4.x branch January 5, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant