Wrap Versions Save

[DEPRECATED] The easy to use Swift JSON encoder

3.0.1

6 years ago

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)

3.0.0

6 years ago
  • 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)

2.1.1

7 years ago

Fixes

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

2.1.0

7 years ago
  • 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.

2.0.2

7 years ago

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

2.0.1

7 years ago
  • Wrap now automatically encodes instances of Swift's URL type, as well as NSURL.
  • Compatibility for (mac)OS (X) 10.0 added by @maxsz

2.0

7 years ago

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

1.1.1

7 years ago
  • 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

1.1

8 years ago

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)

1.0.3

8 years ago
  • 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!