@vizmo/parse-server 5.6.0 → 7.5.2-10

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.
Files changed (200) hide show
  1. package/LICENSE +167 -25
  2. package/NOTICE +10 -0
  3. package/README.md +88 -67
  4. package/lib/AccountLockout.js +3 -4
  5. package/lib/Adapters/AdapterLoader.js +8 -4
  6. package/lib/Adapters/Analytics/AnalyticsAdapter.js +3 -6
  7. package/lib/Adapters/Auth/AuthAdapter.js +115 -13
  8. package/lib/Adapters/Auth/BaseCodeAuthAdapter.js +99 -0
  9. package/lib/Adapters/Auth/OAuth1Client.js +4 -2
  10. package/lib/Adapters/Auth/apple.js +46 -4
  11. package/lib/Adapters/Auth/facebook.js +63 -5
  12. package/lib/Adapters/Auth/gcenter.js +201 -157
  13. package/lib/Adapters/Auth/github.js +119 -31
  14. package/lib/Adapters/Auth/google.js +45 -1
  15. package/lib/Adapters/Auth/gpgames.js +120 -27
  16. package/lib/Adapters/Auth/httpsRequest.js +1 -1
  17. package/lib/Adapters/Auth/index.js +150 -52
  18. package/lib/Adapters/Auth/instagram.js +114 -24
  19. package/lib/Adapters/Auth/janraincapture.js +45 -1
  20. package/lib/Adapters/Auth/janrainengage.js +12 -2
  21. package/lib/Adapters/Auth/keycloak.js +74 -37
  22. package/lib/Adapters/Auth/ldap.js +76 -2
  23. package/lib/Adapters/Auth/line.js +119 -32
  24. package/lib/Adapters/Auth/linkedin.js +111 -35
  25. package/lib/Adapters/Auth/meetup.js +16 -8
  26. package/lib/Adapters/Auth/mfa.js +467 -0
  27. package/lib/Adapters/Auth/microsoft.js +105 -30
  28. package/lib/Adapters/Auth/oauth2.js +100 -110
  29. package/lib/Adapters/Auth/phantauth.js +16 -8
  30. package/lib/Adapters/Auth/qq.js +107 -36
  31. package/lib/Adapters/Auth/spotify.js +108 -39
  32. package/lib/Adapters/Auth/twitter.js +187 -40
  33. package/lib/Adapters/Auth/utils.js +13 -2
  34. package/lib/Adapters/Auth/vkontakte.js +21 -13
  35. package/lib/Adapters/Auth/wechat.js +105 -25
  36. package/lib/Adapters/Auth/weibo.js +135 -37
  37. package/lib/Adapters/Cache/CacheAdapter.js +3 -5
  38. package/lib/Adapters/Cache/InMemoryCache.js +2 -3
  39. package/lib/Adapters/Cache/InMemoryCacheAdapter.js +2 -3
  40. package/lib/Adapters/Cache/LRUCache.js +7 -8
  41. package/lib/Adapters/Cache/NullCacheAdapter.js +2 -3
  42. package/lib/Adapters/Cache/RedisCacheAdapter.js +54 -63
  43. package/lib/Adapters/Cache/SchemaCache.js +2 -3
  44. package/lib/Adapters/Email/MailAdapter.js +4 -7
  45. package/lib/Adapters/Files/FilesAdapter.js +7 -10
  46. package/lib/Adapters/Files/GridFSBucketAdapter.js +30 -51
  47. package/lib/Adapters/Files/GridStoreAdapter.js +1 -1
  48. package/lib/Adapters/Logger/LoggerAdapter.js +4 -7
  49. package/lib/Adapters/Logger/WinstonLogger.js +7 -10
  50. package/lib/Adapters/Logger/WinstonLoggerAdapter.js +2 -3
  51. package/lib/Adapters/MessageQueue/EventEmitterMQ.js +3 -4
  52. package/lib/Adapters/PubSub/EventEmitterPubSub.js +3 -4
  53. package/lib/Adapters/PubSub/PubSubAdapter.js +4 -7
  54. package/lib/Adapters/PubSub/RedisPubSub.js +33 -7
  55. package/lib/Adapters/Push/PushAdapter.js +4 -7
  56. package/lib/Adapters/Storage/Mongo/MongoCollection.js +23 -22
  57. package/lib/Adapters/Storage/Mongo/MongoSchemaCollection.js +15 -12
  58. package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +37 -28
  59. package/lib/Adapters/Storage/Mongo/MongoTransform.js +66 -51
  60. package/lib/Adapters/Storage/Postgres/PostgresClient.js +1 -1
  61. package/lib/Adapters/Storage/Postgres/PostgresConfigParser.js +2 -2
  62. package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +54 -25
  63. package/lib/Adapters/Storage/Postgres/sql/index.js +1 -1
  64. package/lib/Adapters/Storage/StorageAdapter.js +1 -1
  65. package/lib/Adapters/WebSocketServer/WSAdapter.js +2 -3
  66. package/lib/Adapters/WebSocketServer/WSSAdapter.js +4 -7
  67. package/lib/Auth.js +296 -16
  68. package/lib/ClientSDK.js +1 -1
  69. package/lib/Config.js +183 -29
  70. package/lib/Controllers/AdaptableController.js +2 -3
  71. package/lib/Controllers/AnalyticsController.js +3 -4
  72. package/lib/Controllers/CacheController.js +4 -5
  73. package/lib/Controllers/DatabaseController.js +97 -55
  74. package/lib/Controllers/FilesController.js +19 -20
  75. package/lib/Controllers/HooksController.js +5 -7
  76. package/lib/Controllers/LiveQueryController.js +5 -3
  77. package/lib/Controllers/LoggerController.js +7 -10
  78. package/lib/Controllers/ParseGraphQLController.js +28 -23
  79. package/lib/Controllers/PushController.js +3 -4
  80. package/lib/Controllers/SchemaController.js +84 -39
  81. package/lib/Controllers/UserController.js +88 -55
  82. package/lib/Controllers/index.js +19 -29
  83. package/lib/Controllers/types.js +1 -1
  84. package/lib/Deprecator/Deprecations.js +3 -7
  85. package/lib/Deprecator/Deprecator.js +2 -2
  86. package/lib/GraphQL/ParseGraphQLSchema.js +3 -4
  87. package/lib/GraphQL/ParseGraphQLServer.js +62 -31
  88. package/lib/GraphQL/helpers/objectsMutations.js +3 -3
  89. package/lib/GraphQL/helpers/objectsQueries.js +3 -3
  90. package/lib/GraphQL/loaders/defaultGraphQLMutations.js +2 -3
  91. package/lib/GraphQL/loaders/defaultGraphQLQueries.js +2 -3
  92. package/lib/GraphQL/loaders/defaultGraphQLTypes.js +88 -152
  93. package/lib/GraphQL/loaders/defaultRelaySchema.js +9 -9
  94. package/lib/GraphQL/loaders/filesMutations.js +56 -19
  95. package/lib/GraphQL/loaders/functionsMutations.js +8 -7
  96. package/lib/GraphQL/loaders/parseClassMutations.js +16 -9
  97. package/lib/GraphQL/loaders/parseClassQueries.js +3 -4
  98. package/lib/GraphQL/loaders/parseClassTypes.js +19 -11
  99. package/lib/GraphQL/loaders/schemaDirectives.js +2 -3
  100. package/lib/GraphQL/loaders/schemaMutations.js +3 -4
  101. package/lib/GraphQL/loaders/schemaQueries.js +3 -4
  102. package/lib/GraphQL/loaders/schemaTypes.js +33 -64
  103. package/lib/GraphQL/loaders/usersMutations.js +90 -15
  104. package/lib/GraphQL/loaders/usersQueries.js +3 -3
  105. package/lib/GraphQL/parseGraphQLUtils.js +11 -7
  106. package/lib/GraphQL/transformers/className.js +1 -1
  107. package/lib/GraphQL/transformers/constraintType.js +2 -3
  108. package/lib/GraphQL/transformers/inputType.js +2 -3
  109. package/lib/GraphQL/transformers/mutation.js +39 -25
  110. package/lib/GraphQL/transformers/outputType.js +2 -3
  111. package/lib/GraphQL/transformers/query.js +6 -4
  112. package/lib/GraphQL/transformers/schemaFields.js +8 -6
  113. package/lib/KeyPromiseQueue.js +1 -1
  114. package/lib/LiveQuery/Client.js +6 -6
  115. package/lib/LiveQuery/Id.js +1 -1
  116. package/lib/LiveQuery/ParseCloudCodePublisher.js +10 -2
  117. package/lib/LiveQuery/ParseLiveQueryServer.js +61 -27
  118. package/lib/LiveQuery/ParsePubSub.js +2 -3
  119. package/lib/LiveQuery/ParseWebSocketServer.js +3 -3
  120. package/lib/LiveQuery/QueryTools.js +7 -2
  121. package/lib/LiveQuery/RequestSchema.js +20 -5
  122. package/lib/LiveQuery/SessionTokenCache.js +4 -4
  123. package/lib/LiveQuery/Subscription.js +2 -2
  124. package/lib/LiveQuery/equalObjects.js +1 -1
  125. package/lib/Options/Definitions.js +246 -24
  126. package/lib/Options/docs.js +53 -7
  127. package/lib/Options/index.js +4 -4
  128. package/lib/Options/parsers.js +10 -1
  129. package/lib/Page.js +2 -3
  130. package/lib/ParseMessageQueue.js +2 -3
  131. package/lib/ParseServer.js +217 -74
  132. package/lib/ParseServerRESTController.js +16 -10
  133. package/lib/PromiseRouter.js +2 -2
  134. package/lib/Push/PushQueue.js +2 -2
  135. package/lib/Push/PushWorker.js +4 -6
  136. package/lib/Push/utils.js +7 -7
  137. package/lib/RestQuery.js +40 -28
  138. package/lib/RestWrite.js +286 -190
  139. package/lib/Routers/AggregateRouter.js +26 -30
  140. package/lib/Routers/AnalyticsRouter.js +2 -2
  141. package/lib/Routers/AudiencesRouter.js +4 -6
  142. package/lib/Routers/ClassesRouter.js +11 -5
  143. package/lib/Routers/CloudCodeRouter.js +2 -2
  144. package/lib/Routers/FeaturesRouter.js +7 -4
  145. package/lib/Routers/FilesRouter.js +13 -14
  146. package/lib/Routers/FunctionsRouter.js +33 -22
  147. package/lib/Routers/GlobalConfigRouter.js +55 -14
  148. package/lib/Routers/GraphQLRouter.js +4 -6
  149. package/lib/Routers/HooksRouter.js +4 -6
  150. package/lib/Routers/IAPValidationRouter.js +2 -2
  151. package/lib/Routers/InstallationsRouter.js +3 -4
  152. package/lib/Routers/LogsRouter.js +4 -6
  153. package/lib/Routers/PagesRouter.js +4 -5
  154. package/lib/Routers/PublicAPIRouter.js +4 -5
  155. package/lib/Routers/PurgeRouter.js +4 -6
  156. package/lib/Routers/PushRouter.js +4 -6
  157. package/lib/Routers/RolesRouter.js +3 -4
  158. package/lib/Routers/SchemasRouter.js +6 -7
  159. package/lib/Routers/SecurityRouter.js +4 -6
  160. package/lib/Routers/SessionsRouter.js +3 -4
  161. package/lib/Routers/UsersRouter.js +225 -66
  162. package/lib/SchemaMigrations/DefinedSchemas.js +29 -21
  163. package/lib/SchemaMigrations/Migrations.js +2 -2
  164. package/lib/Security/Check.js +4 -5
  165. package/lib/Security/CheckGroup.js +3 -6
  166. package/lib/Security/CheckGroups/CheckGroupDatabase.js +5 -8
  167. package/lib/Security/CheckGroups/CheckGroupServerConfig.js +12 -6
  168. package/lib/Security/CheckGroups/CheckGroups.js +2 -2
  169. package/lib/Security/CheckRunner.js +4 -8
  170. package/lib/SharedRest.js +3 -3
  171. package/lib/StatusHandler.js +17 -7
  172. package/lib/TestUtils.js +28 -5
  173. package/lib/Utils.js +35 -1
  174. package/lib/batch.js +1 -1
  175. package/lib/cache.js +3 -5
  176. package/lib/cli/definitions/parse-live-query-server.js +2 -3
  177. package/lib/cli/definitions/parse-server.js +2 -3
  178. package/lib/cli/parse-live-query-server.js +2 -2
  179. package/lib/cli/parse-server.js +10 -4
  180. package/lib/cli/utils/commander.js +3 -4
  181. package/lib/cli/utils/runner.js +9 -7
  182. package/lib/cloud-code/Parse.Cloud.js +61 -141
  183. package/lib/cloud-code/Parse.Server.js +21 -0
  184. package/lib/cryptoUtils.js +8 -4
  185. package/lib/defaults.js +4 -6
  186. package/lib/deprecated.js +1 -1
  187. package/lib/index.js +26 -21
  188. package/lib/logger.js +3 -3
  189. package/lib/middlewares.js +265 -38
  190. package/lib/password.js +1 -1
  191. package/lib/request.js +173 -2
  192. package/lib/requiredParameter.js +1 -1
  193. package/lib/rest.js +5 -5
  194. package/lib/triggers.js +82 -40
  195. package/lib/vendor/mongodbUrl.js +193 -63
  196. package/package.json +85 -77
  197. package/postinstall.js +38 -50
  198. package/PATENTS +0 -37
  199. package/lib/cloud-code/HTTPResponse.js +0 -63
  200. package/lib/cloud-code/httpRequest.js +0 -167
