Skip to content

Commit fce0b14

Browse files
authored
Merge branch 'parse-community:master' into master
2 parents 7fea7d8 + 2783245 commit fce0b14

File tree

15 files changed

+1244
-1085
lines changed

15 files changed

+1244
-1085
lines changed

.github/ISSUE_TEMPLATE/---1-report-an-issue.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ assignees: ''
99

1010
### New Issue Checklist
1111
<!--
12-
Please check the following boxes [x] before submitting your issue.
12+
Check every following box [x] before submitting your issue.
1313
Click the "Preview" tab for better readability.
14-
Thanks for contributing to Parse Server!
14+
Thanks for contributing to Parse Platform!
1515
-->
1616

1717
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
@@ -30,18 +30,7 @@ assignees: ''
3030

3131
### Expected Outcome
3232
<!-- What outcome, for example query result, did you expect? -->
33-
34-
### Failing Test Case / Pull Request
35-
<!--
36-
Check one of the following boxes [x] if you added a PR and add the link.
37-
See the contribution guide for how add a test cases:
38-
https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md
39-
-->
40-
41-
- [ ] 🤩 I submitted a PR with a fix and a test case.
42-
- [ ] 🧐 I submitted a PR with a failing test case.
43-
44-
### Environment
33+
### Environment
4534
<!-- Be specific with versions, don't use "latest" or semver ranges like "~x.y.z" or "^x.y.z". -->
4635

4736
Server

.github/ISSUE_TEMPLATE/---2-feature-request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ assignees: ''
99

1010
### New Feature / Enhancement Checklist
1111
<!--
12-
Please check the following boxes [x] before submitting your issue.
12+
Check every following box [x] before submitting your issue.
1313
Click the "Preview" tab for better readability.
14-
Thanks for contributing to Parse Server!
14+
Thanks for contributing to Parse Platform!
1515
-->
1616

1717
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
@@ -31,4 +31,4 @@ assignees: ''
3131
<!-- Which alternatives or workarounds exist currently? -->
3232

3333
### 3rd Party References
34-
<!-- Have you seen a similar functionality provided somewhere else? -->
34+
<!-- Have you seen a similar functionality provided somewhere else? -->

