parse-server 5.3.0 → 5.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -51
- package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +5 -1
- package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +29 -20
- package/lib/Config.js +17 -1
- package/lib/Controllers/DatabaseController.js +17 -11
- package/lib/GraphQL/helpers/objectsQueries.js +2 -2
- package/lib/GraphQL/transformers/query.js +2 -2
- package/lib/LiveQuery/QueryTools.js +27 -4
- package/lib/Options/Definitions.js +8 -2
- package/lib/Options/docs.js +3 -2
- package/lib/Options/index.js +1 -1
- package/lib/ParseServer.js +14 -1
- package/lib/RestWrite.js +14 -5
- package/lib/Routers/AudiencesRouter.js +2 -2
- package/lib/Routers/ClassesRouter.js +4 -4
- package/lib/Routers/InstallationsRouter.js +2 -2
- package/lib/SchemaMigrations/DefinedSchemas.js +14 -4
- package/package.json +27 -28
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
[](https://github.com/parse-community/parse-dashboard/releases)
|
|
9
9
|
|
|
10
10
|
[](https://nodejs.org)
|
|
11
|
-
[](https://www.postgresql.org)
|
|
11
|
+
[](https://www.mongodb.com)
|
|
12
|
+
[](https://www.postgresql.org)
|
|
13
13
|
|
|
14
14
|
[](https://www.npmjs.com/package/parse-server)
|
|
15
15
|
[](https://www.npmjs.com/package/parse-server)
|
|
@@ -32,16 +32,14 @@ The full documentation for Parse Server is available in the [wiki](https://githu
|
|
|
32
32
|
|
|
33
33
|
A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who support the development of Parse Platform!
|
|
34
34
|
|
|
35
|
-
### Diamond Sponsors
|
|
36
|
-
|
|
37
|
-
[](https://opencollective.com/parse-server/contribute/diamond-sponsor-10560)
|
|
38
|
-
|
|
39
35
|
#### Bronze Sponsors
|
|
40
36
|
|
|
41
37
|
[](https://opencollective.com/parse-server/contribute/bronze-sponsor-10559)
|
|
42
38
|
|
|
43
39
|
---
|
|
44
40
|
|
|
41
|
+
- [Flavors & Branches](#flavors--branches)
|
|
42
|
+
- [Long Term Support](#long-term-support)
|
|
45
43
|
- [Getting Started](#getting-started)
|
|
46
44
|
- [Running Parse Server](#running-parse-server)
|
|
47
45
|
- [Compatibility](#compatibility)
|
|
@@ -89,13 +87,25 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
|
|
|
89
87
|
- [Using automatically generated operations](#using-automatically-generated-operations)
|
|
90
88
|
- [Customizing your GraphQL Schema](#customizing-your-graphql-schema)
|
|
91
89
|
- [Learning more](#learning-more)
|
|
92
|
-
- [Upgrading to 3.0
|
|
93
|
-
- [Want to ride the bleeding edge?](#want-to-ride-the-bleeding-edge)
|
|
90
|
+
- [Upgrading to Parse Server 3.0](#upgrading-to-parse-server-30)
|
|
94
91
|
- [Contributing](#contributing)
|
|
95
92
|
- [Contributors](#contributors)
|
|
96
93
|
- [Sponsors](#sponsors)
|
|
97
94
|
- [Backers](#backers)
|
|
98
95
|
|
|
96
|
+
# Flavors & Branches
|
|
97
|
+
|
|
98
|
+
Parse Server is available in different flavors on different branches:
|
|
99
|
+
|
|
100
|
+
- The main branches are [release][log_release], [beta][log_beta] and [alpha][log_alpha]. See the [changelog overview](CHANGELOG.md) for details.
|
|
101
|
+
- The long-term-support (LTS) branches are named `release-<version>.x.x`, for example `release-4.x.x`. LTS branches do not have pre-release branches.
|
|
102
|
+
|
|
103
|
+
## Long Term Support
|
|
104
|
+
|
|
105
|
+
Long-Term-Support (LTS) is provided for the previous Parse Server major version. For example, Parse Server 4.x will receive security updates until Parse Server 5.x is superseded by Parse Server 6.x and becomes the new LTS version. While the current major version is published on branch `release`, a LTS version is published on branch `release-#.x.x`, for example `release-4.x.x` for the Parse Server 4.x LTS branch.
|
|
106
|
+
|
|
107
|
+
⚠️ LTS versions are provided to help you transition as soon as possible to the current major version. While we aim to fix security vulnerabilities in the LTS version, our main focus is on developing the current major version and preparing the next major release. Therefore we may leave certain vulnerabilities up to the community to fix. Search for [pull requests with the specific LTS base branch](https://github.com/parse-community/parse-server/pulls?q=is%3Aopen+is%3Apr+base%3Arelease-4.x.x) to see the current open vulnerabilities for that LTS branch.
|
|
108
|
+
|
|
99
109
|
# Getting Started
|
|
100
110
|
|
|
101
111
|
The fastest and easiest way to get started is to run MongoDB and Parse Server locally.
|
|
@@ -124,27 +134,27 @@ Parse Server is continuously tested with the most recent releases of Node.js to
|
|
|
124
134
|
|
|
125
135
|
#### MongoDB
|
|
126
136
|
|
|
127
|
-
Parse Server is continuously tested with the most recent releases of MongoDB to ensure compatibility. We follow the [MongoDB support schedule](https://www.mongodb.com/support-policy) and only test against versions that are officially supported and have not reached their end-of-life date.
|
|
137
|
+
Parse Server is continuously tested with the most recent releases of MongoDB to ensure compatibility. We follow the [MongoDB support schedule](https://www.mongodb.com/support-policy) and [MongoDB lifecycle schedule](https://www.mongodb.com/support-policy/lifecycles) and only test against versions that are officially supported and have not reached their end-of-life date. We consider the end-of-life date of a MongoDB "rapid release" to be the same as its major version release.
|
|
128
138
|
|
|
129
|
-
| Version | Latest Version | End-of-Life
|
|
130
|
-
|
|
131
|
-
| MongoDB 4.0 | 4.0.28 | April 2022
|
|
132
|
-
| MongoDB 4.2 | 4.2.19 |
|
|
133
|
-
| MongoDB 4.4 | 4.4.13 |
|
|
134
|
-
| MongoDB 5
|
|
135
|
-
| MongoDB
|
|
136
|
-
| MongoDB 5.2 | 5.2.1 | TBD | ✅ Yes |
|
|
139
|
+
| Version | Latest Version | End-of-Life | Compatible |
|
|
140
|
+
|-------------|----------------|---------------|--------------|
|
|
141
|
+
| MongoDB 4.0 | 4.0.28 | April 2022 | ✅ Yes |
|
|
142
|
+
| MongoDB 4.2 | 4.2.19 | April 2023 | ✅ Yes |
|
|
143
|
+
| MongoDB 4.4 | 4.4.13 | February 2024 | ✅ Yes |
|
|
144
|
+
| MongoDB 5 | 5.3.2 | October 2024 | ✅ Yes |
|
|
145
|
+
| MongoDB 6 | 6.0.2 | July 2025 | ✅ Yes |
|
|
137
146
|
|
|
138
147
|
#### PostgreSQL
|
|
139
148
|
|
|
140
|
-
Parse Server is continuously tested with the most recent releases of PostgreSQL and PostGIS to ensure compatibility, using [PostGIS docker images](https://registry.hub.docker.com/r/postgis/postgis/tags?page=1&ordering=last_updated). We follow the [PostgreSQL support schedule](https://www.postgresql.org/support/versioning) and [PostGIS support schedule](https://www.postgis.net/eol_policy/) and only test against versions that are officially supported and have not reached their end-of-life date. Due to the extensive PostgreSQL support duration of 5 years, Parse Server drops support
|
|
149
|
+
Parse Server is continuously tested with the most recent releases of PostgreSQL and PostGIS to ensure compatibility, using [PostGIS docker images](https://registry.hub.docker.com/r/postgis/postgis/tags?page=1&ordering=last_updated). We follow the [PostgreSQL support schedule](https://www.postgresql.org/support/versioning) and [PostGIS support schedule](https://www.postgis.net/eol_policy/) and only test against versions that are officially supported and have not reached their end-of-life date. Due to the extensive PostgreSQL support duration of 5 years, Parse Server drops support about 2 years before the official end-of-life date.
|
|
141
150
|
|
|
142
|
-
| Version | PostGIS Version
|
|
143
|
-
|
|
144
|
-
| Postgres 11 | 3.0, 3.1, 3.2
|
|
145
|
-
| Postgres 12 | 3.
|
|
146
|
-
| Postgres 13 | 3.
|
|
147
|
-
| Postgres 14 | 3.
|
|
151
|
+
| Version | PostGIS Version | End-of-Life | Parse Server Support | Compatible |
|
|
152
|
+
|-------------|--------------------|---------------|----------------------|------------|
|
|
153
|
+
| Postgres 11 | 3.0, 3.1, 3.2, 3.3 | November 2023 | <= 5.x (2022) | ✅ Yes |
|
|
154
|
+
| Postgres 12 | 3.3 | November 2024 | <= 5.x (2022) | ✅ Yes |
|
|
155
|
+
| Postgres 13 | 3.3 | November 2025 | <= 6.x (2023) | ✅ Yes |
|
|
156
|
+
| Postgres 14 | 3.3 | November 2026 | <= 7.x (2024) | ✅ Yes |
|
|
157
|
+
| Postgres 15 | 3.3 | November 2027 | <= 8.x (2025) | ✅ Yes |
|
|
148
158
|
|
|
149
159
|
### Locally
|
|
150
160
|
|
|
@@ -345,8 +355,10 @@ const server = ParseServer({
|
|
|
345
355
|
});
|
|
346
356
|
```
|
|
347
357
|
|
|
358
|
+
Offical email adapters maintained by Parse Platform:
|
|
359
|
+
- [parse-server-api-mail-adapter](https://github.com/parse-community/parse-server-api-mail-adapter) (localization, templates, universally supports any email provider)
|
|
360
|
+
|
|
348
361
|
Email adapters contributed by the community:
|
|
349
|
-
- [parse-server-api-mail-adapter](https://www.npmjs.com/package/parse-server-api-mail-adapter) (localization, templates, universally supports any email provider)
|
|
350
362
|
- [parse-smtp-template](https://www.npmjs.com/package/parse-smtp-template) (localization, templates)
|
|
351
363
|
- [parse-server-postmark-adapter](https://www.npmjs.com/package/parse-server-postmark-adapter)
|
|
352
364
|
- [parse-server-sendgrid-adapter](https://www.npmjs.com/package/parse-server-sendgrid-adapter)
|
|
@@ -1104,37 +1116,15 @@ You also have a very powerful tool inside your GraphQL Playground. Please look a
|
|
|
1104
1116
|
|
|
1105
1117
|
Additionally, the [GraphQL Learn Section](https://graphql.org/learn/) is a very good source to learn more about the power of the GraphQL language.
|
|
1106
1118
|
|
|
1107
|
-
# Upgrading to 3.0
|
|
1108
|
-
|
|
1109
|
-
Starting 3.0.0, parse-server uses the JS SDK version 2.0.
|
|
1110
|
-
In short, parse SDK v2.0 removes the backbone style callbacks as well as the Parse.Promise object in favor of native promises.
|
|
1111
|
-
All the Cloud Code interfaces also have been updated to reflect those changes, and all backbone style response objects are removed and replaced by Promise style resolution.
|
|
1119
|
+
# Upgrading to Parse Server 3.0
|
|
1112
1120
|
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
# Want to ride the bleeding edge?
|
|
1116
|
-
|
|
1117
|
-
It is recommend to use builds deployed npm for many reasons, but if you want to use
|
|
1118
|
-
the latest not-yet-released version of parse-server, you can do so by depending
|
|
1119
|
-
directly on this branch:
|
|
1120
|
-
|
|
1121
|
-
```
|
|
1122
|
-
npm install parse-community/parse-server.git#master
|
|
1123
|
-
```
|
|
1124
|
-
|
|
1125
|
-
## Experimenting <!-- omit in toc -->
|
|
1126
|
-
|
|
1127
|
-
You can also use your own forks, and work in progress branches by specifying them:
|
|
1128
|
-
|
|
1129
|
-
```
|
|
1130
|
-
npm install github:myUsername/parse-server#my-awesome-feature
|
|
1131
|
-
```
|
|
1121
|
+
Starting Parse Server 3.0, Parse Server uses the Parse JavaScript SDK 2.0. In short, the Parse JavaScript SDK 2.0 removes the backbone style callbacks as well as the `Parse.Promise` object in favor of native promises. All the Cloud Code interfaces also have been updated to reflect those changes, and all backbone style response objects are removed and replaced by promise style resolution.
|
|
1132
1122
|
|
|
1133
|
-
|
|
1123
|
+
We have written up a [migration guide](3.0.0.md) to help you transition to the next major release.
|
|
1134
1124
|
|
|
1135
1125
|
# Contributing
|
|
1136
1126
|
|
|
1137
|
-
|
|
1127
|
+
Please see the [Contributing Guide](CONTRIBUTING.md).
|
|
1138
1128
|
|
|
1139
1129
|
# Contributors
|
|
1140
1130
|
|
|
@@ -1190,3 +1180,6 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
|
|
|
1190
1180
|
[license-svg]: https://img.shields.io/badge/license-BSD-lightgrey.svg
|
|
1191
1181
|
[license-link]: LICENSE
|
|
1192
1182
|
[open-collective-link]: https://opencollective.com/parse-server
|
|
1183
|
+
[log_release]: https://github.com/parse-community/parse-server/blob/release/changelogs/CHANGELOG_release.md
|
|
1184
|
+
[log_beta]: https://github.com/parse-community/parse-server/blob/beta/changelogs/CHANGELOG_beta.md
|
|
1185
|
+
[log_alpha]: https://github.com/parse-community/parse-server/blob/alpha/changelogs/CHANGELOG_alpha.md
|