Skip to content

Releases: Macro-swift/MacroExpress

MultZero

21 May 13:58
b510b13
Compare
Choose a tag to compare

This release fixes a bug when parsing requests w/ a multipart post amble and filters out empty file uploads (previously an empty file record was created, even if the user didn't upload anything).

Mustaches

10 Oct 13:57
181568e
Compare
Choose a tag to compare

Fix some incompatibilities w/ the latest Mustache.

Cooks

07 Oct 22:20
03d11f0
Compare
Choose a tag to compare

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

17 Apr 21:47
Compare
Choose a tag to compare

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

16 Apr 15:44
e2de168
Compare
Choose a tag to compare
  • 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([]) and json([:]) (empty arrays/dicts)
  • Cleanup the Route factories by moving them into own files

OneOO

02 Jan 16:09
8c5d600
Compare
Choose a tag to compare

Updated to use the latest SwiftNIO. This implies that Swift 5.5.2+ is now required.

FiveFour

23 Aug 12:56
b60f45b
Compare
Choose a tag to compare

Late NIO versions now require Swift 5.4.

This also changed the default JSON encoding of Date values to iso8601 and replaces the NIO atomics used w/ the new swift-atomics library.

Asynchronously Not

04 Oct 12:34
70946cd
Compare
Choose a tag to compare

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