.github/workflows/ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- '**'
99
env:
10-
NODE_VERSION: 14.17.5
10+
NODE_VERSION: 14.17.6
1111
PARSE_SERVER_TEST_TIMEOUT: 20000
1212
jobs:
1313
check-ci:
@@ -31,6 +31,13 @@ jobs:
3131
run: npm ci
3232
- name: CI Self-Check
3333
run: npm run ci:check
34+
check-changelog:
35+
name: Changelog
36+
timeout-minutes: 5
37+
runs-on: ubuntu-18.04
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: dangoslen/changelog-enforcer@v2
3441
check-lint:
3542
name: Lint
3643
timeout-minutes: 15
@@ -97,38 +104,38 @@ jobs:
97104
MONGODB_VERSION: 5.0.2
98105
MONGODB_TOPOLOGY: replicaset
99106
MONGODB_STORAGE_ENGINE: wiredTiger
100-
NODE_VERSION: 14.17.5
107+
NODE_VERSION: 14.17.6
101108
- name: MongoDB 4.4, ReplicaSet, WiredTiger
102109
MONGODB_VERSION: 4.4.8
103110
MONGODB_TOPOLOGY: replicaset
104111
MONGODB_STORAGE_ENGINE: wiredTiger
105-
NODE_VERSION: 14.17.5
112+
NODE_VERSION: 14.17.6
106113
- name: MongoDB 4.2, ReplicaSet, WiredTiger
107114
MONGODB_VERSION: 4.2.15
108115
MONGODB_TOPOLOGY: replicaset
109116
MONGODB_STORAGE_ENGINE: wiredTiger
110-
NODE_VERSION: 14.17.5
117+
NODE_VERSION: 14.17.6
111118
- name: MongoDB 4.0, ReplicaSet, WiredTiger
112119
MONGODB_VERSION: 4.0.25
113120
MONGODB_TOPOLOGY: replicaset
114121
MONGODB_STORAGE_ENGINE: wiredTiger
115-
NODE_VERSION: 14.17.5
122+
NODE_VERSION: 14.17.6
116123
- name: MongoDB 4.0, Standalone, MMAPv1
117124
MONGODB_VERSION: 4.0.25
118125
MONGODB_TOPOLOGY: standalone
119126
MONGODB_STORAGE_ENGINE: mmapv1
120-
NODE_VERSION: 14.17.5
127+
NODE_VERSION: 14.17.6
121128
- name: Redis Cache
122129
PARSE_SERVER_TEST_CACHE: redis
123130
MONGODB_VERSION: 4.4.8
124131
MONGODB_TOPOLOGY: standalone
125132
MONGODB_STORAGE_ENGINE: wiredTiger
126-
NODE_VERSION: 14.17.5
133+
NODE_VERSION: 14.17.6
127134
- name: Node 12
128135
MONGODB_VERSION: 4.4.8
129136
MONGODB_TOPOLOGY: standalone
130137
MONGODB_STORAGE_ENGINE: wiredTiger
131-
NODE_VERSION: 12.22.5
138+
NODE_VERSION: 12.22.6
132139
- name: Node 15
133140
MONGODB_VERSION: 4.4.8
134141
MONGODB_TOPOLOGY: standalone
@@ -175,16 +182,16 @@ jobs:
175182
include:
176183
- name: PostgreSQL 11, PostGIS 3.0
177184
POSTGRES_IMAGE: postgis/postgis:11-3.0
178-
NODE_VERSION: 14.17.5
185+
NODE_VERSION: 14.17.6
179186
- name: PostgreSQL 11, PostGIS 3.1
180187
POSTGRES_IMAGE: postgis/postgis:11-3.1
181-
NODE_VERSION: 14.17.5
188+
NODE_VERSION: 14.17.6
182189
- name: PostgreSQL 12, PostGIS 3.1
183190
POSTGRES_IMAGE: postgis/postgis:12-3.1
184-
NODE_VERSION: 14.17.5
191+
NODE_VERSION: 14.17.6
185192
- name: PostgreSQL 13, PostGIS 3.1
186193
POSTGRES_IMAGE: postgis/postgis:13-3.1
187-
NODE_VERSION: 14.17.5
194+
NODE_VERSION: 14.17.6
188195
fail-fast: false
189196
name: ${{ matrix.name }}
190197
timeout-minutes: 15

.github/workflows/issue-bot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Issue Bot
2+
on:
3+
issues:
4+
types: [opened, reopened, edited]
5+
jobs:
6+
issue-bot:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Inspect Issue
10+
uses: parse-community/parse-issue-bot@main
11+
with:
12+
github-token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 68 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22

33
Jump directly to a version:
44

