This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
Releases: ml-archive/sugar
Releases · ml-archive/sugar
Version 2.0.14
Added
- Support for specifying when to auth and what error to throw for
SimpleAuthMiddleware
.
Version 2.0.13
Added
- Support for conditional auth when using
SimpleAuthMiddleware
.
Version 3.0.0
Changed
- This package now correctly pins towards Swift 4.1 in
Package.swift
(thanks @cb1674).
Removed
- Removed the static function
get
onEnvironment
since it was already defined in vapor/service (thanks @cb1674). - Removed the
MutableLeafTagConfig
since we will encourage theuse...LeafTags
pattern moving on.
Version 3 RC3
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
Added
- Small helper for creating time durations in secs. E.g.
2.hoursInSecs
.
Version 3.0.0 RC1
Added
- Helper on
URL
to add query parameters (manually or from anotherURL
).
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
Added
- convenience for passing request into
render
function via the newuserInfo
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
Added
- More convenience functions for retrieving environment variables.
Version 3.0.0 Beta 16
Added
- Custom leaf tag to format number to a fixed amount of decimals
Version 3.0.0 Beta 15
Fixed
• Access levels from implicit/default internal
to explicit public