Commit Graph

3438 Commits

Author SHA1 Message Date
Brett Ponder
b20aa0c677 Remove Stage name check on aggregate pipelines (#7237)
* add search for atlas search index

* added test for search in pipeline

* removed stage name check in pipeline

* removed spec for invalid query invalid key

* updated changelog

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2021-03-03 14:46:49 -08:00
Diamond Lewis
d10e99007b fix: upgrade apollo-server-express from 2.19.2 to 2.20.0 (#7239)
Snyk has created this PR to upgrade apollo-server-express from 2.19.2 to 2.20.0.

See this package in npm:
https://www.npmjs.com/package/apollo-server-express

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-03-03 14:31:02 -08:00
Manuel
d789ca6b40 Fix password reset, email verification for custom endpoint (#7236)
* fixed incorrect endpoint for password reset and email verification

* added tests
2021-03-03 00:53:02 +01:00
Diamond Lewis
add67fdd22 fix: upgrade graphql-tag from 2.10.1 to 2.12.0 (#7234)
Snyk has created this PR to upgrade graphql-tag from 2.10.1 to 2.12.0.

See this package in npm:
https://www.npmjs.com/package/graphql-tag

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-03-02 15:49:23 -08:00
dblythy
3833868709 New: Validate Cloud Validators (#7154)
* new: validate cloud validators

* add otherKey

* Update CHANGELOG.md

* Update CloudCode.Validator.spec.js

* Update CloudCode.Validator.spec.js

* new: validate cloud validators

* add otherKey

* Update CHANGELOG.md

* Update CloudCode.Validator.spec.js

* Update CloudCode.Validator.spec.js

* Update Parse.Cloud.js

* Update CHANGELOG.md

* Change to throw error

Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
2021-03-02 00:52:21 +01:00
Antonio Davi Macedo Coelho de Castro
cd78f895d5 Move graphql-tag from devDependencies to dependencies (#7183)
* Move graphql-tag drom devDependencies to dependencies

* Add entry to CHANGELOG
2021-03-01 15:41:14 -08:00
Corey
2b9b336dd9 Fix flaky postgres test (#7228)
* Fix flaky postgres test

* add pgcrypto extension to test

* fix postgres ref link CONTRIBUTING guide and add pgcrypto extension

* Update CONTRIBUTING.md
2021-02-25 17:28:15 -06:00
Diamond Lewis
c4aadc974a Upgrade parse from 3.0.0 to 3.1.0 (#7222) 2021-02-24 10:51:11 -06:00
Miguel Serrano
92f50f6808 Add support for Facebook Limited Login (#7219)
* Add support for Facebook Limited auth

* Add tests

* Fix tests

* Fix tests

* Add entry to changelog

* Cleanup
2021-02-24 07:36:24 -06:00
Tom Fox
ec8f78424f fix: upgrade ws from 7.4.2 to 7.4.3 (#7224)
Snyk has created this PR to upgrade ws from 7.4.2 to 7.4.3.

See this package in npm:
https://www.npmjs.com/package/ws

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-23 23:21:06 -06:00
Diamond Lewis
f71b63b83c chore(ci): Bump node (#7221) 2021-02-23 13:54:52 -06:00
dblythy
91a0108084 New: allow options to be async on Cloud Validator (#7155)
* new: allow options to be async on Cloud Validator

* Update CHANGELOG.md

* Ensure pushStatus is properly running (#7213)

* Ensure pushStatus is properly running

* remove duplicate test

* new: allow options to be async on Cloud Validator

* Update CHANGELOG.md

* Update CloudCode.Validator.spec.js

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2021-02-23 02:56:54 -06:00
Antonio Davi Macedo Coelho de Castro
047683219d fix: package.json & package-lock.json to reduce vulnerabilities (#7218)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-1018905
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-23 02:52:15 -06:00
Manuel
67065584e4 changed lint to be separate CI task (#7216) 2021-02-21 17:41:33 -06:00
Diamond Lewis
f1394a93c2 Ensure pushStatus is properly running (#7213)
* Ensure pushStatus is properly running

* remove duplicate test
2021-02-20 15:17:15 -06:00
Antonio Davi Macedo Coelho de Castro
a649a9e600 Fix flaky test4 (#7212)
* Increase timeout for redis tests

* Remove for

* Increase little bit more one of the tests since it requires two calls to be done in time-fahsion way

* increase default ttl a bit more
2021-02-20 13:32:55 -06:00
Diamond Lewis
fd3c7fc1de Upgrade parse from 2.19.0 to 3.0.0 (#7211) 2021-02-19 11:52:08 -08:00
Antonio Davi Macedo Coelho de Castro
fba096a3e1 Fix session expiration test (#7208)
* Fix session expiration test

* Fix the other test with similar issue

* Remove fit
2021-02-19 13:31:06 -06:00
Diamond Lewis
5a0968721d fix: upgrade graphql from 15.4.0 to 15.5.0 (#7201)
Snyk has created this PR to upgrade graphql from 15.4.0 to 15.5.0.

See this package in npm:
https://www.npmjs.com/package/graphql

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-19 13:23:45 -06:00
OverDrive
a1cd631425 Fix for authenticating with instagram (#7173)
* Fix for authenticating with instagram

* Change tests for instagram authentication

* Instagram authentication for the case when data child object is presented in the response
2021-02-19 13:19:13 -06:00
Diamond Lewis
c05102b90c fix: upgrade pg-promise from 10.9.1 to 10.9.2 (#7209)
Snyk has created this PR to upgrade pg-promise from 10.9.1 to 10.9.2.

See this package in npm:
https://www.npmjs.com/package/pg-promise

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-18 21:00:36 -08:00
Antonio Davi Macedo Coelho de Castro
603cc1ffbc Fix error when a not yet inserted job is updated (#7196)
* Fix error when a not yet inserted job is updated

* Add entry to changelog

* revert the upsert change and fix the test

* Revert the change so job execute a single time

* Fix other tests with potential similar problem
2021-02-18 11:27:59 -08:00
Martin Man
9c100cf17d describe how to use forked parse-server in custom docker image (#7206) 2021-02-18 20:03:11 +01:00
Antonio Davi Macedo Coelho de Castro
a430d6f7b7 Fix flaky test with transactions (#7187)
* Fix flaky test with transactions

* Add CHANGELOG entry

* Fix the other transactions related tests that became flaky because now Parse Server tries to submit the transaction multilpe times in the case of TransientError

* Remove fit from tests
2021-02-18 10:18:54 -08:00
Antonio Davi Macedo Coelho de Castro
9a9fc5fa5f Bump tests to Mongo 4.0.23 (#7205)
* Bump tests to Mongo 4.0.23

* Bump node to 15.9.0 for tests
2021-02-18 10:43:45 +01:00
Manuel
5d84085071 Add contribution economics to guide (#7191)
* added contribution economics

* reformat

* removed duplicate phrase

* more rewording

* more rewording
2021-02-16 14:09:11 +01:00
Tom Fox
738ba9fc70 fix: upgrade follow-redirects from 1.13.1 to 1.13.2 (#7194)
Snyk has created this PR to upgrade follow-redirects from 1.13.1 to 1.13.2.

See this package in npm:
https://www.npmjs.com/package/follow-redirects

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-15 20:02:06 -08:00
dblythy
d42e3a16a9 Remove duplicate CHANGELOG for Parse.Cloud.sendEmail (#7188)
* Update CHANGELOG.md

* Update CHANGELOG.md
2021-02-15 15:55:21 -08:00
Corey
dcf5d24520 Update README.md (#7189) 2021-02-13 20:35:06 +01:00
dblythy
3d76643286 New: requireAnyUserRoles and requireAllUserRoles for Parse Cloud Validator (#7097)
* new: requireUserRole for Parse Cloud Validator

* change to requireUserRoles

* Update CHANGELOG.md

* revoke triggers

* Update triggers.js

* Update ParseLiveQueryServer.js

* Update ParseLiveQueryServer.js

* create requireUserRoles

* rename to requireAny and requireAll

* allow for a function
2021-02-12 14:01:38 -08:00
Kartal Kaan Bozdoğan
7224cde023 fix: Pass customObjectId in beforeSave (#7167)
* beforeSave custom object id fix

* Added regression test case for issue #6733
2021-02-12 15:57:22 -06:00
dblythy
72cf31a1db Minor Spelling and Grammar improvements to README (#7145)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
2021-02-12 14:01:48 +00:00
dblythy
e53b6c2f87 run prettier (#7172) 2021-02-12 10:18:49 +01:00
Antonio Davi Macedo Coelho de Castro
dc1133d355 Change tests from 4.4.3 to 4.4.4 (#7184)
* Change tests from 4.4.3 to 4.4.4

* Add entry to changelog
2021-02-12 09:59:06 +01:00
dblythy
762cdddeba Add Github process to contributing guide (#7105)
* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Revert "Update CONTRIBUTING.md"

This reverts commit 331d7dc6385bd25a9435a5f32e36e90922fded60.

* Update CONTRIBUTING.md
2021-02-11 23:13:20 -08:00
Corey
3f49d5154c Test against multiple versions of Postgres (#7176)
* Update ci.yml

* Add Postgis 3.0 test

* remove POSTGRES_MAJOR_VERSION from CI and script

* update docs

* nits

* nit

* Add postgres badges

* Add Postgres to TOC

* Shorten mongo and postgres descriptions

* Add badge for node, update mongo/postgres badges

* Add nodejs to TOC

* fix node js TOC

* Nit

* more nits
2021-02-11 23:33:55 +01:00
Manuel
4a3815d857 Add tests against multiple Nodejs versions (#7177)
* added nodejs version check

* added changelog entry

* fixed MongoDB ignored versions

* fixed nodejs test versions

* fixed typo

* added changelog entry

* added node 15 to CI checks

* improved log wording

* bumped nodejs default to 14

* added Node 15 to compatibility table
2021-02-11 17:59:34 +01:00
dblythy
27d56f0801 Fix: Proper handling of arrays for cloud validator (#7178)
* fix: proper handling of arrays for cloud validator

* Update CloudCode.Validator.spec.js
2021-02-11 00:29:34 -06:00
Manuel
7f47b0427e Add page localization (#7128)
* added localized pages; added refactored page templates; adapted test cases; introduced localization test cases

* added changelog entry

* fixed test description typo

* fixed bug in PromiseRouter where headers are not added for text reponse

* added page parameters in page headers for programmatic use

* refactored tests for PublicAPIRouter

* added mustache lib for template rendering

* fixed fs.promises module reference

* fixed template placeholder typo

* changed redirect response to provide headers instead of query parameters

* fix lint

* fixed syntax errors and typos in html templates

* removed obsolete URI encoding

* added locale inferring from request body and header

* added end-to-end localizaton test

* added server option validation; refactored pages server option

* fixed invalid redirect URL for no locale matching file

* added end-to-end localizaton tests

* adapted tests to new response content

* re-added PublicAPIRouter; added PagesRouter as experimental feature

* refactored PagesRouter test structure

* added configuration option for custom path to pages

* added configuration option for custom endpoint to pages

* fixed lint

* added tests

* added a distinct page for invalid password reset link

* renamed generic page invalidLink to expiredVerificationLink

* improved HTML files documentation

* improved HTML files documentation

* changed changelog entry for experimental feature

* improved file naming to make it more descriptive

* fixed file naming and env parameter naming

* added readme entry

* fixed readme TOC - hasn't been updated in a while

* added localization with JSON resource

* added JSON localization to feature pages (password reset, email verification)

* updated readme

* updated readme

* optimized JSON localization for feature pages; added e2e test case

* fixed readme typo

* minor refactoring of existing tests

* fixed bug where Object type was not recognized as config key type

* added feature config placeholders

* prettier

* added passing locale to page config placeholder callback

* refactored passing locale to placeholder to pass test

* added config placeholder feature to README

* fixed typo in README
2021-02-09 14:03:57 +01:00
Manuel
e3ed6e4600 Improve contribution guide (#7075)
* add Parse Error guide

* add Parse Server config guide

* removed old instructions for adding config parameters
2021-02-09 09:49:48 +01:00
Tom Fox
cca493b9fb fix: upgrade pg-promise from 10.9.0 to 10.9.1 (#7170)
Snyk has created this PR to upgrade pg-promise from 10.9.0 to 10.9.1.

See this package in npm:
https://www.npmjs.com/package/pg-promise

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-07 19:44:44 -08:00
Manuel
b59517fd68 Add tests against multiple MongoDB versions (#7161)
* added tests environment with mongodb 4.4.3

* added CI test for mongodb 4.4.3

* added CI tests for MongoDB versions 4.0, 4.2

* improved flaky test (seems to max out the limit of simultaneous connections)

* added spec helpers to run tests only for specific MongoDB version

* addedn npm scripts to run tests against relevant mongodb versions

* added spec helper function to exclude specific mongodb version

* added test for changed aggregate query planner results

* fixed regex test with incorrect regex syntax

* fixed test where query has select no keys (empty array)

* added changelog entry and ordered list

* fixed test that tried to simultaneously delete and build index on same collection

* added MongoDB compatibility table to readme

* updated default local tests to use MongoDB 4.4.3

* added MongoDB badges for new versions to README

* fixed typo in readme

* added new test helper filter to contribution guide

* fixed incorrect storage engine for mongodb 4.4

* changed CI to test MongoDB 3.6. with mmapv1 storage engine and standalone

* improved CI test description

* added CI self check for new MongoDB versions

* fixed CI

* removed CI

* added CI

* added throwing error if any of the checks failed

* added github action connector

* improved error message

* improved error messages

* improved error message

* updated CI environment to MongoDB 3.6.22

* improved error messages

* update CI env name

* updated CI env name

* improved error message

* removed patch versions from CI env description

* improved status message

* removed version range from core lib

* added explicit mongodb version to redis test and node 12 test

* bumped Node 12 test to 12.20.1 (version currently recommended by AWS Elastic Beanstalk)
2021-02-07 23:16:46 +01:00
Antonio Davi Macedo Coelho de Castro
6097e82194 fix: upgrade mime from 2.4.7 to 2.5.0 (#7166)
Snyk has created this PR to upgrade mime from 2.4.7 to 2.5.0.

See this package in npm:
https://www.npmjs.com/package/mime

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-07 13:38:51 -08:00
Tom Fox
fcacd4d24e fix: upgrade pg-promise from 10.8.7 to 10.9.0 (#7168)
Snyk has created this PR to upgrade pg-promise from 10.8.7 to 10.9.0.

See this package in npm:
https://www.npmjs.com/package/pg-promise

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-07 13:30:29 -08:00
Antonio Davi Macedo Coelho de Castro
4b6e9ffc3d fix: upgrade apollo-server-express from 2.19.1 to 2.19.2 (#7165)
Snyk has created this PR to upgrade apollo-server-express from 2.19.1 to 2.19.2.

See this package in npm:
https://www.npmjs.com/package/apollo-server-express

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-02-05 14:06:50 -08:00
LongYinan
5584da57e6 Upgrade @node-rs/bcrypt to latest version (#7159) 2021-02-04 02:38:35 -06:00
dblythy
38f33e5c17 Run Prettier after Definitions (#7164) 2021-02-04 02:33:18 -06:00
Manuel
08b2ea45b0 Add account unlock on password reset (#7146)
* added account unlock on password reset

* added account policy option

* added changelog entry

* Added docs entry

* moved changelog entry to correct position

* improved tests to ensure requesting password reset email does not unlock account

* run prettier
2021-02-01 01:07:04 +01:00
Manuel
25fb576776 Fix node security link (#7081)
* removed node security link

* improve PGP wording

* Added report form link

* removed PGP key
2021-01-29 17:37:38 +00:00
Antonio Davi Macedo Coelho de Castro
bcb2b52f7a fix: upgrade jwks-rsa from 1.12.1 to 1.12.2 (#7147)
Snyk has created this PR to upgrade jwks-rsa from 1.12.1 to 1.12.2.

See this package in npm:
https://www.npmjs.com/package/jwks-rsa

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2021-01-29 10:39:34 -06:00