5-
| 4.x |
6-
|-------------------|
7-
| [**4.5.0 (latest release)**](#450) |
8-
| [4.4.0](#440) |
9-
| [4.3.0](#430) |
10-
| [4.2.0](#420) |
11-
| [4.1.0](#410) |
12-
| [4.0.2](#402) |
13-
| [4.0.1](#401) |
14-
| [4.0.0](#400) |
5+
| 4.x |
6+
|--------------------------------------|
7+
| [**4.10.3 (latest release)**](#4103) |
8+
| [4.10.2](#4102) |
9+
| [4.10.1](#4101) |
10+
| [4.10.0](#4100) |
11+
| [4.5.2](#452) |
12+
| [4.5.1](#451) |
13+
| [4.5.0](#450) |
14+
| [4.4.0](#440) |
15+
| [4.3.0](#430) |
16+
| [4.2.0](#420) |
17+
| [4.1.0](#410) |
18+
| [4.0.2](#402) |
19+
| [4.0.1](#401) |
20+
| [4.0.0](#400) |
1521

1622
<details>
1723
<summary>Previous Versions</summary>
@@ -88,28 +94,30 @@ Jump directly to a version:
8894
___
8995

9096
## Unreleased (Master Branch)
91-
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.5.0...master)
97+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.3...master)
98+
9299
### Breaking Changes
93100
- Improved schema caching through database real-time hooks. Reduces DB queries, decreases Parse Query execution time and fixes a potential schema memory leak. If multiple Parse Server instances connect to the same DB (for example behind a load balancer), set the [Parse Server Option](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html) `databaseOptions.enableSchemaHooks: true` to enable this feature and keep the schema in sync across all instances. Failing to do so will cause a schema change to not propagate to other instances and re-syncing will only happen when these instances restart. The options `enableSingleSchemaCache` and `schemaCacheTTL` have been removed. To use this feature with MongoDB, a replica set cluster with [change stream](https://docs.mongodb.com/manual/changeStreams/#availability) support is required. (Diamond Lewis, SebC) [#7214](https://github.com/parse-community/parse-server/issues/7214)
94101
- Added file upload restriction. File upload is now only allowed for authenticated users by default for improved security. To allow file upload also for Anonymous Users or Public, set the `fileUpload` parameter in the [Parse Server Options](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html) (dblythy, Manuel Trezza) [#7071](https://github.com/parse-community/parse-server/pull/7071)
95102
- Removed [parse-server-simple-mailgun-adapter](https://github.com/parse-community/parse-server-simple-mailgun-adapter) dependency; to continue using the adapter it has to be explicitly installed (Manuel Trezza) [#7321](https://github.com/parse-community/parse-server/pull/7321)
96103
- Remove support for MongoDB 3.6 which has reached its End-of-Life date and PostgreSQL 10 (Manuel Trezza) [#7315](https://github.com/parse-community/parse-server/pull/7315)
97104
- Remove support for Node 10 which has reached its End-of-Life date (Manuel Trezza) [#7314](https://github.com/parse-community/parse-server/pull/7314)
98105
- Remove S3 Files Adapter from Parse Server, instead install separately as `@parse/s3-files-adapter` (Manuel Trezza) [#7324](https://github.com/parse-community/parse-server/pull/7324)
106+
99107
### Notable Changes
100108
- Added Parse Server Security Check to report weak security settings (Manuel Trezza, dblythy) [#7247](https://github.com/parse-community/parse-server/issues/7247)
101109
- EXPERIMENTAL: Added new page router with placeholder rendering and localization of custom and feature pages such as password reset and email verification (Manuel Trezza) [#7128](https://github.com/parse-community/parse-server/pull/7128)
102110
- EXPERIMENTAL: Added custom routes to easily customize flows for password reset, email verification or build entirely new flows (Manuel Trezza) [#7231](https://github.com/parse-community/parse-server/pull/7231)
103111
- Added Deprecation Policy to govern the introduction of breaking changes in a phased pattern that is more predictable for developers (Manuel Trezza) [#7199](https://github.com/parse-community/parse-server/pull/7199)
104112
- Add REST API endpoint `/loginAs` to create session of any user with master key; allows to impersonate another user. (GormanFletcher) [#7406](https://github.com/parse-community/parse-server/pull/7406)
105113
- Add official support for MongoDB 5.0 (Manuel Trezza) [#7469](https://github.com/parse-community/parse-server/pull/7469)
114+
- Add issue bot (Manuel Trezza) [#7523](https://github.com/parse-community/parse-server/pull/7523)
106115

107116
### Other Changes
108117
- Support native mongodb syntax in aggregation pipelines (Raschid JF Rafeally) [#7339](https://github.com/parse-community/parse-server/pull/7339)
109118
- Fix error when a not yet inserted job is updated (Antonio Davi Macedo Coelho de Castro) [#7196](https://github.com/parse-community/parse-server/pull/7196)
110119
- request.context for afterFind triggers (dblythy) [#7078](https://github.com/parse-community/parse-server/pull/7078)
111120
- Winston Logger interpolating stdout to console (dplewis) [#7114](https://github.com/parse-community/parse-server/pull/7114)
112-
- Move graphql-tag from devDependencies to dependencies (Antonio Davi Macedo Coelho de Castro) [#7183](https://github.com/parse-community/parse-server/pull/7183)
113121
- Added convenience method `Parse.Cloud.sendEmail(...)` to send email via email adapter in Cloud Code (dblythy) [#7089](https://github.com/parse-community/parse-server/pull/7089)
114122
- LiveQuery support for $and, $nor, $containedBy, $geoWithin, $geoIntersects queries (dplewis) [#7113](https://github.com/parse-community/parse-server/pull/7113)
115123
- Supporting patterns in LiveQuery server's config parameter `classNames` (Nes-si) [#7131](https://github.com/parse-community/parse-server/pull/7131)
@@ -139,8 +147,55 @@ ___
139147
- Fix LiveQuery server crash when using $all query operator on a missing object key (Jason Posthuma) [#7421](https://github.com/parse-community/parse-server/pull/7421)
140148
- Added runtime deprecation warnings (Manuel Trezza) [#7451](https://github.com/parse-community/parse-server/pull/7451)
141149
- Add ability to pass context of an object via a header, X-Parse-Cloud-Context, for Cloud Code triggers. The header addition allows client SDK's to add context without injecting _context in the body of JSON objects (Corey Baker) [#7437](https://github.com/parse-community/parse-server/pull/7437)
150+
- Add CI check to add changelog entry (Manuel Trezza) [#7512](https://github.com/parse-community/parse-server/pull/7512)
151+
- Refactor: uniform issue templates across repos (Manuel Trezza) [#7528](https://github.com/parse-community/parse-server/pull/7528)
152+
- ci: bump ci environment (Manuel Trezza) [#7539](https://github.com/parse-community/parse-server/pull/7539)
153+
154+
## 4.10.3
155+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.2...4.10.3)
156+
157+
### Security Fixes
158+
- Validate `explain` query parameter to avoid a server crash due to MongoDB bug [NODE-3463](https://jira.mongodb.org/browse/NODE-3463) (Kartal Kaan Bozdogan) [GHSA-xqp8-w826-hh6x](https://github.com/parse-community/parse-server/security/advisories/GHSA-xqp8-w826-hh6x)
159+
160+
## 4.10.2
161+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.1...4.10.2)
162+
163+
### Other Changes
164+
- Move graphql-tag from devDependencies to dependencies (Antonio Davi Macedo Coelho de Castro) [#7183](https://github.com/parse-community/parse-server/pull/7183)
165+
166+
## 4.10.1
167+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.0...4.10.1)
168+
169+
### Security Fixes
170+
- Updated to Parse JS SDK 3.3.0 and other security fixes (Manuel Trezza) [#7508](https://github.com/parse-community/parse-server/pull/7508)
171+
172+
> ⚠️ This includes a security fix of the Parse JS SDK where `logIn` will default to `POST` instead of `GET` method. This may require changes in your deployment before you upgrade to this release, see the Parse JS SDK 3.0.0 [release notes](https://github.com/parse-community/Parse-SDK-JS/releases/tag/3.0.0).
173+
174+
## 4.10.0
175+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.5.2...4.10.0)
176+
177+
*Versions >4.5.2 and <4.10.0 are skipped.*
178+
179+
> ⚠️ A security incident caused a number of incorrect version tags to be pushed to the Parse Server repository. These version tags linked to a personal fork of a contributor who had write access to the repository. The code to which these tags linked has not been reviewed or approved by Parse Platform. Even though no releases were published with these incorrect versions, it was possible to define a Parse Server dependency that pointed to these version tags, for example if you defined this dependency:
180+
> ```js
181+
> "parse-server": "[email protected]:parse-community/parse-server.git#4.9.3"
182+
> ```
183+
>
184+
> We have since deleted the incorrect version tags, but they may still show up if your personal fork on GitHub or locally. We do not know when these tags have been pushed to the Parse Server repository, but we first became aware of this issue on July 21, 2021. We are not aware of any malicious code or concerns related to privacy, security or legality (e.g. proprietary code). However, it has been reported that some functionality does not work as expected and the introduction of security vulnerabilities cannot be ruled out.
185+
>
186+
> You may be also affected if you used the Bitnami image for Parse Server. Bitnami picked up the incorrect version tag `4.9.3` and published a new Bitnami image for Parse Server.
187+
>
188+
>**If you are using any of the affected versions, we urgently recommend to upgrade to version `4.10.0`.**
189+
190+
## 4.5.2
191+
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.5.0...4.5.2)
192+
193+
### Security Fixes
194+
- SECURITY FIX: Fixes incorrect session property `authProvider: password` of anonymous users. When signing up an anonymous user, the session field `createdWith` indicates incorrectly that the session has been created using username and password with `authProvider: password`, instead of an anonymous sign-up with `authProvider: anonymous`. This fixes the issue by setting the correct `authProvider: anonymous` for future sign-ups of anonymous users. This fix does not fix incorrect `authProvider: password` for existing sessions of anonymous users. Consider this if your app logic depends on the `authProvider` field. (Corey Baker) [GHSA-23r4-5mxp-c7g5](https://github.com/parse-community/parse-server/security/advisories/GHSA-23r4-5mxp-c7g5)
195+
196+
## 4.5.1
197+
*This version was published by mistake and was deprecated.*
142198
143-
___
144199
## 4.5.0
145200
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.4.0...4.5.0)
146201
### Breaking Changes

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Deprecations become breaking changes after notifying developers through deprecat
191191
- `5.0.0` marks the beginning of logging the deprecation warning for one entire major release
192192
- `6.0.0` makes the breaking change by removing the deprecation warning and making the new feature replace the existing feature
193193

194-
Developer feedback during the deprecation period may further postpone the introduction of a breaking change. The [Deprecation Plan](https://github.com/parse-community/parse-server/blob/master/DEPRECATIONS.md) gives an overview of deprecations and planned breaking changes.
194+
See the [Deprecation Plan](https://github.com/parse-community/parse-server/blob/master/DEPRECATIONS.md) for an overview of deprecations and planned breaking changes.
195195

196196
## Feature Considerations
197197
### Security Checks

DEPRECATIONS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Deprecation Plan <!-- omit in toc -->
22

3-
The following is a list of deprecations, according to the [Deprecation Policy](https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md#deprecation-policy). After a feature becomes deprecated, and giving developers time to adapt to the change, the deprecated feature will eventually be removed, leading to a breaking change. Developer feedback during the deprecation period may postpone the introduction of the breaking change.
3+
The following is a list of deprecations, according to the [Deprecation Policy](https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md#deprecation-policy). After a feature becomes deprecated, and giving developers time to adapt to the change, the deprecated feature will eventually be removed, leading to a breaking change. Developer feedback during the deprecation period may postpone or even revoke the introduction of the breaking change.
44

5-
| Feature | Issue | Deprecation [ℹ️][i_deprecation] | Planned Removal [ℹ️][i_removal] | Status [ℹ️][i_status] | Notes |
6-
|-----------------------------------------------|----------------------------------------------------------------------|---------------------------------|---------------------------------|-----------------------|-------|
7-
| Native MongoDB syntax in aggregation pipeline | [#7338](https://github.com/parse-community/parse-server/issues/7338) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
5+
| Change | Issue | Deprecation [ℹ️][i_deprecation] | Planned Removal [ℹ️][i_removal] | Status [ℹ️][i_status] | Notes |
6+
|-------------------------------------------------|----------------------------------------------------------------------|---------------------------------|---------------------------------|-----------------------|-------|
7+
| Native MongoDB syntax in aggregation pipeline | [#7338](https://github.com/parse-community/parse-server/issues/7338) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
8+
| Config option `directAccess` defaults to `true` | [#6636](https://github.com/parse-community/parse-server/pull/6636) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
89

910
[i_deprecation]: ## "The version and date of the deprecation."
1011
[i_removal]: ## "The version and date of the planned removal."

0 commit comments

Comments
 (0)