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 4.0.0 RC 7
Added
- createOrUpdate function that replaces saveOrUpdate. This saving new models with given ids.
Deprecated
- saveOrUpdate in favor of createOrUpdate
Version 4.0.0 RC 6
Added
- public initializer for NumberFormatTag
0.0.0
Version 4.0.0 RC 5
Added
- CircleCI jobs to test for Swift 5 compatibility as well
Fixed
- Working around a linux crash when using
Calendar.current
(see #97)
Version 4.0.0 RC 4
Added
- Less constraints on Loginable
Version 4.0.0 RC 3
Fixed
- Fixed Swift 5 compiler warnings related to redundant access modifiers
Version 4.0.0 RC 2
Changed
- Loosen default implementation for Creatable's init
Version 4.0.0 RC 1
Added
applyUpdate
onFuture<Updatable>
Removed
- overload of
Future.flatTry
that takes a closure returningFuture<Any>
was removed. Use the one that takes a closure retuningFuture<Void>
instead. This removal helps with type inference and theAny
version did not add any convenience since a.map { $0 as Any }
was needed which is not better than.transform(())
.
Version 4.0.0 Beta 2
Added
- Add
requireParameterCount(upTo:)
onTagContext
to check if there are at mostn
parameters (extracted from the nodes-vapor/Bootstrap package).
Version 4.0.0 Beta 1
Added
- The following protocols were added: Creatable, Loginable, PublicRepresentable, Updatable.
validateThat(only:has:for:on)
function for validating uniqueness of properties
Changed
- Types conforming to HasReadablePassword no longer have to be Decodable
- Date convenience functions now accept a calendar instance
Removed
- The UserType protocol was removed in favor of a more composable structure using a combination of some of the added protocols.