Vapor: 4.15.2 Release

Release date:
July 11, 2020
Previous version:
4.15.1 (released July 10, 2020)
Magnitude:
159 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in 4.15.2

tanner0101

Directory Browser for 4.15.2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored and released by @tanner0101.

Adds support for percent-encoded brackets in query strings (fixes #2383, #2384, #2432).

Percent-encoded square brackets are now parsed as array or dictionary delimiters in query strings. For example, both of the following query strings are now equivalent:

page[offset]=0&page[limit]=50
page%5Boffset%5D=0&page%5Blimit%5D=50

Both query strings can now be decoded by the following struct:

struct Info {
    struct Page {
        var offset: Int
        var limit: Int
    }
    let page: Page
}

Previously, the percent-encoded brackets were ignored during array and dictionary parsing.

This change brings Vapor 4's behavior in line with Vapor 3 and other frameworks.