parse-server 5.4.0-beta.1 → 6.0.0-alpha.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
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
---
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
[](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Aalpha)
|
|
6
|
+
[](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Abeta)
|
|
7
|
+
[](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Arelease)
|
|
6
8
|
[](https://snyk.io/test/github/parse-community/parse-server)
|
|
7
9
|
[](https://codecov.io/github/parse-community/parse-server?branch=alpha)
|
|
8
10
|
[](https://github.com/parse-community/parse-dashboard/releases)
|
|
@@ -126,10 +128,8 @@ Parse Server is continuously tested with the most recent releases of Node.js to
|
|
|
126
128
|
|
|
127
129
|
| Version | Latest Version | End-of-Life | Compatible |
|
|
128
130
|
|------------|----------------|-------------|------------|
|
|
129
|
-
| Node.js 12 | 12.22.11 | April 2022 | ✅ Yes |
|
|
130
131
|
| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes |
|
|
131
132
|
| Node.js 16 | 16.14.2 | April 2024 | ✅ Yes |
|
|
132
|
-
| Node.js 17 | 17.9.0 | June 2022 | ✅ Yes |
|
|
133
133
|
| Node.js 18 | 18.1.0 | April 2025 | ✅ Yes |
|
|
134
134
|
|
|
135
135
|
#### MongoDB
|
|
@@ -389,7 +389,7 @@ const server = ParseServer({
|
|
|
389
389
|
},
|
|
390
390
|
|
|
391
391
|
// The password policy
|
|
392
|
-
passwordPolicy: {
|
|
392
|
+
passwordPolicy: {
|
|
393
393
|
// Enforce a password of at least 8 characters which contain at least 1 lower case, 1 upper case and 1 digit
|
|
394
394
|
validatorPattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/,
|
|
395
395
|
// Do not allow the username as part of the password
|
|
@@ -430,7 +430,7 @@ const api = new ParseServer({
|
|
|
430
430
|
|
|
431
431
|
The above route can be invoked by sending a `GET` request to:
|
|
432
432
|
`https://[parseServerPublicUrl]/[parseMount]/[pagesEndpoint]/[appId]/[customRoute]`
|
|
433
|
-
|
|
433
|
+
|
|
434
434
|
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).
|
|
435
435
|
|
|
436
436
|
### Reserved Paths
|
|
@@ -518,7 +518,7 @@ Parse Server allows developers to choose from several options when hosting files
|
|
|
518
518
|
`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).
|
|
519
519
|
|
|
520
520
|
## Idempotency Enforcement
|
|
521
|
-
|
|
521
|
+
|
|
522
522
|
**Caution, this is an experimental feature that may not be appropriate for production.**
|
|
523
523
|
|
|
524
524
|
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.
|
|
@@ -31,11 +31,11 @@ class LRUCache {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
del(key) {
|
|
34
|
-
this.cache.
|
|
34
|
+
this.cache.delete(key);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
clear() {
|
|
38
|
-
this.cache.
|
|
38
|
+
this.cache.clear();
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
}
|
|
@@ -43,4 +43,4 @@ class LRUCache {
|
|
|
43
43
|
exports.LRUCache = LRUCache;
|
|
44
44
|
var _default = LRUCache;
|
|
45
45
|
exports.default = _default;
|
|
46
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;charset=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