Skip to content

Releases: freshOS/Networking

2.1.0 - Swift 6

2.1.0 - Swift 6 Pre-release
Pre-release

Choose a tag to compare

@s4cha s4cha released this 03 Nov 11:09
Updates example project

Adds PrivacyInfo.xcprivacy

Choose a tag to compare

@s4cha s4cha released this 06 Mar 07:33
2.0.3

Copy PrivacyInfo.xcprivacy resource on target build

2.0.2-beta

2.0.2-beta Pre-release
Pre-release

Choose a tag to compare

@s4cha s4cha released this 15 Nov 01:10

Replaces POST PUT PATCH params by body parameter with an enum (.urlEncode | .json | .multipart)

1.2.4

Choose a tag to compare

@s4cha s4cha released this 14 Nov 00:40

Adds POST, PUT, PATCH Encodable body.

Example:

let data: Data = try await network.post("/users", body: Credentials(username: "john", password: "doe"))

where Credentials conforms to the Encodable protocol.

1.2.1

Choose a tag to compare

@s4cha s4cha released this 29 Apr 10:28
  • Fixes async await continuation error.

1.2.0

Choose a tag to compare

@s4cha s4cha released this 28 Apr 09:29
82f49fa

Adds jsonDecoderFactory to provide your own JSONDecoder.

network.jsonDecoderFactory = {
    let decoder = JSONDecoder()
    let df = DateFormatter()
    df.locale = Locale(identifier: "en_US_POSIX")
    df.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
    decoder.dateDecodingStrategy = .formatted(df)
    return decoder
}

1.1.1

Choose a tag to compare

@s4cha s4cha released this 13 Apr 13:16
  • Async-Await api is here 🎉

1.1.0

1.1.0 Pre-release
Pre-release

Choose a tag to compare

@s4cha s4cha released this 12 Apr 15:38
949a1af
  • async-await api is here !

1.0.0

Choose a tag to compare

@s4cha s4cha released this 07 Apr 09:14
3323942
  • Fixes naming issues detailed here #42
  • Includes #43 Thanks @elijah-rappaport
  • Bumps to 1.0.0, this has now been used in many production apps long enough 🚀

0.3.5

Choose a tag to compare

@s4cha s4cha released this 28 Nov 18:48
  • Fixes "?" added at the end of GET requests without any params. Found by @adomingd and fixed by @workingDog