Skip to content

Releases: vapor/leaf-kit

1.12.0 - Update to Swift 5.9

22 Jan 15:25
902c512
Compare
Choose a tag to compare

What's Changed

Update to Swift 5.9 by @fpseverino in #134

  • Update swift-tools-version to 5.9
  • Add common swiftSettings to targets
  • Fix unhandled files warnings
    • Templates folder in test target; added to target’s resources
    • Docs.docc folder in main target; updating swift-tools-version fixes it
  • Lock was deprecated in favour of NIOLock
  • Add MUSL and iOS in CI
This patch was released by @0xTim

Full Changelog: 1.11.1...1.12.0

1.11.1 - Fix and add tests for `requireBody()` and `requireNoBody()`

03 Sep 12:05
d0ca441
Compare
Choose a tag to compare

What's Changed

Fix and add tests for requireBody() and requireNoBody() by @fpseverino in #133

Issue #123

  • Fix and add tests for requireBody() and requireNoBody()
This patch was released by @0xTim

Full Changelog: 1.11.0...1.11.1

1.11.0 - Add support for time zones in `DateTag`.

09 Jul 13:55
c04e547
Compare
Choose a tag to compare

What's Changed

Add support for time zones in DateTag. by @fpseverino in #131

Adds an additional parameter to DateTag that takes a time zone ID and uses it to set the timeZone property of the DateFormatter.

For example (as you can see in the added tests):

The date is #date(now, "yyyy-MM-dd'T'HH:mm", "America/New_York")

will be three hours ahead of:

The date is #date(now, "yyyy-MM-dd'T'HH:mm", "America/Los_Angeles")
This patch was released by @0xTim

Full Changelog: 1.10.6...1.11.0

1.10.6 - Allow escaped quotes in tag parameters

13 May 13:31
547e48c
Compare
Choose a tag to compare

What's Changed

Allow escaped quotes in tag parameters by @roya1v in #124

Allows escaped quotes in tag parameters so you can do something like #myCustomTag("this \"thing\" is cool")

Solves #122

This patch was released by @0xTim

Full Changelog: 1.10.5...1.10.6

1.10.5 - Fix crash with missing parameter

20 Mar 18:12
f6a08a1
Compare
Choose a tag to compare

What's Changed

Fix crash with missing parameter by @b-nassler in #130

This line https://github.com/vapor/leaf-kit/blob/main/Sources/LeafKit/LeafParser/LeafParser.swift#L203
would cause a crash when no parameters are found

Fixed issue that lead to a crash when parameters would be empty in line https://github.com/vapor/leaf-kit/blob/main/Sources/LeafKit/LeafParser/LeafParser.swift#L203

New Contributor

This patch was released by @0xTim

Full Changelog: 1.10.4...1.10.5

1.10.4 - Fix extend not rendered when wrapped by with

20 Mar 17:42
38e3144
Compare
Choose a tag to compare

What's Changed

Fix extend not rendered when wrapped by with by @benblakely in #129

When an #extend was wrapped by a #with, the #extend wasn’t rendered.

Fixes #128

This patch was released by @0xTim

Full Changelog: 1.10.3...1.10.4

1.10.3 - Fix nested extend with sugar

08 Dec 00:18
547a134
Compare
Choose a tag to compare

What's Changed

Fix nested extend with sugar by @benblakely in #127

When nesting an #extend with two parameters, the second parameter was ignored instead of being used as context.

Fixes #126

This patch was released by @gwynne

Full Changelog: 1.10.2...1.10.3

Add missing platform specifiers

21 Mar 21:56
13f2fc4
Compare
Choose a tag to compare
This patch was authored and released by @gwynne.

Match Vapor's support

Fix error message in loop syntax

07 Mar 13:37
62169b4
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Syntax errors thrown from loops now show the correct error message!

add isEmpty tag

06 Mar 21:26
1eddd30
Compare
Choose a tag to compare
This patch was authored by @fananek and released by @0xTim.

Adds a new isEmpty tag for checking empty Strings. Equivalent of Swift's isEmpty

Example:

#if(isEmpty(emptyString)):
    This is an empty string.
#endif