This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
Releases: vapor/service
Releases · vapor/service
Service 1.0.2
Fixed:
- Silenced a Swift 5 warning. (#38)
Service 1.0.1
Fixed:
ServiceType.makeService(_:)
's internal variable was renamed tocontainer
. (#27)
Service 1.0.0
📦 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 allowsSubContainer
to become more specialized, reducing confusion.
Milestone:
1.0.0
Service 1.0.0 RC 2.2
New:
- Added
arguments
stored property toEnvironment
. 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
Service 1.0.0 RC 2.1
Service 1.0.0 RC 2
New:
- Vapor is now running on Swift NIO!
- Providers now have separate
willBoot
anddidBoot
methods. Providers are expected to do as much work as possible in thedidBoot
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.
Service 1.0.0 RC 1
Merge pull request #1 from vapor/beta service beta
Service 1.0.0 Beta 2
New:
- Removed
isSingleton: Bool
option from all service types. Allclass
services will now be singletons. ServiceType
now includes conformance toService
- Better error messages
Service 1.0.0 Beta 1.1
1.0.0-beta.1.1 prerelease semver updates
Service 1.0.0 Beta 1
1.0.0-beta.1 3.0 dep