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 4.0.0 RC 7

07 Feb 14:15
fbee74f
Compare
Choose a tag to compare
Version 4.0.0 RC 7 Pre-release
Pre-release

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

26 Aug 06:41
2090c3e
Compare
Choose a tag to compare
Version 4.0.0 RC 6 Pre-release
Pre-release

Added

  • public initializer for NumberFormatTag

0.0.0

06 Aug 17:17
84b6147
Compare
Choose a tag to compare
Update main.workflow

Version 4.0.0 RC 5

04 Jun 14:29
05d19dd
Compare
Choose a tag to compare
Version 4.0.0 RC 5 Pre-release
Pre-release

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

14 May 08:12
7e02f45
Compare
Choose a tag to compare

Added

  • Less constraints on Loginable

Version 4.0.0 RC 3

07 May 07:52
8aa0467
Compare
Choose a tag to compare
Version 4.0.0 RC 3 Pre-release
Pre-release

Fixed

  • Fixed Swift 5 compiler warnings related to redundant access modifiers

Version 4.0.0 RC 2

23 Mar 07:10
765bab6
Compare
Choose a tag to compare
Version 4.0.0 RC 2 Pre-release
Pre-release

Changed

  • Loosen default implementation for Creatable's init

Version 4.0.0 RC 1

06 Mar 12:41
e024c2d
Compare
Choose a tag to compare
Version 4.0.0 RC 1 Pre-release
Pre-release

Added

  • applyUpdate on Future<Updatable>

Removed

  • overload of Future.flatTry that takes a closure returning Future<Any> was removed. Use the one that takes a closure retuning Future<Void> instead. This removal helps with type inference and the Any 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

17 Feb 07:18
572b0db
Compare
Choose a tag to compare
Version 4.0.0 Beta 2 Pre-release
Pre-release

Added

  • Add requireParameterCount(upTo:) on TagContext to check if there are at most n parameters (extracted from the nodes-vapor/Bootstrap package).

Version 4.0.0 Beta 1

07 Feb 15:27
a204e03
Compare
Choose a tag to compare
Version 4.0.0 Beta 1 Pre-release
Pre-release

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.