Swiftpack.co - Package - vapor/service

Github

link
Stars: 51
Help us keep the lights on

Dependencies

Releases

1.0.0 - Apr 3, 2018

📦 Introducing Service, a dependency injection / inversion of control framework.

Getting Started: https://docs.vapor.codes/3.0/service/getting-started/

API Docs: https://api.vapor.codes/service/1.0.0/Service


Changes since 1.0.0-rc.2.2:

New:

  • Cleaned up code, organized files, added many missing API docs. Converted some APIs to internal to reduce API surface.
  • Added ContainerAlias type allows a type to simply be an alias for another container. This allows SubContainer to become more specialized, reducing confusion.

Milestone: 1.0.0

1.0.0-rc.2.2 - Mar 25, 2018

New:

  • Added arguments stored property to Environment. This can be used going forward to get and mutate the command line arguments in a non-static way.

API Docs: https://api.vapor.codes/service/1.0.0-rc.2.2/Service/

Milestone: 1.0.0-rc.2.2

1.0.0-rc.2.1 - Mar 22, 2018

New:

  • Added some convenience methods for working with Extend.

Milestone

1.0.0-rc.2 - Mar 21, 2018

New:

  • Vapor is now running on Swift NIO!
  • Providers now have separate willBoot and didBoot methods. Providers are expected to do as much work as possible in the didBoot method, making it much simpler for other providers to pre-empt that typical work (such as running something before migrations run in Fluent).
  • Provider lifecycle methods now return a Future to ensure proper handling of async work. Note, this does not include the register services method since no async work should be done before there is a container available.

Fixed:

  • Service tags and "needed by/for" have been removed. They were not really useful for anything and unnecessarily complicated the API.

Milestone

1.0.0-rc.1 - Feb 23, 2018