Skip to content

Commit

Permalink
fix: enableAutomaticLogin() should be in ParseUser (#100)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
cbaker6 authored May 9, 2023
1 parent 7a0540c commit 8e8a847
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
# Parse-Swift Changelog

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

### 5.5.1
[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)

__Fixes__
* Move enableAutomaticLogin() to the appropriate ParseUser protocol ([#100](https://github.com/netreconlab/Parse-Swift/pull/100)), thanks to [Corey Baker](https://github.com/cbaker6).

### 5.5.0
[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)

Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/Objects/ParseUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ public extension Sequence where Element: ParseUser {
}

// MARK: Automatic User
public extension ParseObject {
public extension ParseUser {

/**
Enables/disables automatic creation of anonymous users. After calling this method,
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/ParseConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

enum ParseConstants {
static let sdk = "swift"
static let version = "5.5.0"
static let version = "5.5.1"
static let fileManagementDirectory = "parse/"
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
static let fileManagementLibraryDirectory = "Library/"
Expand Down
6 changes: 6 additions & 0 deletions Sources/ParseSwift/Types/ParseVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ public struct ParseVersion: ParseTypeable, Hashable {
// MARK: Default Implementation
public extension ParseVersion {

/**
Create an instance from a `String`.

- parameter string: A semver string to convert to `ParseVersion`.
- throws: An error of `ParseError` type.
*/
init(string: String) throws {
self = try Self.convertVersionString(string)
}
Expand Down

0 comments on commit 8e8a847

Please sign in to comment.