Swiftpack.co - Package - vapor/routing-kit

Github

link
Stars: 52

Dependencies

Releases

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

Routing 2.0 Alpha 2 - 2017-03-06 13:02:05

New:

  • Multi slug routes

#5

Routing 1.1.0 - 2017-03-06 12:28:27

New:

  • Multiple independent slug routes are now supported

Now: /foo/:a/bar and foo/:b/alt will both work.

-- note /:slug/foo and /:diff/foo are still considered the same route since there's no way to disambiguate

#6

Routing 2.0 Alpha 1 - 2017-02-16 11:45:54

New:

  • Deps

#4

Routing 1.0.2 - 2017-02-14 17:10:19

New:

  • Log routes w/ router.routes

Routing 1.0.1 - 2016-10-28 14:40:08

New:

  • Helper warnings for diagnosing shared slug routes.