Releases: vapor/multipart-kit
Releases · vapor/multipart-kit
Multipart 3.0.0
Multipart 3.0 is here, now with Codable
support! 🏞 Use multipart to parse and serializes multipart-encoded data.
Docs:
https://docs.vapor.codes/3.0/multipart/getting-started/
API Docs:
https://api.vapor.codes/multipart/latest/Multipart
Milestone:
3.0.0
Changes since final release candidate.
MultipartForm
to parse requests is gone. Use Content
just like JSON and form-urlencoded
.
New:
Codable
support! UseFormDataDecoder
andFormDataEncoder
to convert multipart data to Swift.
Fixed:
- API audit: Lots of APIs cleaned up and/or made internal. Lots of doc blocks added, too!
Multipart 2.2.0
New:
- Improved the multipart parsing performance.
Before
Time to parse a multipart message with the given size. Measured on a 4-core 2.6 GHz Intel Core i7, macOS 10.13.3, Swift 4.0.3:
Message Size | Debug Build | Release Build |
---|---|---|
100 KB | 0.36 s | 0.16 s |
200 KB | 1.24 s | 0.58 s |
400 KB | 4.56 s | 2.21 s |
After
Message Size | Debug Build | Speedup | Release Build | Speedup |
---|---|---|---|---|
100 KB | 0.09 s | 4× | 0.027 s | 6× |
200 KB | 0.19 s | 6.5× | 0.06 s | 10× |
400 KB | 0.37 s | 12× | 0.11 s | 20× |
Multipart 2.1.1
Fixed:
- Boundaries with
"
are now supported.
Multipart 2.1.0
Multipart 2.0
🎉
Multipart 2.0 has been updated to be faster and easier to use with better support for edge cases in the multipart format.
Check out the full diff here
Multipart 2.0 Beta 2
Fixed:
- Multipart bodies containing
--
are now parsed properly
Multipart 1.0.3
Fixed:
- Multipart bodies containing
--
are now parsed properly
Multipart 2.0 Alpha 1
Beta Candidate
Multipart 2.0 Alpha 3
Fixed:
- Move to
.makeString()
Multipart 2.0 Alpha 2
Fixed:
- Off by one parser fix.