parse-server 9.9.1-alpha.2 → 9.9.1-alpha.3
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 +10 -2
- package/lib/Options/Definitions.js +2 -2
- package/lib/Options/docs.js +2 -2
- package/lib/Options/index.js +1 -1
- package/lib/batch.js +14 -1
- package/lib/middlewares.js +34 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,11 @@ A big _thank you_ 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
|
|
|
73
73
|
- [Restricting File URL Domains](#restricting-file-url-domains)
|
|
74
74
|
- [Idempotency Enforcement](#idempotency-enforcement)
|
|
75
75
|
- [Installations](#installations)
|
|
76
|
+
- [Options](#options)
|
|
77
|
+
- [`duplicateDeviceTokenActionEnforceAuth`](#duplicatedevicetokenactionenforceauth)
|
|
78
|
+
- [`duplicateDeviceTokenAction`](#duplicatedevicetokenaction)
|
|
79
|
+
- [`duplicateDeviceTokenMergePriority`](#duplicatedevicetokenmergepriority)
|
|
80
|
+
- [Configuration example](#configuration-example)
|
|
76
81
|
- [Localization](#localization)
|
|
77
82
|
- [Pages](#pages)
|
|
78
83
|
- [Localization with Directory Structure](#localization-with-directory-structure)
|
|
@@ -314,7 +319,7 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo
|
|
|
314
319
|
|
|
315
320
|
## Route Allow List
|
|
316
321
|
|
|
317
|
-
The `routeAllowList` option restricts which API routes are accessible to external clients. When set, all external requests are denied by default unless the route matches one of the configured regex patterns. This is useful for apps where all logic runs in Cloud Code and clients should not access the API directly.
|
|
322
|
+
The `routeAllowList` option restricts which REST API routes are accessible to external clients. When set, all external REST API requests are denied by default unless the route matches one of the configured regex patterns. This is useful for apps where all logic runs in Cloud Code and clients should not access the REST API directly.
|
|
318
323
|
|
|
319
324
|
Internal calls from Cloud Code, Cloud Jobs, and triggers are not affected. Master key and maintenance key requests bypass the restriction.
|
|
320
325
|
|
|
@@ -334,7 +339,7 @@ const server = ParseServer({
|
|
|
334
339
|
|
|
335
340
|
Each entry is a regex pattern matched against the normalized route identifier. Patterns are auto-anchored with `^` and `$` for full-match semantics. For example, `classes/Chat` matches only `classes/Chat`, not `classes/ChatRoom`. Use `classes/Chat.*` to match both.
|
|
336
341
|
|
|
337
|
-
Setting an empty array `[]` blocks all external non-master-key requests (full lockdown). Not setting the option preserves current behavior (all routes accessible).
|
|
342
|
+
Setting an empty array `[]` blocks all external non-master-key REST API requests (full lockdown of REST API routes). Not setting the option preserves current behavior (all routes accessible).
|
|
338
343
|
|
|
339
344
|
### Covered Routes
|
|
340
345
|
|
|
@@ -395,6 +400,9 @@ The following table lists all route groups covered by `routeAllowList` with exam
|
|
|
395
400
|
> [!NOTE]
|
|
396
401
|
> File routes are not covered by `routeAllowList`. File upload access is controlled via the `fileUpload` option. File download and metadata access is controlled via the `fileDownload` option.
|
|
397
402
|
|
|
403
|
+
> [!NOTE]
|
|
404
|
+
> The GraphQL API is not covered by `routeAllowList`. `routeAllowList` gates the REST API per route, while every GraphQL operation is transported over a single endpoint with the operation, target class, and field set encoded in the request body — so per-route allow-list semantics do not compose with it.
|
|
405
|
+
|
|
398
406
|
## Email Verification and Password Reset
|
|
399
407
|
|
|
400
408
|
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.
|