Skip to content

Releases: swift-extras/swift-extras-json

v0.6.0 swift-extras-json

14 Nov 22:32
122b945
Compare
Choose a tag to compare
Pre-release

⚠️ pure-swift-json was moved to swift-extras and got a new name: swift-extras-json. The library PureSwiftJSON has been renamed to ExtrasJSON.

Other Changes:

  • PSJSONDecoder has been renamed to XJSONDecoder
  • PSJSONEncoder has been renamed to XJSONEncoder

pure-swift-json v0.5.1

01 Nov 01:43
Compare
Choose a tag to compare
Pre-release
  • Fix the escaped encoding of control characters (U+0000 through U+001F). #66
  • Remove all references to RFC7159, which has been superseded by RFC8259. #66
  • Use new Swift versions in CI #65
  • Update swiftformat to a newer version #66

pure-swift-json v0.5.0

28 Sep 11:38
3063535
Compare
Choose a tag to compare
Pre-release

⚠️ This release includes breaking api changes

  • reduce API surface – make DocumentReader internal (#56)
  • add Code of Conduct (#54)
  • use swift run -c release in performance tests (#57) thanks @pokryfka
  • use newer version of swiftformat (#59)
  • fix Documentation (#58) thanks @helje5
  • fix semantics of JSONUnkeyedDecodingContainer (#62) thanks @gwynne

pure-swift-json v0.4.0

12 Jul 21:08
5dc8ec1
Compare
Choose a tag to compare
Pre-release
  • fixes an issue that led to a crash, if an empty array was decoded (#52)
  • makes PSJSONEncoder's and PSJSONDecoder's userInfo public (Added to public api) (#50 and #51)

Thanks to @ktoso and @calebkleveter for reporting the issues fixed in this release!

pure-swift-json v0.3.0

24 Jun 13:18
33f2da3
Compare
Choose a tag to compare
Pre-release

⚠️ This release includes breaking api changes

  • JSONEncoder and JSONDecoder are now prefixed with PS to remove naming conflicts with Foundation. (#48)
  • PSJSONEncoder is now a struct (#47)
  • PSJSONEncoder can now encode into JSONValue and PSJSONDecoder can decode from JSONValue (#46)
  • JSONValue.debugDataTypeDescription is now internal (#29 #45)
  • everything is now under one target PureSwiftJSON. (#44)
  • The code is now formatted with swiftformat. This is enforced with CI (#43)
  • The "early stage development" warning has been removed (#49)

This shall be one of the last releases before 1.0.0. With the changes in the project structure and the renaming of the PSJSONEncoder and PSJSONDecoder, I hope that the coming changes will not be source breaking.

pure-swift-json v0.2.3

24 Jun 07:14
9d10426
Compare
Choose a tag to compare
Pre-release
  • Fixes a bug where only uppercase unicode escape sequences were allowed. Before only \u003C was supported, now we support \u003c as well (#42)

pure-swift-json v0.2.2

11 Jun 08:40
2aaa3eb
Compare
Choose a tag to compare
Pre-release
  • Fixes a bug in JSONUnkeyedDecodingContainer (#41)

pure-swift-json v0.2.1

01 Apr 07:02
816db7e
Compare
Choose a tag to compare
Pre-release
  • Decoding an object from an unknown key within an object doesn't crash anymore.

pure-swift-json v0.2.0

20 Mar 15:46
2b2a70f
Compare
Choose a tag to compare
Pre-release

Fixed a couple of issues.

  • Fixed a couple of typos in the README.md (thx for reporting @Trzyipolkostkicukru) #23
  • Fixed typo decodeFixedWithInteger() -> decodeFixedWidthInteger() (thx @rjchatfield) #22 #18
  • Updated the README.md with an example of how to use Date with a propertyWrapper (thx @Trzyipolkostkicukru) #17
  • Allow encode<T: Encodable>(_ value: T) in JSONSingleValueEncodingContainer (thx @adam-fowler) #20 #24
  • Added a License (Apache 2.0) #27
  • JSONEncoder nestedContainer() and nestedUnkeyedContainer() work #19 #25 (thx for reporting @adam-fowler)
  • JSONEncoder updates coding path #21 #25 (thx for reporting @adam-fowler)
  • If NaN or Infinity is encoded an error is thrown #13 (thx for reporting @dinhhungle)

pure-swift-json v0.1.0

18 Mar 10:25
1d133ee
Compare
Choose a tag to compare
Pre-release

The very first release! Feedback highly welcome.