This repository has been archived by the owner on May 20, 2021. It is now read-only.
Releases: JohnSundell/Wrap
Releases · JohnSundell/Wrap
Wrap 3.0.1
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
- 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
Fixes
- Better Linux compatibility with
NSRegularExpression
, by @darthpelo. - More robust nil handling by not using
Some
string, by @PaulTaykalo.
Wrap 2.1
Wrap 2.0.2
Wrap is now fully updated for Xcode 8.1 and the latest version of the Swift Package Manager (thanks @rayfix!)
Wrap 2.0.1
- Wrap now automatically encodes instances of Swift's
URL
type, as well asNSURL
. - Compatibility for (mac)OS (X) 10.0 added by @maxsz
Wrap 2.0
Wrap 2.0 is a new major version that brings full Swift 3 APIs, bug fixes and new features 🎉
Wrap(..)
is nowwrap(..)
Wrap(objects:)
is nowwrap(_)
keyForWrapping(propertyName:)
is nowkeyForWrapping(propertyNamed:)
WrapCustomizable.wrap()
is nowwrap(context:dateFormatter:)
wrap(propertyName:originalValue:)
is nowwrap(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
- 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
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
- Automatically convert keys that conform to
CustomStringConvertible
into strings, rather than requiring them to conform toWrappableKey
. - Wrap & Unbox can now be used together in a tvOS app. Thanks @JaviLorbada for this!