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

Wrap 2.0

Compare
Choose a tag to compare
@JohnSundell JohnSundell released this 22 Sep 18:25
· 68 commits to master since this release

Wrap 2.0 is a new major version that brings full Swift 3 APIs, bug fixes and new features 🎉

⚠️ Note that this release includes breaking changes for users of Wrap 1.x. Please upgrade with caution and make sure that you migrate to the new APIs. Also note that Wrap 2.0 is only compatible with Swift 3.

  • Wrap(..) is now wrap(..)
  • Wrap(objects:) is now wrap(_)
  • keyForWrapping(propertyName:) is now keyForWrapping(propertyNamed:)
  • WrapCustomizable.wrap() is now wrap(context:dateFormatter:)
  • wrap(propertyName:originalValue:) is now wrap(propertyNamed:originalValue:context:dateFormatter:)
  • All enums use a lower case leading character
  • Wrapping to snake_case is now supported (myProperty ->my_property`)
  • Int64 & UInt64 are now encoded properly on 32 bit systems
  • Date Formatters are now kept througout the entire wrapping process, and can be used in customized wrapping
  • Wrap now has support for contextual objects just like Unbox has (send context:) when initiating the wrapping