File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 2
2
# Parse-Swift Changelog
3
3
4
4
### main
5
- [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.7.3 ...main ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift )
5
+ [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.7.4 ...main ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift )
6
6
* _ Contributing to this repo? Add info about your change here to be included in the next release_
7
7
8
+ ### 5.7.4
9
+ [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.7.3...5.7.4 ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/5.7.4/documentation/parseswift )
10
+
11
+ __ Fixes__
12
+ * hydrateUser() should not replace the options passed in ([ #121 ] ( https://github.com/netreconlab/Parse-Swift/pull/121 ) ), thanks to [ Corey Baker] ( https://github.com/cbaker6 ) .
13
+
8
14
### 5.7.3
9
15
[ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.7.2...5.7.3 ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/5.7.3/documentation/parseswift )
10
16
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Foundation
10
10
11
11
enum ParseConstants {
12
12
static let sdk = " swift "
13
- static let version = " 5.7.3 "
13
+ static let version = " 5.7.4 "
14
14
static let fileManagementDirectory = " parse/ "
15
15
static let fileManagementPrivateDocumentsDirectory = " Private Documents/ "
16
16
static let fileManagementLibraryDirectory = " Library/ "
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ extension ParseHookRequestable {
52
52
if let primaryKey = primaryKey,
53
53
primaryKey {
54
54
options. insert ( . usePrimaryKey)
55
- } else if let sessionToken = user? . sessionToken {
56
- options. insert ( . sessionToken( sessionToken) )
55
+ } else {
56
+ if let sessionToken = user? . sessionToken {
57
+ options. insert ( . sessionToken( sessionToken) )
58
+ }
57
59
if let installationId = installationId {
58
60
options. insert ( . installationId( installationId) )
59
61
}
60
- } else if let installationId = installationId {
61
- options. insert ( . installationId( installationId) )
62
62
}
63
63
return options
64
64
}
@@ -83,8 +83,7 @@ extension ParseHookRequestable {
83
83
}
84
84
let request = self
85
85
var updatedOptions = self . options ( )
86
- updatedOptions. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
87
- options. forEach { updatedOptions. insert ( $0) }
86
+ updatedOptions = options. union ( updatedOptions)
88
87
user. fetch ( options: updatedOptions,
89
88
callbackQueue: callbackQueue) { result in
90
89
switch result {
You can’t perform that action at this time.
0 commit comments