Swiftpack.co - Package - vapor/routing-kit

Github

link
Stars: 59

Dependencies

Used By

Total: 0

Releases

Add access to components matched by catchall ('**') - 2020-04-21 13:41:33

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 - 2020-04-21 13:31:59

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 - 2020-04-16 14:35:26

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 - 2020-03-26 19:44:36

Docs: https://docs.vapor.codes/4.0/routing/

More information on Vapor 4 official release: https://forums.swift.org/t/vapor-4-official-release-begins/34802

Release Candidate 1 - 2020-03-01 17:06:52

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.

Adds pathComponents property to the String - 2020-02-27 18:05:01

Adds pathComponents property to the String in order to convert a string into [PathComponent].

This patch was authored by @emarashliev and released by @tanner0101.

RoutingKit 4.0.0 Beta 3 - 2019-12-14 03:32:49

  • Removes Route (#82)
  • Router updated to accept Output directly (#82)

RoutingKit 4.0.0 Beta 2 - 2019-12-09 15:14:15

  • Fixes an issue where .catchall would not work correctly if the router travelled to additional nodes beyond the catch all node. (#75)

  • Enabled test discovery on Linux. (#81)

Add Parameter conformance to RawRepresentable enums - 2019-08-29 21:36:01

In this release: #77 from @JaapWijnen

RoutingKit 4.0.0 Alpha 1 - 2019-05-29 18:38:54

More information on Vapor 4 alpha releases:

https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a

API Docs:

https://api.vapor.codes/routing-kit/master/RoutingKit/index.html

Routing 3.0.2 - 2019-02-22 23:20:03

Fixed:

  • TrieRouter now percent-decodes dynamic parameters. (#65, #64)

Routing 3.0.1 - 2018-04-25 23:16:00

Fixed:

  • Confusion between "any parameter" and "catch all" created in the previous has been resolved (#41).
// matches /version/:/info
router.get("version", any, "info") { ... }

// matches /users/*
router.get("users", all) { ... }

any: matches and discards any 1 path component. all: matches and discards any 0 or more path components; should be placed at the end of the path.

Milestone: 3.0.1

Routing 3.0.0 - 2018-04-20 02:22:28

Routing 3.0 is here! 🎉 🚍 High-performance trie-node router.

Docs: https://docs.vapor.codes/3.0/routing/getting-started/

API Docs: https://api.vapor.codes/routing/latest/Routing/


Changes since last RC

New:

  • Cleaned up internal APIs and added doc blocks!
  • TrieRouter and nodes are now a lot simpler.
  • New RoutablePath protocol for future performance optimizations for routing.

Milestone: 3.0.0

Routing 3.0.0 RC 2 - 2018-03-21 21:01:43

New:

  • Vapor is now running on Swift NIO!
  • Cleaned up PathComponent and DynamicPathComponent to make routing phases more clear.
  • Routing errors should now provide human-readable descriptions.

Milestone

Routing 3.0.0 RC 1 - 2018-02-23 05:07:16

Routing 2.2.1 - 2017-12-21 01:28:28

Fixed:

  • Remove Swift warnings.

Milestone

Routing 2.2.0 - 2017-10-04 17:07:06

New:

  • You can now flush the internal route cache.

Milestone

Routing 2.1.0 - 2017-08-10 17:17:42

New:

  • Swift 4 support.

Milestone

Routing 2.0.1 - 2017-07-19 20:13:36

Fixed:

  • Sync access to route cache dictionary.

Milestone

Routing 2.0 - 2017-05-17 16:44:53

🎉

Routing 2.0 has been greatly simplified and more focused on being a great HTTP router for Vapor. We've reduced and clarified some generics and made it easier to add extensible functionality via our performant branch architecture.

Check out the full diff here

Routing 2.0 Beta 4 - 2017-05-09 14:40:48

New:

  • Alternative type safe pattern

#19

Routing 2.0 Beta 3 - 2017-05-01 17:00:51

New:

  • Added static route caching

Routing 2.0 Beta 2 - 2017-04-05 13:20:05

Fixed:

  • Remove StringInitializable

Routing 2.0 Beta 1 - 2017-03-27 15:11:24

Beta Candidate

Routing 2.0 Alpha 8 - 2017-03-18 18:00:16

Fixed:

  • URI.host -> URI.hostname

Routing 2.0 Alpha 7 - 2017-03-17 17:54:35

New:

  • Updating percent encoding -- foundation

#10

Routing 2.0 Alpha 6 - 2017-03-17 12:03:01

Fixed:

  • percent decoding fix

Routing 2.0 Alpha 5 - 2017-03-08 00:22:28

Fixed:

  • unnecessary force unwrap

Routing 2.0 Alpha 4 - 2017-03-07 21:55:37

New:

  • Options support

#8

Routing 2.0 Alpha 3 - 2017-03-07 15:49:31

New:

  • Completely redesigned underlying architecture to be more straightforward
  • More HTTP specific code is less flexible, but better designed to its task

#7