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

Releases: JohnSundell/Wrap

Wrap 3.0.1

05 Nov 19:48
8085c92
Compare
Choose a tag to compare

Wrap now uses the Swift 4 version of the Swift Package Description API.

View build details and download artifacts on buddybuild:
Wrap (iOS, Wrap-iOS)

Wrap 3.0.0

04 Nov 14:34
35e2056
Compare
Choose a tag to compare
  • Wrap now uses Swift 4
  • Fixed a bug when a custom date formatter was being used when wrapping to Data (thanks @fpillet!)

View build details and download artifacts on buddybuild:
Wrap (iOS, Wrap-iOS)

Wrap 2.1.1

12 Apr 09:35
Compare
Choose a tag to compare

Fixes

  • Better Linux compatibility with NSRegularExpression, by @darthpelo.
  • More robust nil handling by not using Some string, by @PaulTaykalo.

Wrap 2.1

25 Feb 11:13
Compare
Choose a tag to compare
  • Linux support! 🎉 You can now use Wrap to super easily encode JSON when using Swift server-side. Thanks to @agisboye for helping to implement this!
  • Wrap now automatically ignores closure properties.

Wrap 2.0.2

21 Nov 00:35
Compare
Choose a tag to compare

Wrap is now fully updated for Xcode 8.1 and the latest version of the Swift Package Manager (thanks @rayfix!)

Wrap 2.0.1

14 Nov 20:13
Compare
Choose a tag to compare
  • Wrap now automatically encodes instances of Swift's URL type, as well as NSURL.
  • Compatibility for (mac)OS (X) 10.0 added by @maxsz

Wrap 2.0

22 Sep 18:25
Compare
Choose a tag to compare

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

Wrap 1.1.1

23 May 19:37
Compare
Choose a tag to compare
  • Add support the Swift Package Manager (SPM) (thanks @alexaubry)
  • Add backwards-compatibility for OS X 10.10 (thanks @bmichotte)
  • Add support for using Wrap in an App Extension

Wrap 1.1

28 Apr 22:40
Compare
Choose a tag to compare

This release of Wrap introduces the ability to encode JSON arrays directly using Wrap:

let objects = [...]
let dictionaries: [WrappedDictionary] = try Wrap(objects)
let data: NSData = try Wrap(objects)

Wrap 1.0.3

21 Apr 22:30
Compare
Choose a tag to compare
  • Automatically convert keys that conform to CustomStringConvertible into strings, rather than requiring them to conform to WrappableKey.
  • Wrap & Unbox can now be used together in a tvOS app. Thanks @JaviLorbada for this!