package/LICENSE CHANGED
@@ -1,34 +1,176 @@
1
- BSD License
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
2
4
 
3
- For Parse Server software
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4
6
 
5
- Copyright (c) 2015-present, Parse, LLC. All rights reserved.
7
+ 1. Definitions.
6
8
 
7
- Redistribution and use in source and binary forms, with or without modification,
8
- are permitted provided that the following conditions are met:
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
9
11
 
10
- * Redistributions of source code must retain the above copyright notice, this
11
- list of conditions and the following disclaimer.
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
12
14
 
13
- * Redistributions in binary form must reproduce the above copyright notice,
14
- this list of conditions and the following disclaimer in the documentation
15
- and/or other materials provided with the distribution.
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
16
22
 
17
- * Neither the name Parse nor the names of its contributors may be used to
18
- endorse or promote products derived from this software without specific
19
- prior written permission.
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
20
25
 
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
31
29
 
32
- -----
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
33
34
 
34
- As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
package/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ Parse Server
2
+
3
+ Copyright 2015-present Parse Platform
4
+
5
+ This product includes software developed at Parse Platform.
6
+ www.parseplatform.org
7
+
8
+ ---
9
+
10
+ As of April 5, 2017, Parse, LLC has transferred this code to the Parse Platform organization, and will no longer be contributing to or distributing this code.
package/README.md CHANGED
@@ -1,19 +1,17 @@
1
- # :warning: Don't use this package
2
-
3
- ---
4
-
5
1
  ![parse-repository-header-server](https://user-images.githubusercontent.com/5673677/138278489-7d0cebc5-1e31-4d3c-8ffb-53efcda6f29d.png)
6
2
 
7
3
  ---
8
-
9
- [![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=alpha)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Aalpha)
4
+
5
+ [![Build Status](https://github.com/parse-community/parse-server/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/parse-community/parse-server/actions/workflows/ci.yml?query=workflow%3Aci+branch%3Aalpha)
6
+ [![Build Status](https://github.com/parse-community/parse-server/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/parse-community/parse-server/actions/workflows/ci.yml?query=workflow%3Aci+branch%3Abeta)
7
+ [![Build Status](https://github.com/parse-community/parse-server/actions/workflows/ci.yml/badge.svg?branch=release)](https://github.com/parse-community/parse-server/actions/workflows/ci.yml?query=workflow%3Aci+branch%3Arelease)
10
8
  [![Snyk Badge](https://snyk.io/test/github/parse-community/parse-server/badge.svg)](https://snyk.io/test/github/parse-community/parse-server)
11
- [![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server/alpha.svg)](https://codecov.io/github/parse-community/parse-server?branch=alpha)
9
+ [![Coverage](https://codecov.io/github/parse-community/parse-server/branch/alpha/graph/badge.svg)](https://app.codecov.io/github/parse-community/parse-server/tree/alpha)
12
10
  [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases)
13
11
 
14
- [![Node Version](https://img.shields.io/badge/nodejs-12,_14,_16,_17,_18-green.svg?logo=node.js&style=flat)](https://nodejs.org)
15
- [![MongoDB Version](https://img.shields.io/badge/mongodb-4.0,_4.2,_4.4,_5,_6-green.svg?logo=mongodb&style=flat)](https://www.mongodb.com)
16
- [![Postgres Version](https://img.shields.io/badge/postgresql-11,_12,_13,_14,_15-green.svg?logo=postgresql&style=flat)](https://www.postgresql.org)
12
+ [![Node Version](https://img.shields.io/badge/nodejs-18,_20,_22-green.svg?logo=node.js&style=flat)](https://nodejs.org)
13
+ [![MongoDB Version](https://img.shields.io/badge/mongodb-4.2,_4.4,_5,_6,_7,_8-green.svg?logo=mongodb&style=flat)](https://www.mongodb.com)
14
+ [![Postgres Version](https://img.shields.io/badge/postgresql-13,_14,_15,_16,_17-green.svg?logo=postgresql&style=flat)](https://www.postgresql.org)
17
15
 
18
16
  [![npm latest version](https://img.shields.io/npm/v/parse-server/latest.svg)](https://www.npmjs.com/package/parse-server)
19
17
  [![npm beta version](https://img.shields.io/npm/v/parse-server/beta.svg)](https://www.npmjs.com/package/parse-server)
@@ -21,7 +19,6 @@
21
19
 
22
20
  [![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
23
21
  [![Sponsors on Open Collective](https://opencollective.com/parse-server/sponsors/badge.svg)][open-collective-link]
24
- [![License][license-svg]][license-link]
25
22
  [![Forum](https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg)](https://community.parseplatform.org/c/parse-server)
26
23
  [![Twitter](https://img.shields.io/twitter/follow/ParsePlatform.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=ParsePlatform)
27
24
  [![Chat](https://img.shields.io/badge/Chat-Join!-%23fff?style=social&logo=slack)](https://chat.parseplatform.org)
@@ -42,10 +39,7 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
42
39
 
43
40
  ---
44
41
 
45
- - [:warning: Don't use this package](#warning-dont-use-this-package)
46
- - [Diamond Sponsors](#diamond-sponsors)
47
- - [Bronze Sponsors](#bronze-sponsors)
48
- - [Flavors & Branches](#flavors--branches)
42
+ - [Flavors \& Branches](#flavors--branches)
49
43
  - [Long Term Support](#long-term-support)
50
44
  - [Getting Started](#getting-started)
51
45
  - [Running Parse Server](#running-parse-server)
@@ -60,9 +54,12 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
60
54
  - [Running Parse Server elsewhere](#running-parse-server-elsewhere)
61
55
  - [Sample Application](#sample-application)
62
56
  - [Parse Server + Express](#parse-server--express)
57
+ - [Parse Server Health](#parse-server-health)
58
+ - [Status Values](#status-values)
63
59
  - [Configuration](#configuration)
64
60
  - [Basic Options](#basic-options)
65
61
  - [Client Key Options](#client-key-options)
62
+ - [Access Scopes](#access-scopes)
66
63
  - [Email Verification and Password Reset](#email-verification-and-password-reset)
67
64
  - [Password and Account Policy](#password-and-account-policy)
68
65
  - [Custom Routes](#custom-routes)
@@ -94,7 +91,6 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
94
91
  - [Using automatically generated operations](#using-automatically-generated-operations)
95
92
  - [Customizing your GraphQL Schema](#customizing-your-graphql-schema)
96
93
  - [Learning more](#learning-more)
97
- - [Upgrading to Parse Server 3.0](#upgrading-to-parse-server-30)
98
94
  - [Contributing](#contributing)
99
95
  - [Contributors](#contributors)
100
96
  - [Sponsors](#sponsors)
@@ -105,13 +101,13 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
105
101
  Parse Server is available in different flavors on different branches:
106
102
 
107
103
  - The main branches are [release][log_release], [beta][log_beta] and [alpha][log_alpha]. See the [changelog overview](CHANGELOG.md) for details.
108
- - 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.
104
+ - The long-term-support (LTS) branches are named `release-<version>.x.x`, for example `release-5.x.x`. LTS branches do not have pre-release branches.
109
105
 
110
106
  ## Long Term Support
111
107
 
112
- 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.
108
+ Long-Term-Support (LTS) is provided for the previous Parse Server major version. For example, Parse Server 5.x will receive security updates until Parse Server 6.x is superseded by Parse Server 7.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-5.x.x` for the Parse Server 5.x LTS branch.
113
109
 
114
- ⚠️ 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.
110
+ ⚠️ 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-5.x.x) to see the current open vulnerabilities for that LTS branch.
115
111
 
116
112
  # Getting Started
117
113
 
@@ -133,23 +129,22 @@ Parse Server is continuously tested with the most recent releases of Node.js to
133
129
 
134
130
  | Version | Latest Version | End-of-Life | Compatible |
135
131
  |------------|----------------|-------------|------------|
136
- | Node.js 12 | 12.22.11 | April 2022 | ✅ Yes |
137
- | Node.js 14 | 14.19.1 | April 2023 | ✅ Yes |
138
- | Node.js 16 | 16.14.2 | April 2024 | ✅ Yes |
139
- | Node.js 17 | 17.9.0 | June 2022 | ✅ Yes |
140
- | Node.js 18 | 18.1.0 | April 2025 | ✅ Yes |
132
+ | Node.js 18 | 18.20.4 | April 2025 | ✅ Yes |
133
+ | Node.js 20 | 20.15.1 | April 2026 | ✅ Yes |
134
+ | Node.js 22 | 22.4.1 | April 2027 | ✅ Yes |
141
135
 
142
136
  #### MongoDB
143
137
 
144
- 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.
138
+ 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. MongoDB "rapid releases" are ignored as these are considered pre-releases of the next major version.
145
139
 
146
- | Version | Latest Version | End-of-Life | Compatible |
147
- |-------------|----------------|---------------|--------------|
148
- | MongoDB 4.0 | 4.0.28 | April 2022 | ✅ Yes |
149
- | MongoDB 4.2 | 4.2.19 | April 2023 | ✅ Yes |
150
- | MongoDB 4.4 | 4.4.13 | February 2024 | ✅ Yes |
151
- | MongoDB 5 | 5.3.2 | October 2024 | ✅ Yes |
152
- | MongoDB 6 | 6.0.2 | July 2025 | ✅ Yes |
140
+ | Version | Latest Version | End-of-Life | Compatible |
141
+ |-------------|----------------|---------------|------------|
142
+ | MongoDB 4.2 | 4.2.25 | April 2023 | ✅ Yes |
143
+ | MongoDB 4.4 | 4.4.29 | February 2024 | ✅ Yes |
144
+ | MongoDB 5 | 5.0.26 | October 2024 | ✅ Yes |
145
+ | MongoDB 6 | 6.0.14 | July 2025 | ✅ Yes |
146
+ | MongoDB 7 | 7.0.8 | TDB | ✅ Yes |
147
+ | MongoDB 8 | 8.0.0 | TDB | ✅ Yes |
153
148
 
154
149
  #### PostgreSQL
155
150
 
@@ -157,11 +152,11 @@ Parse Server is continuously tested with the most recent releases of PostgreSQL
157
152
 
158
153
  | Version | PostGIS Version | End-of-Life | Parse Server Support | Compatible |
159
154
  |-------------|--------------------|---------------|----------------------|------------|
160
- | Postgres 11 | 3.0, 3.1, 3.2, 3.3 | November 2023 | <= 5.x (2022) | ✅ Yes |
161
- | Postgres 12 | 3.3 | November 2024 | <= 5.x (2022) | ✅ Yes |
162
- | Postgres 13 | 3.3 | November 2025 | <= 6.x (2023) | ✅ Yes |
163
- | Postgres 14 | 3.3 | November 2026 | <= 7.x (2024) | ✅ Yes |
164
- | Postgres 15 | 3.3 | November 2027 | <= 8.x (2025) | ✅ Yes |
155
+ | Postgres 13 | 3.1, 3.2, 3.3, 3.4, 3.5 | November 2025 | <= 6.x (2023) | ✅ Yes |
156
+ | Postgres 14 | 3.5 | November 2026 | <= 7.x (2024) | ✅ Yes |
157
+ | Postgres 15 | 3.5 | November 2027 | <= 8.x (2025) | ✅ Yes |
158
+ | Postgres 16 | 3.5 | November 2028 | <= 9.x (2026) | ✅ Yes |
159
+ | Postgres 17 | 3.5 | November 2029 | <= 9.x (2026) | ✅ Yes |
165
160
 
166
161
  ### Locally
167
162
 
@@ -283,17 +278,18 @@ We have provided a basic [Node.js application](https://github.com/parse-communit
283
278
  * [Back4app](https://www.back4app.com/docs/get-started/welcome)
284
279
  * [Glitch](https://glitch.com/edit/#!/parse-server)
285
280
  * [Flynn](https://flynn.io/blog/parse-apps-on-flynn)
281
+ * [Elestio](https://elest.io/open-source/parse)
286
282
 
287
283
  ### Parse Server + Express
288
284
 
289
285
  You can also create an instance of Parse Server, and mount it on a new or existing Express website:
290
286
 
291
287
  ```js
292
- var express = require('express');
293
- var ParseServer = require('parse-server').ParseServer;
294
- var app = express();
288
+ const express = require('express');
289
+ const ParseServer = require('parse-server').ParseServer;
290
+ const app = express();
295
291
 
296
- var api = new ParseServer({
292
+ const server = new ParseServer({
297
293
  databaseURI: 'mongodb://localhost:27017/dev', // Connection string for your MongoDB database
298
294
  cloud: './cloud/main.js', // Path to your Cloud Code
299
295
  appId: 'myAppId',
@@ -302,21 +298,45 @@ var api = new ParseServer({
302
298
  serverURL: 'http://localhost:1337/parse' // Don't forget to change to https if needed
303
299
  });
304
300
 
301
+ // Start server
302
+ await server.start();
303
+
305
304
  // Serve the Parse API on the /parse URL prefix
306
- app.use('/parse', api);
305
+ app.use('/parse', server.app);
307
306
 
308
307
  app.listen(1337, function() {
309
308
  console.log('parse-server-example running on port 1337.');
310
309
  });
311
310
  ```
312
311
 
313
- For a full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations](http://parseplatform.org/parse-server/api/master/ParseServerOptions.html).
312
+ For a full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations][server-options].
313
+
314
+ ## Parse Server Health
315
+
316
+ Check the Parse Server health by sending a request to the `/parse/health` endpoint.
317
+
318
+ The response looks like this:
319
+
320
+ ```json
321
+ {
322
+ "status": "ok"
323
+ }
324
+ ```
325
+
326
+ ### Status Values
327
+
328
+ | Value | Description |
329
+ |---------------|-----------------------------------------------------------------------------|
330
+ | `initialized` | The server has been created but the `start` method has not been called yet. |
331
+ | `starting` | The server is starting up. |
332
+ | `ok` | The server started and is running. |
333
+ | `error` | There was a startup error, see the logs for details. |
314
334
 
315
335
  # Configuration
316
336
 
317
337
  Parse Server can be configured using the following options. You may pass these as parameters when running a standalone `parse-server`, or by loading a configuration file in JSON format using `parse-server path/to/configuration.json`. If you're using Parse Server on Express, you may also pass these to the `ParseServer` object as options.
318
338
 
319
- For the full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations](http://parseplatform.org/parse-server/api/master/ParseServerOptions.html).
339
+ For the full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations][server-options].
320
340
 
321
341
  ## Basic Options
322
342
 
@@ -337,9 +357,20 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo
337
357
  * `restAPIKey`
338
358
  * `dotNetKey`
339
359
 
360
+ ## Access Scopes
361
+
362
+ | Scope | Internal data | Read-only data <sub>(1)</sub> | Custom data | Restricted by CLP, ACL | Key |
363
+ |----------------|---------------|-------------------------------|-------------|------------------------|---------------------|
364
+ | Internal | r/w | r/w | r/w | no | `maintenanceKey` |
365
+ | Master | -/- | r/- | r/w | no | `masterKey` |
366
+ | ReadOnlyMaster | -/- | r/- | r/- | no | `readOnlyMasterKey` |
367
+ | Session | -/- | r/- | r/w | yes | `sessionToken` |
368
+
369
+ <sub>(1) `Parse.Object.createdAt`, `Parse.Object.updatedAt`.</sub>
370
+
340
371
  ## Email Verification and Password Reset
341
372
 
342
- Verifying user email addresses and enabling password reset via email requires an email adapter. There are many email adapters provided and maintained by the community. The following is an example configuration with an example email adapter. See the [Parse Server Options](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html) for more details and a full list of available options.
373
+ Verifying user email addresses and enabling password reset via email requires an email adapter. There are many email adapters provided and maintained by the community. The following is an example configuration with an example email adapter. See the [Parse Server Options][server-options] for more details and a full list of available options.
343
374
 
344
375
  ```js
345
376
  const server = ParseServer({
@@ -379,7 +410,7 @@ Email adapters contributed by the community:
379
410
 
380
411
  ## Password and Account Policy
381
412
 
382
- Set a password and account policy that meets your security requirements. The following is an example configuration. See the [Parse Server Options](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html) for more details and a full list of available options.
413
+ Set a password and account policy that meets your security requirements. The following is an example configuration. See the [Parse Server Options][server-options] for more details and a full list of available options.
383
414
 
384
415
  ```js
385
416
  const server = ParseServer({
@@ -396,7 +427,7 @@ const server = ParseServer({
396
427
  },
397
428
 
398
429
  // The password policy
399
- passwordPolicy: {
430
+ passwordPolicy: {
400
431
  // Enforce a password of at least 8 characters which contain at least 1 lower case, 1 upper case and 1 digit
401
432
  validatorPattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/,
402
433
  // Do not allow the username as part of the password
@@ -437,7 +468,7 @@ const api = new ParseServer({
437
468
 
438
469
  The above route can be invoked by sending a `GET` request to:
439
470
  `https://[parseServerPublicUrl]/[parseMount]/[pagesEndpoint]/[appId]/[customRoute]`
440
-
471
+
441
472
  The `handler` receives the `request` and returns a `custom_page.html` webpage from the `pages.pagesPath` directory as response. The advantage of building a custom route this way is that it automatically makes use of Parse Server's built-in capabilities, such as [page localization](#pages) and [dynamic placeholders](#dynamic-placeholders).
442
473
 
443
474
  ### Reserved Paths
@@ -445,7 +476,7 @@ The `handler` receives the `request` and returns a `custom_page.html` webpage fr
445
476
  The following paths are already used by Parse Server's built-in features and are therefore not available for custom routes. Custom routes with an identical combination of `path` and `method` are ignored.
446
477
 
447
478
  | Path | HTTP Method | Feature |
448
- | --------------------------- | ----------- | ------------------ |
479
+ |-----------------------------|-------------|--------------------|
449
480
  | `verify_email` | `GET` | email verification |
450
481
  | `resend_verification_email` | `POST` | email verification |
451
482
  | `choose_password` | `GET` | password reset |
@@ -455,7 +486,7 @@ The following paths are already used by Parse Server's built-in features and are
455
486
  ### Parameters
456
487
 
457
488
  | Parameter | Optional | Type | Default value | Example values | Environment variable | Description |
458
- | ---------------------------- | -------- | --------------- | ------------- | --------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
489
+ |------------------------------|----------|-----------------|---------------|-----------------------|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
459
490
  | `pages` | yes | `Object` | `undefined` | - | `PARSE_SERVER_PAGES` | The options for pages such as password reset and email verification. |
460
491
  | `pages.enableRouter` | yes | `Boolean` | `false` | - | `PARSE_SERVER_PAGES_ENABLE_ROUTER` | Is `true` if the pages router should be enabled; this is required for any of the pages options to take effect. **Caution, this is an experimental feature that may not be appropriate for production.** |
461
492
  | `pages.customRoutes` | yes | `Array` | `[]` | - | `PARSE_SERVER_PAGES_CUSTOM_ROUTES` | The custom routes. The routes are added in the order they are defined here, which has to be considered since requests traverse routes in an ordered manner. Custom routes are traversed after build-in routes such as password reset and email verification. |
@@ -468,7 +499,7 @@ The following paths are already used by Parse Server's built-in features and are
468
499
  It’s possible to change the default pages of the app and redirect the user to another path or domain.
469
500
 
470
501
  ```js
471
- var server = ParseServer({
502
+ const server = ParseServer({
472
503
  ...otherOptions,
473
504
 
474
505
  customPages: {
@@ -525,7 +556,7 @@ Parse Server allows developers to choose from several options when hosting files
525
556
  `GridFSBucketAdapter` is used by default and requires no setup, but if you're interested in using Amazon S3, Google Cloud Storage, or local file storage, additional configuration information is available in the [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/#configuring-file-adapters).
526
557
 
527
558
  ## Idempotency Enforcement
528
-
559
+
529
560
  **Caution, this is an experimental feature that may not be appropriate for production.**
530
561
 
531
562
  This feature deduplicates identical requests that are received by Parse Server multiple times, typically due to network issues or network adapter access restrictions on mobile operating systems.
@@ -550,7 +581,7 @@ let api = new ParseServer({
550
581
  ### Parameters <!-- omit in toc -->
551
582
 
552
583
  | Parameter | Optional | Type | Default value | Example values | Environment variable | Description |
553
- | -------------------------- | -------- | --------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
584
+ |----------------------------|----------|-----------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
554
585
  | `idempotencyOptions` | yes | `Object` | `undefined` | | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_OPTIONS | Setting this enables idempotency enforcement for the specified paths. |
555
586
  | `idempotencyOptions.paths` | yes | `Array<String>` | `[]` | `.*` (all paths, includes the examples below), <br>`functions/.*` (all functions), <br>`jobs/.*` (all jobs), <br>`classes/.*` (all classes), <br>`functions/.*` (all functions), <br>`users` (user creation / update), <br>`installations` (installation creation / update) | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_PATHS | An array of path patterns that have to match the request path for request deduplication to be enabled. The mount path must not be included, for example to match the request path `/parse/functions/myFunction` specify the path pattern `functions/myFunction`. A trailing slash of the request path is ignored, for example the path pattern `functions/myFunction` matches both `/parse/functions/myFunction` and `/parse/functions/myFunction/`. |
556
587
  | `idempotencyOptions.ttl` | yes | `Integer` | `300` | `60` (60 seconds) | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_TTL | The duration in seconds after which a request record is discarded from the database. Duplicate requests due to network issues can be expected to arrive within milliseconds up to several seconds. This value must be greater than `0`. |
@@ -751,7 +782,7 @@ The following parameter and placeholder keys are reserved because they are used
751
782
  #### Parameters
752
783
 
753
784
  | Parameter | Optional | Type | Default value | Example values | Environment variable | Description |
754
- | ----------------------------------------------- | -------- | ------------------------------------- | -------------------------------------- | ---------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
785
+ |-------------------------------------------------|----------|---------------------------------------|----------------------------------------|------------------------------------------------------|-----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
755
786
  | `pages` | yes | `Object` | `undefined` | - | `PARSE_SERVER_PAGES` | The options for pages such as password reset and email verification. |
756
787
  | `pages.enableRouter` | yes | `Boolean` | `false` | - | `PARSE_SERVER_PAGES_ENABLE_ROUTER` | Is `true` if the pages router should be enabled; this is required for any of the pages options to take effect. **Caution, this is an experimental feature that may not be appropriate for production.** |
757
788
  | `pages.enableLocalization` | yes | `Boolean` | `false` | - | `PARSE_SERVER_PAGES_ENABLE_LOCALIZATION` | Is true if pages should be localized; this has no effect on custom page redirects. |
@@ -858,7 +889,7 @@ Then, create an `index.js` file with the following content:
858
889
 
859
890
  ```js
860
891
  const express = require('express');
861
- const { default: ParseServer, ParseGraphQLServer } = require('parse-server');
892
+ const { ParseServer, ParseGraphQLServer } = require('parse-server');
862
893
 
863
894
  const app = express();
864
895
 
@@ -882,6 +913,7 @@ app.use('/parse', parseServer.app); // (Optional) Mounts the REST API
882
913
  parseGraphQLServer.applyGraphQL(app); // Mounts the GraphQL API
883
914
  parseGraphQLServer.applyPlayground(app); // (Optional) Mounts the GraphQL Playground - do NOT use in Production
884
915
 
916
+ await parseServer.start();
885
917
  app.listen(1337, function() {
886
918
  console.log('REST API running on http://localhost:1337/parse');
887
919
  console.log('GraphQL API running on http://localhost:1337/graphql');
@@ -1123,12 +1155,6 @@ You also have a very powerful tool inside your GraphQL Playground. Please look a
1123
1155
 
1124
1156
  Additionally, the [GraphQL Learn Section](https://graphql.org/learn/) is a very good source to learn more about the power of the GraphQL language.
1125
1157
 
1126
- # Upgrading to Parse Server 3.0
1127
-
1128
- 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.
1129
-
1130
- We have written up a [migration guide](3.0.0.md) to help you transition to the next major release.
1131
-
1132
1158
  # Contributing
1133
1159
 
1134
1160
  Please see the [Contributing Guide](CONTRIBUTING.md).
@@ -1180,13 +1206,8 @@ Support us with a monthly donation and help us continue our activities. [Become
1180
1206
 
1181
1207
  <a href="https://opencollective.com/parse-server#backers" target="_blank"><img src="https://opencollective.com/parse-server/backers.svg?width=890" /></a>
1182
1208
 
1183
- -----
1184
-
1185
- As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
1186
-
1187
- [license-svg]: https://img.shields.io/badge/license-BSD-lightgrey.svg
1188
- [license-link]: LICENSE
1189
1209
  [open-collective-link]: https://opencollective.com/parse-server
1190
1210
  [log_release]: https://github.com/parse-community/parse-server/blob/release/changelogs/CHANGELOG_release.md
1191
1211
  [log_beta]: https://github.com/parse-community/parse-server/blob/beta/changelogs/CHANGELOG_beta.md
1192
1212
  [log_alpha]: https://github.com/parse-community/parse-server/blob/alpha/changelogs/CHANGELOG_alpha.md
1213
+ [server-options] http://parseplatform.org/parse-server/api/release/ParseServerOptions.html