Releases: Macro-swift/MacroExpress
Releases · Macro-swift/MacroExpress
MultZero
Mustaches
Cooks
The fixes a major bug in cookie decoding which also b0rked sessions.
It also:
- fixes a set of Swift 5.5/6 related issues/warnings
- makes color logging in dumb terminals / Xcode better
- adds dynamic member lookup to a few types, which makes things more JS like, i.e. you don't have to use a subscript to get query parameters and such
- expands the use of Int a little (
any BinaryInteger
) - adds some documentation
- adds support for the
type
option in the bodyParser - honours the
limit
in the bodyParser options
NeXTless
This version releases support for "final" middleware that doesn't require a "next" handler. It could be ignored before using the _
Swift syntax, but now it isn't required at all.
Before (still works):
app.get { req, res, _ in res.send("Hi!") }
New:
app.get { req, res in res.send("Hi!") }
Two chars saved, nice! (and higher compat w/ Express, which due to JavaScript semantics doesn't require any parameter to be declared).
Important: Such "final" middleware must end the response that is passed in!
FiveEight
- Fix compilation warnings against Swift 5.8
- Make BasicAuth.Options.init public, so that one can actually create it ;-)
- Allow
basicAuth
w/o specifying options - Add overloads to avoid 5.8 warnings on
json([])
andjson([:])
(empty arrays/dicts) - Cleanup the Route factories by moving them into own files
OneOO
FiveFour
Asynchronously Not
Enforce use of Swift 5.5 enabled Macro. Changed Package.swift to 5.2 syntax (on a quest to be as WET as possible).
Removed support for Swift 5.0 and 5.1, because Apple:
We didn’t do it because it was required, instead that it felt appropriate