Changelog History
-
v5.0.2 Changes
March 25, 2019π Changelog Β· No Source Changes
π¦ Swift Package Manager: Additionally specify tools version of
4.0
.π Allows for compilation from Swift 5.0βs Package Manager, which has support stretching back accommodating this.
π For CocoaPods, specify supported Swift versions.
-
v5.0.1 Changes
October 06, 2017π Changelog Β· No Source Changes
π§ Non-Darwin: Swift Package Manager: Tests: Add
LinuxMain.swift
.β‘οΈ Update various
xcconfig
-
v5.0.0 Changes
January 31, 2017π Changelog Β· Breaking Changes
- β‘οΈ Conform to updated Standard Library in regards to API Guidelines.
- Conform to new Collection indexing model.
- Lowercase enum names and static properties.
- π Remove Foundation import, never previously relied upon.
β > Tests still use a subset of Foundation where apple/swift-corelibs-foundation can service those simple needs.
-
v4.0.0 Changes
August 24, 2016Notice : No breaking API changes! In fact, no Swift source file changes whatsoever!
π This semantic versioning major version bump indicates the breaking β not of source compatibility API β but of project build setting API:
- π The reduction to a single framework target and single scheme accommodating macOS, iOS, tvOS, and watchOS.
- Code signing changes for the
PrettyColors
framework:- Set
CODE_SIGNING_REQUIRED
toNO
. - Remove configuration
CODE_SIGN_IDENTITY[sdk=iphoneos*] = "iPhone Developer"
. - Code signing will usually still be required at the point of embedding PrettyColors in a code-signed bundle.
- Set
-
v3.0.2 Changes
April 03, 2016π > ### Tests: Stop building test target for Run and Analyze actions.
π > Avoid unnecessary test builds and more closely match Xcode 7.3.0 new project build actions for test targets.
-
v3.0.1 Changes
April 01, 2016 -
v3.0.0
September 16, 2015 -
v2.0.0 Changes
April 14, 2015π Swift
1.2
support.π Notice : No breaking API changes!
While semantic versioning major changes usually indicate the breaking of public API, this major version increment is only intended to denote that the syntactical changes required by Swift
1.2
are backwards-incompatible with Swift1.1
and earlier. -
v1.0.0 Changes
February 02, 2015π Changelog
Conform
Color.Wrap
to MutableCollectionType.Conform
Color.Wrap
to ArrayLiteralConvertable.Conform
Color.Wrap
to Equality.let one: Color.Wrap = [StyleParameter.Bold]let two: [StyleParameter.Bold] as Color.WrapXCTAssert( one == two )
β Remove
Color.Wrap.add
andSelectGraphicRenditionWrapType.add
.Previously:
Color.Wrap.add
andSelectGraphicRenditionWrapType.add
do not mutate theirstruct
. They return a SelectGraphicRenditionWrapType value.let red = Color.Wrap(foreground: .Red) red.add(parameters: .Bold) // =\> SelectGraphicRenditionWrapType valueXCTAssert( red == Color.Wrap(foreground: .Red) )XCTAssert( red != Color.Wrap(foreground: .Red, style: .Bold) ) var red = Color.Wrap(foreground: .Red) red.add(parameters: .Bold) // =\> SelectGraphicRenditionWrapType valueXCTAssert( red == Color.Wrap(foreground: .Red) )XCTAssert( red != Color.Wrap(foreground: .Red, style: .Bold) )
As of
1.0.0
:let red = Color.Wrap(foreground: .Red) red + Color.Wrap(styles: .Bold) // =\> Color.Wrap value// red.append(style: .Bold) /\* prevented by compiler⦠\*/XCTAssert( red == Color.Wrap(foreground: .Red) )XCTAssert( red != Color.Wrap(foreground: .Red, style: .Bold) ) var red = Color.Wrap(foreground: .Red) red.append(style: .Bold) // =\> ()XCTAssert( red != Color.Wrap(foreground: .Red) )XCTAssert( red == Color.Wrap(foreground: .Red, style: .Bold) )
β More examples of the new syntax can be found in the testsβ¦.
Conform
Color.Wrap
to Equality.0οΈβ£ Default to Array Equality, but add option of Set Equality.
Example
let one = Color.Wrap(styles: .Bold, .Italic)let two = Color.Wrap(styles: .Italic, .Bold)XCTAssert( !(one == two) )XCTAssert( one != two )XCTAssert( one.isEqual(to: two, equality: .Set) )XCTAssert( !one.isEqual(to: two, equality: .Array) )
Semantic Versioning
Going forward, PrettyColors will follow Semantic Versioning: http://semver.org.
Thanks
MutableCollectionType
conformance based off code from brynbellomy/SwiftDataStructures and brynbellomy/Funky.Thanks to @brynbellomy