Skip to content

Commit 8e8a847

Browse files
authored
fix: enableAutomaticLogin() should be in ParseUser (#100)
* feat: Add the ability to create users automatically * fix automatic login * doc nits * increase codecov * Update ParseVersion.swift * fix: enableAutomaticLogin() should be in ParseUser * nit * nit
1 parent 7a0540c commit 8e8a847

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
# Parse-Swift Changelog
33

44
### main
5-
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.5.0...main), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift)
5+
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.5.1...main), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift)
66
* _Contributing to this repo? Add info about your change here to be included in the next release_
77

8+
### 5.5.1
9+
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.5.0...5.5.1), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/5.5.1/documentation/parseswift)
10+
11+
__Fixes__
12+
* Move enableAutomaticLogin() to the appropriate ParseUser protocol ([#100](https://github.com/netreconlab/Parse-Swift/pull/100)), thanks to [Corey Baker](https://github.com/cbaker6).
13+
814
### 5.5.0
915
[Full Changelog](https://github.com/netreconlab/Parse-Swift/compare/5.4.3...5.5.0), [Documentation](https://swiftpackageindex.com/netreconlab/Parse-Swift/5.5.0/documentation/parseswift)
1016

Sources/ParseSwift/Objects/ParseUser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ public extension Sequence where Element: ParseUser {
15881588
}
15891589

15901590
// MARK: Automatic User
1591-
public extension ParseObject {
1591+
public extension ParseUser {
15921592

15931593
/**
15941594
Enables/disables automatic creation of anonymous users. After calling this method,

Sources/ParseSwift/ParseConstants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010

1111
enum ParseConstants {
1212
static let sdk = "swift"
13-
static let version = "5.5.0"
13+
static let version = "5.5.1"
1414
static let fileManagementDirectory = "parse/"
1515
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
1616
static let fileManagementLibraryDirectory = "Library/"

Sources/ParseSwift/Types/ParseVersion.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public struct ParseVersion: ParseTypeable, Hashable {
174174
// MARK: Default Implementation
175175
public extension ParseVersion {
176176

177+
/**
178+
Create an instance from a `String`.
179+
180+
- parameter string: A semver string to convert to `ParseVersion`.
181+
- throws: An error of `ParseError` type.
182+
*/
177183
init(string: String) throws {
178184
self = try Self.convertVersionString(string)
179185
}

0 commit comments

Comments
 (0)