Skip to content

Commit

Permalink
chore(deps): update dependency vapor/vapor to v4.108.0 (#1404)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [vapor/vapor](https://redirect.github.com/vapor/vapor) | minor |
`4.107.0` -> `4.108.0` |

---

### Release Notes

<details>
<summary>vapor/vapor (vapor/vapor)</summary>

###
[`v4.108.0`](https://redirect.github.com/vapor/vapor/releases/tag/4.108.0):
- Make Services in Vapor Usable

[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.107.0...4.108.0)

#### What's Changed

Make Services in Vapor Usable by
[@&#8203;0xTim](https://redirect.github.com/0xTim) in
[#&#8203;2901](https://redirect.github.com/vapor/vapor/issues/2901)

> This adds real support to Vapor to make it easy to integrate different
services that can be tested.
>
> For example, if you have a service defined as:
>
> ```swift
> protocol MyService {
>     func `for`(_ request: Request) -> MyService
>     func doSomething() -> String
> }
> ```
>
> You may then have a real implementation:
>
> ```swift
> import Vapor
>
> struct MyRealService: MyService {
>     let logger: Logger
>     let eventLoop: EventLoop
>     
>     func `for`(_ request: Vapor.Request) -> MyService {
> return MyRealService(logger: request.logger, eventLoop:
request.eventLoop)
>     }
>     
>     func doSomething() -> String {
>         return "Tada"
>     }
>     
> }
> ```
>
> This is a very contrived example, but shows a service that needs a
`Logger` and `EventLoop` - things that are normally tied to specific
requests. Doing this in a safe and testable way involves a lot of
boilerplate. This moves the boilerplate into Vapor to make it easier to
do.
>
> ```swift
> extension Application.Services {
>     var myService: Application.Service<MyService> {
>         .init(app…
> ```
>
> …

#### Reviewers

Thanks to the reviewers for their help:

-   [@&#8203;Joannis](https://redirect.github.com/Joannis)
-   [@&#8203;dimitribouniol](https://redirect.github.com/dimitribouniol)
-   [@&#8203;Andrewangeta](https://redirect.github.com/Andrewangeta)

###### *This patch was released by
[@&#8203;0xTim](https://redirect.github.com/0xTim)*

**Full Changelog**:
vapor/vapor@4.107.0...4.108.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45NC4xIiwidXBkYXRlZEluVmVyIjoiMzguOTQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: cgrindel-self-hosted-renovate[bot] <139595543+cgrindel-self-hosted-renovate[bot]@users.noreply.github.com>
Co-authored-by: Chuck Grindel <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent e6805a2 commit 1a231e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vapor_example/swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription
let package = Package(
name: "vapor_example",
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", exact: "4.107.0"),
.package(url: "https://github.com/vapor/vapor.git", exact: "4.108.0"),
.package(url: "https://github.com/vapor/fluent.git", exact: "4.12.0"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", exact: "4.8.0"),
]
Expand Down

0 comments on commit 1a231e7

Please sign in to comment.