Skip to content

Commit

Permalink
Update packages (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 authored Mar 16, 2023
1 parent 848e65d commit 96e9685
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"repositoryURL": "https://github.com/netreconlab/Parse-Swift.git",
"state": {
"branch": null,
"revision": "7fe487254973d187e571005ca6f53c12b2e944cd",
"version": "5.1.0"
"revision": "6e81c2fdd05ace300fa2c2531c9fbebc1ca083d6",
"version": "5.3.0"
}
},
{
Expand Down Expand Up @@ -96,8 +96,8 @@
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "80a6e3edc1fc3a4c6c7d4177c73fa3f74c72d3e1",
"version": "2.3.0"
"revision": "da0fe44138ab86e380f40a2acbd8a611b07d3f64",
"version": "2.4.0"
}
},
{
Expand Down Expand Up @@ -177,8 +177,8 @@
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "bac0fe31e3b186537eb750d44fae048681e2b773",
"version": "4.74.0"
"revision": "d1a89f8f54c409751a5891a3dd22f78171be5741",
"version": "4.74.1"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ let package = Package(
.library(name: "ParseServerSwift", targets: ["ParseServerSwift"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.74.0")),
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.74.1")),
.package(url: "https://github.com/netreconlab/Parse-Swift.git",
.upToNextMajor(from: "5.1.0")),
.upToNextMajor(from: "5.3.0")),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ To start your server type, `swift run` in the terminal of the project root direc

## Writing Cloud Code
### Creating `ParseObject`'s
It is recommended to add all of your `ParseObject`'s in a folder called `Models` similar to [ParseServerSwift/Sources/ParseServerSwift/Models](https://github.com/netreconlab/ParseServerSwift/blob/main/Sources/ParseServerSwift/Models).
It is recommended to add all of your `ParseObject`'s in a folder called `Models` similar to [ParseServerSwift/Sources/ParseServerSwift/Models](https://github.com/netreconlab/ParseServerSwift/blob/main/Sources/ParseServerSwift/Models). Note that in the [Apple's WWDC User Xcode for server-side development](https://developer.apple.com/videos/play/wwdc2022/110360/), it is recommended to create packages (15:26 mark) to house your models to share between server and clients apps and reduce code repition.

#### The `ParseUser` Model
Be mindful that the `ParseUser` in `ParseServerSwift` should conform to [ParseCloudUser](https://swiftpackageindex.com/netreconlab/parse-swift/4.16.2/documentation/parseswift/parseclouduser). This is because the `ParseCloudUser` contains some additional properties on the server-side. On the client, you should always use `ParseUser` instead of `ParseCloudUser`. In addition, make sure to add all of the additional properties you have in your `_User` class to the `User` model. An example `User` model is below:
Expand Down

0 comments on commit 96e9685

Please sign in to comment.