Skip to content

Releases: vapor/routing-kit

Update Supported Swift Versions

16 May 07:43
e229a7a
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

This removes support for Swift 5.2 and Swift 5.3, making Swift 5.4 the earliest supported version as
announced

Clarify "same route with different parameter names" error message

04 Dec 20:39
5603b81
Compare
Choose a tag to compare
This patch was authored and released by @gwynne.

An attempt to improve the error message for this unusual case.

Also ensures the error appears in release builds.

Add `AnyRouter` type-eraser

11 May 15:10
a0801a3
Compare
Choose a tag to compare
This patch was authored by @maciesielka and released by @0xTim.

Adds AnyRouter type-eraser for storing arbitrary routing strategy over a type controlled by Vapor within its DefaultResponder

Treat `.anything` and `.parameter` as part of the same node in `TrieRouter`

09 Apr 10:01
dab93b6
Compare
Choose a tag to compare
This patch was authored by @maciesielka and released by @0xTim.

Treat named parameters (:name) and anything (*) components as the same node of the TrieRouter (#108)

Resolves #91

Add support for string interpolation to PathComponent

16 Jul 17:46
4cf052b
Compare
Choose a tag to compare
This patch was authored by @dimitribouniol and released by @tanner0101.

Enables call sites that use PathComponents to allow for string literals that make use of interpolation (#101).

In Vapor, this enables constants and other variables to be used in routes:

let api = app.grouped("version-\(Constants.apiVersion)")

Add access to components matched by catchall ('**')

21 Apr 13:41
e7f2d5b
Compare
Choose a tag to compare
This patch was authored and released by @stevapple.

Allows using Parameters.getCatchall() to get the components matched by catchall (**) (#94).

Fix String description of the router and add tests

21 Apr 13:31
60c2a16
Compare
Choose a tag to compare
This patch was authored and released by @stevapple.

Fixes TrieRouter.Node.description (#93):

  • To match PathComponent's stringLiteral expression,
  • To match the routing strategy of TrieRouter,

And adds tests for descriptions (#93).

Require catchall ('**') appears at end of path

16 Apr 14:35
ee590c4
Compare
Choose a tag to compare
This patch was authored by @stevapple and released by @tanner0101.

Adds a precondition requiring that the catchall path component (**) only appear as the last component in a path (#95).

RoutingKit 4.0.0

26 Mar 19:44
35da702
Compare
Choose a tag to compare

Release Candidate 1

01 Mar 17:06
dbc3eaf
Compare
Choose a tag to compare
Release Candidate 1 Pre-release
Pre-release

Updates to Swift 5.2 and macOS 10.15. Adds additional CI + README updates.

Release candidates represent the final shift toward focusing on bug fixes and documentation. Breaking changes will only be accepted for critical issues. We expect a final release of this package shortly after Swift 5.2's release date.