Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Releases: ml-archive/sugar

Version 2.0.14

25 Jan 05:17
cdb9bdb
Compare
Choose a tag to compare

Added

  • Support for specifying when to auth and what error to throw for SimpleAuthMiddleware.

Version 2.0.13

24 Jan 19:52
e403b05
Compare
Choose a tag to compare

Added

  • Support for conditional auth when using SimpleAuthMiddleware.

Version 3.0.0

04 Dec 09:48
4071e69
Compare
Choose a tag to compare

Changed

  • This package now correctly pins towards Swift 4.1 in Package.swift (thanks @cb1674).

Removed

  • Removed the static function get on Environment since it was already defined in vapor/service (thanks @cb1674).
  • Removed the MutableLeafTagConfig since we will encourage the use...LeafTags pattern moving on.

Version 3 RC3

08 Nov 12:04
5d8bb3e
Compare
Choose a tag to compare
Version 3 RC3 Pre-release
Pre-release

Added

  • Validator for a "Strong password". The behaviour can be overwritten, but the default behaviour is that the input needs to satisfy 3 out of 4 categories: a lower char, an upper char, a digit or a special char.

Version 3.0.0 RC2

07 Nov 08:49
2a988fb
Compare
Choose a tag to compare
Version 3.0.0 RC2 Pre-release
Pre-release

Added

  • Small helper for creating time durations in secs. E.g. 2.hoursInSecs.

Version 3.0.0 RC1

31 Oct 08:08
33c4f00
Compare
Choose a tag to compare
Version 3.0.0 RC1 Pre-release
Pre-release

Added

  • Helper on URL to add query parameters (manually or from another URL).

Changed

  • Bumped to Swift 4.2.

Fixed

  • SwiftLint now runs without any errors/warnings.

This should be the 3.0.0 release if no issues occurs.

Version 3.0.0 Beta 18

24 Oct 07:04
c521eb3
Compare
Choose a tag to compare
Version 3.0.0 Beta 18 Pre-release
Pre-release

Added

  • convenience for passing request into render function via the new userInfo parameter so it can be retrieved in the tag context:

When rendering the view:

    try req.view().render("...", on: req)

In the TagRenderer:

public func render(tag: TagContext) throws -> Future<TemplateData> {
    let req = try tag.requireRequest()
    ....
}

Version 3.0.0 Beta 17

24 Oct 06:20
af64a21
Compare
Choose a tag to compare
Version 3.0.0 Beta 17 Pre-release
Pre-release

Added

  • More convenience functions for retrieving environment variables.

Version 3.0.0 Beta 16

12 Sep 13:54
8c6bf10
Compare
Choose a tag to compare
Version 3.0.0 Beta 16 Pre-release
Pre-release

Added

  • Custom leaf tag to format number to a fixed amount of decimals

Version 3.0.0 Beta 15

07 Sep 07:53
dc73635
Compare
Choose a tag to compare
Version 3.0.0 Beta 15 Pre-release
Pre-release

Fixed

• Access levels from implicit/default internal to explicit public