Commit Graph

3059 Commits

Author SHA1 Message Date
Arthur Cinader
b9742b6fb9 Prep 4.1 (#6462)
* increment version in prep for 4.1

* changelog for 4.1

* fix security doc link

Co-authored-by: Tom Fox <13188249+TomWFox@users.noreply.github.com>
2020-03-03 11:41:24 -08:00
Arthur Cinader
3a3a5eee5f Merge pull request from GHSA-h4mf-75hf-67w4
* Fix session token issue

* verify email problem

* Fix password reset problem

* Change test file name

* Split tests

* Refetch user

* Replaces lets to consts

* Refactor unit test

What you have is just finee, but wanted
to show you what I meant with my comment

Use jasmine's this to set stuff in beforeEach's

Not that all functions need to be `function ()` instead of
`() =>` so `this` is preserved.

see: https://jasmine.github.io/tutorials/your_first_suite#section-The_%3Ccode%3Ethis%3C/code%3E_keyword

Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
2020-03-02 15:46:01 -08:00
Arthur Cinader
bde8ab6d55 Attempt to get Travis to deploy to npmjs (#6457)
* Use deprecated skip_cleanup
as cleanup: false doesn't
appear to be working

* prepare release

* revert change to branch
2020-03-02 10:46:07 -08:00
greenkeeper[bot]
cfb0327c19 Update bcrypt to the latest version 🚀 (#6456)
* chore(package): update bcrypt to version 4.0.1

* chore(package): update lockfile package-lock.json
2020-03-02 16:49:23 +00:00
Arthur Cinader
cd06a02fe8 skip cleanup so we don't erase babel and stuff (#6452)
* skip cleanup so we don't erase babel and stuff

* skip cleanup the right way!

* Add change log and bump version

* include one more commit

* remove breaking change from non breaking change.

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-28 17:34:19 -08:00
greenkeeper[bot]
2a5c306aa8 Update flow-bin to the latest version 🚀 (#6448)
* chore(package): update flow-bin to version 0.119.1

* chore(package): update lockfile package-lock.json
2020-02-29 00:13:48 +00:00
greenkeeper[bot]
c973356a22 Update lint-staged to the latest version 🚀 (#6446)
* chore(package): update lint-staged to version 10.0.8

* chore(package): update lockfile package-lock.json
2020-02-29 00:12:47 +00:00
Old Grandpa
6b0efaeffd Do not allow to protect default fields (#6439)
* consider default columns

* disallow protecting default fields
2020-02-28 15:52:48 -08:00
Arthur Cinader
4291f2b22a Prepare for 4.0 Release (#6412)
* Preparee for 3.11.0 Release

* Little fixes

* add in newly merge pr's into the changelog.

* Remove inconsistent full stops

* bump version to 4.0

* update changelog for v 4.0

* a touch of wordmsithery.

* Nits

Co-authored-by: Tom Fox <13188249+TomWFox@users.noreply.github.com>
2020-02-28 15:22:38 -08:00
greenkeeper[bot]
5947fc33e4 Update babel7 to the latest version 🚀 (#6450)
* chore(package): update @babel/core to version 7.8.6

* chore(package): update @babel/preset-env to version 7.8.6

* chore(package): update lockfile package-lock.json
2020-02-28 22:30:56 +00:00
greenkeeper[bot]
8487d2376f Update babel-eslint to the latest version 🚀 (#6449)
* chore(package): update babel-eslint to version 10.1.0

* chore(package): update lockfile package-lock.json
2020-02-28 22:30:12 +00:00
Arthur Cinader
5c7918980c Set min mongodb to 3.6 in prep for parse-server 4.0 (#6445)
* Set min mongodb to 3.6 in prep for parse-server 4.0

fixes: 6444

* don't use anonymous functions when we can just
pass the function.

Also remove the boolean argument in tests that no longer exists.

* generate the correct lock file.  ooops.
2020-02-27 10:56:14 -08:00
greenkeeper[bot]
9d7da58129 Update flow-bin to the latest version 🚀 (#6438)
* chore(package): update flow-bin to version 0.119.0

* chore(package): update lockfile package-lock.json
2020-02-25 03:52:39 +00:00
Antoine Cormouls
c7f96c92cd GraphQL: Allow true GraphQL Schema Customization (#6360)
* Allow real GraphQL Schema via ParseServer.start

* wip

* working

* tests ok

* add tests about enum/input use case

* Add async function based merge

* Better naming

* remove useless condition
2020-02-21 15:12:49 -08:00
greenkeeper[bot]
d4690ca425 Update bcrypt to the latest version 🚀 (#6433)
* chore(package): update bcrypt to version 4.0.0

* chore(package): update lockfile package-lock.json
2020-02-21 23:10:07 +00:00
Antoine Cormouls
cbef90d66c fix (#6431) 2020-02-21 14:58:51 -08:00
greenkeeper[bot]
259d119374 Update pg-promise to the latest version 🚀 (#6434)
* fix(package): update pg-promise to version 10.4.4

* chore(package): update lockfile package-lock.json
2020-02-21 22:17:45 +00:00
Old Grandpa
292bdb713a Allow protectedFields for Authenticated users and Public. Fix userField with keys/excludedKeys (#6415)
* fix error message and test it

* protected fields fixes

* clean

* remove duplicate test, add some comments

* no need for 'requiresAuthentication'
2020-02-19 01:34:08 -08:00
Diamond Lewis
ca1ae336c9 Websocket: unhandle rejection (#6418)
* Websocket: unhandle rejection

Closes: https://github.com/parse-community/parse-server/issues/6413, https://github.com/parse-community/parse-server/issues/6173
Prevent crashing on websocket error.

Bonus points to anybody who can post a specific payload that the client sends that returns an error.

* log the socket

* fix tests

* fix payload reference link
2020-02-19 01:30:23 -08:00
Diamond Lewis
84b0878d43 Support Travis CI V2 (#6414)
* Support Travis CI V2

[Deployment V2 Docs](https://docs.travis-ci.com/user/deployment-v2)

[Travis Build Validator](https://config.travis-ci.com/explore)

Fixes release build

* try setting variables

* reduce the build matrix

* remove extra test stage
2020-02-16 19:40:41 -08:00
Arthur Cinader
fd0b535159 Case insensitive signup (#5634)
* Always delete data after each, even for mongo.

* Add failing simple case test

* run all tests

* 1. when validating username be case insensitive

2. add _auth_data_anonymous to specialQueryKeys...whatever that is!

* More case sensitivity

1. also make email validation case insensitive
2. update comments to reflect what this change does

* wordsmithery and grammar

* first pass at a preformant case insensitive query.  mongo only so far.

* change name of parameter from insensitive to
caseInsensitive

* Postgres support

* properly handle auth data null

* wip

* use 'caseInsensitive' instead of 'insensitive' in all places.

* update commenet to reclect current plan

* skip the mystery test for now

* create case insensitive indecies for
mongo to support case insensitive
checks for email and username

* remove unneeded specialKey

* pull collation out to a function.

* not sure what i planned
to do with this test.
removing.

* remove typo

* remove another unused flag

* maintain order

* maintain order of params

* boil the ocean on param sequence
i like having explain last cause it seems
like something you would
change/remove after getting what you want
from the explain?

* add test to verify creation
and use of caseInsensitive index

* add no op func to prostgress

* get collation object from mongocollection
make flow lint happy by declaring things Object.

* fix typo

* add changelog

* kick travis

* properly reference static method

* add a test to confirm that anonymous users with
unique username that do collide when compared
insensitively can still be created.

* minot doc nits

* add a few tests to make sure our spy is working as expected
wordsmith the changelog

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-14 09:44:51 -08:00
greenkeeper[bot]
1ea3f864a8 Update apollo-server to the latest version 🚀 (#6409)
* fix(package): update apollo-server-express to version 2.10.1

* chore(package): update lockfile package-lock.json
2020-02-14 14:27:37 +00:00
greenkeeper[bot]
46209266c7 Update husky to the latest version 🚀 (#6406)
* chore(package): update husky to version 4.2.3

* chore(package): update lockfile package-lock.json
2020-02-13 04:07:18 +00:00
greenkeeper[bot]
8074dfd27d Update mongodb to the latest version 🚀 (#6404)
* fix(package): update mongodb to version 3.5.3

* chore(package): update lockfile package-lock.json
2020-02-12 13:04:37 +00:00
greenkeeper[bot]
8f6e897491 Update husky to the latest version 🚀 (#6402)
* chore(package): update husky to version 4.2.2

* chore(package): update lockfile package-lock.json
2020-02-12 06:22:23 +00:00
greenkeeper[bot]
ea59f12ac2 Update semver to the latest version 🚀 (#6401)
* fix(package): update semver to version 7.1.3

* chore(package): update lockfile package-lock.json
2020-02-12 00:03:19 +00:00
David Corona
09a1dca5e3 Add new afterLogin cloud code hook (#6387)
* add new afterLogin cloud code hook

* include user on req.user for afterLogin hook
2020-02-11 17:38:14 -06:00
greenkeeper[bot]
8e195ef5ae Update pg-promise to the latest version 🚀 (#6396)
* fix(package): update pg-promise to version 10.4.3

* chore(package): update lockfile package-lock.json
2020-02-11 00:02:05 +00:00
greenkeeper[bot]
a0fe9fc5af Update redis to the latest version 🚀 (#6397)
* fix(package): update redis to version 3.0.0

* chore(package): update lockfile package-lock.json
2020-02-10 23:19:31 +00:00
greenkeeper[bot]
da0dbfe23d Update mongodb to the latest version 🚀 (#6348)
* fix(package): update mongodb to version 3.5.0

* chore(package): update lockfile package-lock.json

* Fix shutdown issues

Properly retrieves the number of connections

https://docs.mongodb.com/manual/reference/command/serverStatus/#connections

Bump to 3.5.1

* remove fit

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-08 04:49:43 +00:00
Jerome De Leon
06791d8f57 Add missing colon for customPages (#6393) 2020-02-07 18:25:28 -06:00
greenkeeper[bot]
0a65331fcb Update cross-env to the latest version 🚀 (#6364)
* chore(package): update cross-env to version 7.0.0

* Update package-lock.json

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-07 05:30:05 +00:00
greenkeeper[bot]
ed58c7c0f5 Update babel7 to the latest version 🚀 (#6378)
* chore(package): update @babel/cli to version 7.8.4

* chore(package): update @babel/core to version 7.8.4

* chore(package): update @babel/preset-env to version 7.8.4

* chore(package): update lockfile package-lock.json
2020-02-07 05:19:18 +00:00
greenkeeper[bot]
ea32f5e55d Update lint-staged to the latest version 🚀 (#6377)
* chore(package): update lint-staged to version 10.0.4

* 10.0.7

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-07 04:45:47 +00:00
greenkeeper[bot]
14f9418f72 Update husky to the latest version 🚀 (#6355)
* chore(package): update husky to version 4.1.0

* 4.2.1

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-02-07 03:54:52 +00:00
greenkeeper[bot]
e8083afdeb Update semver to the latest version 🚀 (#6383)
* fix(package): update semver to version 7.1.2

* chore(package): update lockfile package-lock.json
2020-02-06 20:33:38 -06:00
greenkeeper[bot]
8d8f4e9af8 Update commander to the latest version 🚀 (#6386)
* fix(package): update commander to version 4.1.1

* chore(package): update lockfile package-lock.json
2020-02-06 20:32:56 -06:00
greenkeeper[bot]
c1111774dd Update bcrypt to the latest version 🚀 (#6389)
* chore(package): update bcrypt to version 3.0.8

* chore(package): update lockfile package-lock.json
2020-02-06 20:32:22 -06:00
greenkeeper[bot]
95e6356364 Update pg-promise to the latest version 🚀 (#6382)
* fix(package): update pg-promise to version 10.4.0

* chore(package): update lockfile package-lock.json
2020-02-07 01:27:09 +00:00
greenkeeper[bot]
9ef4230faf Update apollo-server to the latest version 🚀 (#6391)
* fix(package): update apollo-server-express to version 2.10.0

* chore(package): update lockfile package-lock.json
2020-02-07 01:20:32 +00:00
greenkeeper[bot]
9545a7d423 Update flow-bin to the latest version 🚀 (#6392)
* chore(package): update flow-bin to version 0.118.0

* chore(package): update lockfile package-lock.json
2020-02-06 20:14:34 +00:00
Old Grandpa
3c46117d9b Granular CLP pointer permissions (#6352)
* set pointer permissions per operatioon; tests

* more tests

* fixes addField permission; tests
2020-01-27 22:21:30 -08:00
greenkeeper[bot]
4beb89fc2e Update lint-staged to the latest version 🚀 (#6370)
* chore(package): update lint-staged to version 10.0.3

* chore(package): update lockfile package-lock.json
2020-01-28 03:27:42 +00:00
greenkeeper[bot]
8b8bae726f Update graphql-upload to the latest version 🚀 (#6368)
* fix(package): update graphql-upload to version 10.0.0

* chore(package): update lockfile package-lock.json
2020-01-28 03:26:20 +00:00
greenkeeper[bot]
c270f364ad Update graphql to the latest version 🚀 (#6367)
* fix(package): update graphql to version 14.6.0

* chore(package): update lockfile package-lock.json

Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
2020-01-28 03:18:20 +00:00
Antoine Cormouls
30a5aa0b61 GraphQL: Nested File Upload (#6372)
* wip

* wip

* tested

* wip

* tested
2020-01-27 19:16:53 -08:00
Antoine Cormouls
df3fa029bc fix queries (#6363) 2020-01-27 19:10:39 -08:00
Antoine Cormouls
d4e264daf8 GraphQL: 3rd Party LoginWith Support (#6371)
* wip

* wip

* tested
2020-01-27 18:57:26 -08:00
greenkeeper[bot]
b22ccec2ce Update flow-bin to the latest version 🚀 (#6373)
* chore(package): update flow-bin to version 0.117.0

* chore(package): update lockfile package-lock.json
2020-01-28 00:27:45 +00:00
greenkeeper[bot]
c21b94954f Update follow-redirects to the latest version 🚀 (#6366)
* fix(package): update follow-redirects to version 1.9.1

* chore(package): update lockfile package-lock.json
2020-01-28 00:09:21 +00:00