Commit 16de4ad
chore(deps): update dependency vapor/vapor to v4.105.2 (#1235)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [vapor/vapor](https://redirect.github.com/vapor/vapor) | minor |
`4.102.1` -> `4.105.2` |
---
### Release Notes
<details>
<summary>vapor/vapor (vapor/vapor)</summary>
###
[`v4.105.2`](https://redirect.github.com/vapor/vapor/releases/tag/4.105.2):
- Raise error when the data expected an array but not parsed as array
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.105.1...4.105.2)
#### What's Changed
Raise error when the data expected an array but not parsed as array by
[@​sidepelican](https://redirect.github.com/sidepelican) in
[#​3222](https://redirect.github.com/vapor/vapor/issues/3222)
> `URLEncodedFormDecoder` fails silently without throwing an error when
attempting to decode data in the following pattern:
`array[0]=0&array[1]=1&array[3]=3`. Now it is decoded as an empty array.
> Typically, a decoder throws an error when data cannot be parsed as the
expected structure, so I propose modifying the decoder to throw an error
in this case as well.
#### Reviewers
Thanks to the reviewers for their help:
-
[@​Naveen-C-Ramachandrappa](https://redirect.github.com/Naveen-C-Ramachandrappa)
- [@​ptoffy](https://redirect.github.com/ptoffy)
###### *This patch was released by
[@​ptoffy](https://redirect.github.com/ptoffy)*
**Full Changelog**:
vapor/vapor@4.105.1...4.105.2
###
[`v4.105.1`](https://redirect.github.com/vapor/vapor/releases/tag/4.105.1):
- Throw an error if unkeyed container is at end
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.105.0...4.105.1)
#### What's Changed
Throw an error if unkeyed container is at end by
[@​supersonicbyte](https://redirect.github.com/supersonicbyte) in
[#​3226](https://redirect.github.com/vapor/vapor/issues/3226)
> Throwing an error if the unkeyed container is at end while decoding
query params fixes the crash mentioned with this issue:
>
[vapor/vapor#3217](https://redirect.github.com/vapor/vapor/issues/3217)
>
> The error being thrown is `DecodingError.valueNotFound` and it’s
matching the error thrown by `JSONDecoder`.
#### New Contributor
- [@​supersonicbyte](https://redirect.github.com/supersonicbyte)
made their first contribution in
[#​3226](https://redirect.github.com/vapor/vapor/issues/3226) 🎉
#### Reviewers
Thanks to the reviewers for their help:
- [@​ptoffy](https://redirect.github.com/ptoffy)
-
[@​Naveen-C-Ramachandrappa](https://redirect.github.com/Naveen-C-Ramachandrappa)
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.105.0...4.105.1
###
[`v4.105.0`](https://redirect.github.com/vapor/vapor/releases/tag/4.105.0):
- Support Swift 6
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.104.0...4.105.0)
#### What's Changed
Support Swift 6 by [@​0xTim](https://redirect.github.com/0xTim) in
[#​3225](https://redirect.github.com/vapor/vapor/issues/3225)
> - Drop support for Swift 5.7
> - Fix warnings in Vapor with latest Swift 6 changes
> - Fix tests on Linux nightlies
#### Reviewers
Thanks to the reviewers for their help:
- [@​dimitribouniol](https://redirect.github.com/dimitribouniol)
- [@​ptoffy](https://redirect.github.com/ptoffy)
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.104.0...4.105.0
###
[`v4.104.0`](https://redirect.github.com/vapor/vapor/releases/tag/4.104.0):
- Conditional Content Response Compression
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.103.2...4.104.0)
#### What's Changed
Conditional Content Response Compression by
[@​dimitribouniol](https://redirect.github.com/dimitribouniol) in
[#​3215](https://redirect.github.com/vapor/vapor/issues/3215)
> Added support for conditionally compressing responses based on content
type or marker headers. This is necessary because some resource types,
such as images, don’t compress much, and end up maxing out CPU time on
the thread and sometimes block the entire channel while they compress.
This results in pipelined resources taking a long time to load even on
fast connections.
>
> This change comes with three knobs to control this:
>
> - A global disabled/enabled by default state for the entire server.
> - Allow and disallow lists of content types for automatic
configurations.
> - A marker header for explicitly configuring certain requests or
routes to compress or not.
>
> Notably, since the response compression handler now takes a predicate,
it is always installed, and the predicate statelessly determines if a
response should be compressed based on the server configuration:
>
> - If a response compression configuration was never set, this
continues to be a no-op and no compression will occur, though routes can
now explicitly enable it as needed.
> …
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.103.2...4.104.0
###
[`v4.103.2`](https://redirect.github.com/vapor/vapor/releases/tag/4.103.2):
- Use Configured JSONEncoder in ErrorMiddleware
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.103.1...4.103.2)
#### What's Changed
Use Configured JSONEncoder in ErrorMiddleware by
[@​0xTim](https://redirect.github.com/0xTim) in
[#​3224](https://redirect.github.com/vapor/vapor/issues/3224)
> Use the prescribed content encoder for the body of `ErrorMiddleware`
instead of a contained `JSONEncoder` that can’t be overridden.
>
> You can set the encoder with
>
> ```swift
> ContentConfiguration.global.use(encoder: myCustomEncoder, for: .json)
> ```
>
> Resolves
[#​3218](https://redirect.github.com/vapor/vapor/issues/3218)
#### Reviewers
Thanks to the reviewers for their help:
- [@​dimitribouniol](https://redirect.github.com/dimitribouniol)
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.103.1...4.103.2
###
[`v4.103.1`](https://redirect.github.com/vapor/vapor/releases/tag/4.103.1):
- fix: support capital letters in the domain part of email validation
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.103.0...4.103.1)
#### What's Changed
fix: support capital letters in the domain part of email validation by
[@​Austinpayne](https://redirect.github.com/Austinpayne) in
[#​3211](https://redirect.github.com/vapor/vapor/issues/3211)
> Fixes
[#​2889](https://redirect.github.com/vapor/vapor/issues/2889)
#### New Contributor
- [@​Austinpayne](https://redirect.github.com/Austinpayne) made
their first contribution in
[#​3211](https://redirect.github.com/vapor/vapor/issues/3211) 🎉
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.103.0...4.103.1
###
[`v4.103.0`](https://redirect.github.com/vapor/vapor/releases/tag/4.103.0):
- HTTPHeaders.LastModified Public Initializer
[Compare
Source](https://redirect.github.com/vapor/vapor/compare/4.102.1...4.103.0)
#### What's Changed
HTTPHeaders.LastModified Public Initializer by
[@​dimitribouniol](https://redirect.github.com/dimitribouniol) in
[#​3216](https://redirect.github.com/vapor/vapor/issues/3216)
> Added a public initializer for `HTTPHeaders.LastModified`, and updated
the value property to be readwrite, which would prevent needing to roll
your own formatter and header access in application code.
###### *This patch was released by
[@​0xTim](https://redirect.github.com/0xTim)*
**Full Changelog**:
vapor/vapor@4.102.1...4.103.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:eyJjcmVhdGVkSW5WZXIiOiIzOC44Mi4wIiwidXBkYXRlZEluVmVyIjoiMzguODIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: cgrindel-self-hosted-renovate[bot] <139595543+cgrindel-self-hosted-renovate[bot]@users.noreply.github.com>1 parent b5d364d commit 16de4ad
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments