Commit Graph

2642 Commits

Author SHA1 Message Date
greenkeeper[bot]
d33fb677be Update lint-staged to the latest version 🚀 (#5756)
* chore(package): update lint-staged to version 9.0.2

* chore(package): update lockfile package-lock.json
2019-07-03 06:23:53 +00:00
Douglas Muraoka
2c4031092e GraphQL: /me pointers not working (#5745)
When using the `/me` endpoint to fetch the current user, it does not fetches data from any Pointer data type field, even though the field was defined in the GraphQL schema.
2019-07-02 12:15:46 -07:00
Douglas Muraoka
3d63545ab7 GraphQL: User sign up required fields (#5743) 2019-07-02 12:11:45 -07:00
greenkeeper[bot]
60d9327a78 Update lint-staged to the latest version 🚀 (#5751)
* chore(package): update lint-staged to version 9.0.1

* chore(package): update lockfile package-lock.json
2019-07-02 11:46:27 +00:00
dependabot-preview[bot]
8c94c1f238 Bump lint-staged from 8.2.1 to 9.0.0 (#5750)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.2.1 to 9.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.2.1...v9.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 10:50:04 +00:00
greenkeeper[bot]
911d48b420 Update semver to the latest version 🚀 (#5747)
* fix(package): update semver to version 6.2.0

* chore(package): update lockfile package-lock.json
2019-07-01 23:36:21 +00:00
greenkeeper[bot]
28ca19b91c Update husky to the latest version 🚀 (#5746)
* chore(package): update husky to version 3.0.0

* chore(package): update lockfile package-lock.json
2019-07-01 20:46:49 +00:00
dependabot-preview[bot]
c379c51cd6 Bump semver from 6.1.2 to 6.1.3 (#5742)
Bumps [semver](https://github.com/npm/node-semver) from 6.1.2 to 6.1.3.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.1.2...v6.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 10:48:32 +00:00
dependabot-preview[bot]
5c77d2b757 Bump graphql from 14.4.0 to 14.4.1 (#5741)
Bumps [graphql](https://github.com/graphql/graphql-js) from 14.4.0 to 14.4.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v14.4.0...v14.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 10:39:35 +00:00
dependabot-preview[bot]
1c9b77975e Bump husky from 2.6.0 to 2.7.0 (#5739)
Bumps [husky](https://github.com/typicode/husky) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-28 10:34:58 +00:00
greenkeeper[bot]
87592b64a3 Update graphql to the latest version 🚀 (#5736)
* fix(package): update graphql to version 14.4.0

* chore(package): update lockfile package-lock.json
2019-06-26 23:35:50 +00:00
greenkeeper[bot]
55b32f1229 Update husky to the latest version 🚀 (#5734)
* chore(package): update husky to version 2.6.0

* chore(package): update lockfile package-lock.json
2019-06-26 14:50:39 +00:00
greenkeeper[bot]
2a215319ee Update apollo-server to the latest version 🚀 (#5733)
* fix(package): update apollo-server-express to version 2.6.7

* chore(package): update lockfile package-lock.json
2019-06-26 12:24:05 +00:00
Tom Fox
7e17e4be22 add GraphQL in contents list 2019-06-26 11:17:21 +01:00
greenkeeper[bot]
9020997c96 Update apollo-server to the latest version 🚀 (#5728)
* fix(package): update apollo-server-express to version 2.6.6

* chore(package): update lockfile package-lock.json
2019-06-25 23:33:07 +00:00
Diamond Lewis
e08f4f8023 Fix: Winston Logger string interpolation (#5729) 2019-06-25 18:01:00 -05:00
Antonio Davi Macedo Coelho de Castro
5bc79cc3db GraphQL support via cli (#5697)
* Including GraphQL options in CLI - now it was auto-generated

* Improving the way that the headers are passed to the playground

* Including README notes about GraphQL

* Improving final text
2019-06-25 14:44:23 -07:00
Diamond Lewis
7ffb3b65e0 Fix: eslint update to 6.0.1 (#5730) 2019-06-25 16:36:42 -05:00
dependabot-preview[bot]
19098a46ac Bump eslint from 5.16.0 to 6.0.1
Bumps [eslint](https://github.com/eslint/eslint) from 5.16.0 to 6.0.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.16.0...v6.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 18:06:28 +00:00
greenkeeper[bot]
34a11971af Update flow-bin to the latest version 🚀 (#5727)
* chore(package): update flow-bin to version 0.102.0

* chore(package): update lockfile package-lock.json
2019-06-25 18:04:07 +00:00
greenkeeper[bot]
fa6defc172 Update apollo-server to the latest version 🚀 (#5726)
* fix(package): update apollo-server-express to version 2.6.5

* chore(package): update lockfile package-lock.json
2019-06-25 17:28:38 +00:00
Jeff Gu Kang
ad7fc48c97 Postgres: Regex support foreign characters (#5598)
* Fix issue #5293

* Fix issue #5293

* add test

* Revert "add test"

This reverts commit 38b32a627a9d2c9a9b852b48194f173d8b7254f3.

* fix conflicts

* use native package
2019-06-24 16:13:34 -05:00
greenkeeper[bot]
b178d5ca6a Update husky to the latest version 🚀 (#5723)
* chore(package): update husky to version 2.5.0

* chore(package): update lockfile package-lock.json
2019-06-24 14:17:24 +00:00
greenkeeper[bot]
9903ea2631 Update eslint-plugin-flowtype to the latest version 🚀 (#5722)
* chore(package): update eslint-plugin-flowtype to version 3.11.1

* chore(package): update lockfile package-lock.json
2019-06-24 13:09:08 +00:00
greenkeeper[bot]
2f99ec5289 Update eslint-plugin-flowtype to the latest version 🚀 (#5720)
* chore(package): update eslint-plugin-flowtype to version 3.11.0

* chore(package): update lockfile package-lock.json
2019-06-24 07:50:25 +00:00
greenkeeper[bot]
5b5c71d78c Update semver to the latest version 🚀 (#5719)
* fix(package): update semver to version 6.1.2

* chore(package): update lockfile package-lock.json
2019-06-24 02:11:48 +00:00
greenkeeper[bot]
387b888168 Update eslint-plugin-flowtype to the latest version 🚀 (#5717)
* chore(package): update eslint-plugin-flowtype to version 3.10.5

* chore(package): update lockfile package-lock.json
2019-06-22 06:26:39 +00:00
greenkeeper[bot]
ef3dfa8ad1 Update eslint-plugin-flowtype to the latest version 🚀 (#5713)
* chore(package): update eslint-plugin-flowtype to version 3.10.4

* chore(package): update lockfile package-lock.json
2019-06-21 13:51:07 +00:00
dependabot-preview[bot]
7c295a34f3 Bump node-fetch from 2.5.0 to 2.6.0 (#5712)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/bitinn/node-fetch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.5.0...v2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 10:58:58 +00:00
dependabot-preview[bot]
523bd7f6a4 Bump flow-bin from 0.101.0 to 0.101.1 (#5711)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.101.0 to 0.101.1.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.101.0...v0.101.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 10:52:03 +00:00
dependabot-preview[bot]
3c15252cb1 Bump graphql from 14.2.1 to 14.3.1 (#5710)
Bumps [graphql](https://github.com/graphql/graphql-js) from 14.2.1 to 14.3.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v14.2.1...v14.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 10:41:42 +00:00
greenkeeper[bot]
e2b0829f6e Update apollo-server to the latest version 🚀 (#5709)
* fix(package): update apollo-server-express to version 2.6.4

* chore(package): update lockfile package-lock.json
2019-06-21 00:38:36 +00:00
dependabot-preview[bot]
8f8a4209e3 Bump @apollographql/graphql-playground-html from 1.6.6 to 1.6.20 (#5707)
Bumps [@apollographql/graphql-playground-html](https://github.com/graphcool/graphql-playground) from 1.6.6 to 1.6.20.
- [Release notes](https://github.com/graphcool/graphql-playground/releases)
- [Commits](https://github.com/graphcool/graphql-playground/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 19:16:38 +00:00
Diamond Lewis
6385deeb6e Add AppSecret to Facebook Auth (#5695)
Closes: https://github.com/parse-community/parse-server/issues/5448
2019-06-20 14:15:57 -05:00
Linus Unnebäck
366e12193e Avoid redundant allowCrossDomain calls (#5696) 2019-06-20 12:08:46 -07:00
dependabot-preview[bot]
ad26b469cb Bump apollo-utilities from 1.2.1 to 1.3.2 (#5704)
Bumps [apollo-utilities](https://github.com/apollographql/apollo-client) from 1.2.1 to 1.3.2.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-utilities@1.2.1...apollo-utilities@1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 13:53:44 +00:00
dependabot-preview[bot]
9bfe005524 Bump apollo-link-http from 1.5.14 to 1.5.15 (#5701)
Bumps [apollo-link-http](https://github.com/apollographql/apollo-link) from 1.5.14 to 1.5.15.
- [Release notes](https://github.com/apollographql/apollo-link/releases)
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-link/compare/apollo-link-http@1.5.14...apollo-link-http@1.5.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 13:29:21 +00:00
dependabot-preview[bot]
8513c39fe3 Bump apollo-link from 1.2.11 to 1.2.12 (#5705)
Bumps [apollo-link](https://github.com/apollographql/apollo-link) from 1.2.11 to 1.2.12.
- [Release notes](https://github.com/apollographql/apollo-link/releases)
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-link/compare/apollo-link@1.2.11...apollo-link@1.2.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 12:53:14 +00:00
dependabot-preview[bot]
791e26939c Bump apollo-cache-inmemory from 1.5.1 to 1.6.2 (#5703)
Bumps [apollo-cache-inmemory](https://github.com/apollographql/apollo-client) from 1.5.1 to 1.6.2.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-cache-inmemory@1.5.1...apollo-cache-inmemory@1.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 12:23:05 +00:00
dependabot-preview[bot]
4c30037d1e Bump apollo-client from 2.5.1 to 2.6.3 (#5700)
Bumps [apollo-client](https://github.com/apollographql/apollo-client) from 2.5.1 to 2.6.3.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-client@2.5.1...apollo-client@2.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 11:54:54 +00:00
dependabot-preview[bot]
9dd4228674 Bump form-data from 2.3.3 to 2.4.0 (#5706)
Bumps [form-data](https://github.com/form-data/form-data) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Commits](https://github.com/form-data/form-data/commits/v2.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 11:35:00 +00:00
dependabot-preview[bot]
1a3fb8a75f Bump apollo-upload-client from 10.0.0 to 10.0.1
Bumps [apollo-upload-client](https://github.com/jaydenseric/apollo-upload-client) from 10.0.0 to 10.0.1.
- [Release notes](https://github.com/jaydenseric/apollo-upload-client/releases)
- [Changelog](https://github.com/jaydenseric/apollo-upload-client/blob/master/changelog.md)
- [Commits](https://github.com/jaydenseric/apollo-upload-client/compare/v10.0.0...v10.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 11:11:57 +00:00
dependabot-preview[bot]
2ce5c6c508 Bump apollo-link-ws from 1.0.17 to 1.0.18 (#5699)
Bumps [apollo-link-ws](https://github.com/apollographql/apollo-link) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/apollographql/apollo-link/releases)
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-link/compare/apollo-link-ws@1.0.17...apollo-link-ws@1.0.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 11:09:41 +00:00
dependabot-preview[bot]
940c2b221c Bump graphql-upload from 8.0.5 to 8.0.7 (#5698)
Bumps [graphql-upload](https://github.com/jaydenseric/graphql-upload) from 8.0.5 to 8.0.7.
- [Release notes](https://github.com/jaydenseric/graphql-upload/releases)
- [Changelog](https://github.com/jaydenseric/graphql-upload/blob/master/changelog.md)
- [Commits](https://github.com/jaydenseric/graphql-upload/compare/v8.0.5...v8.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 11:00:23 +00:00
Antonio Davi Macedo Coelho de Castro
fe2e95622f GraphQL Support (#5674)
* GraphQL boilerplate

* Create GraphQL schema without using gql

* Introducing loaders

* Generic create mutation

* create mutation is now working for any data type

* Create mutation for each parse class - partial

* Adding more data types to the class

* Get parse class query

* Generic get query

* Generic delete mutation

* Parse class delete mutation

* Parse class find mutation

* Generic update mutation

* Parse class update mutation

* Fixing initialization problems

* Installing node-fetch again

* Basic implementation for Pointer

* Constructor tests

* API tests boilerplate

* _getGraphQLOptions

* applyGraphQL tests

* GraphQL API initial tests

* applyPlayground tests

* createSubscriptions tests

* ParseGrapjQLSchema tests file

* ParseGraphQLSchema tests

* TypeValidationError

* TypeValidationError

* parseStringValue test

* parseIntValue tests

* parseBooleanValue tests

* parseDateValue tests

* parseValue tests

* parseListValues tests

* parseObjectFields tests

* Default types tests

* Get tests

* First permission test at generic Get operation

* Fixing prepare data

* ApolloClient does not work well with different queries runnning in paralell with different headers

* ApolloClient does not work well with different queries runnning in paralell with different headers

* User 3 tests

* User 3 tests

* Get level permission tests

* Get User specific tests

* Get now support keys argument

* Get now supports include argument

* Get now supports read preferences

* Adding tests for read preference enum type

* Find basic test

* Find permissions test

* Find where argument test

* Order, skip and limit tests

* Error handler

* Find now supports count

* Test for FindResult type

* Improving find count

* Find max limit test

* Find now supports keys, include and includeAll

* Find now supports read preferences

* Basic Create test

* Generic create mutation tests

* Basic update test

* UpdateResult object type test

* Update level permissions tests

* Error handler for default mutations

* Delete mutation basic test

* Delete mutation level permission tests

* Test for string

* String test

* Date test

* Pointer test

* Relation tests

* Changing objects mutations location

* Changing objects queries location

* Create file mutation

* Test for file fields

* Test for null values

* Changing parse classes operations location

* Objects mutations refactoring

* Class specific create object mutation now working

* Update class specific mutation now working

* Specific class delete mutation now working

* Get class specific mutation now working

* Find class specific query now working without where and sort

* Find query for custom classes working with where partially

* Almost all data types working for specfic class find where

* Now only missing relation, geopoint, file and ACL

* Additional tests with Parse classes queries and mutations

* Now only missing relation, geopoint, file and ACL

* Files

* Fiels are now working

* Excluding missing order test temporarly

* Refactoring dates

* Refactoring files

* Default types review

* Refeactoring object queries

* Refactoring class scalar type

* Refactoring class types

* Geo queries are now working

* Fixing centerSphere

* Allow sort on class specific queries

* Supporting bytes

* ACL constraint

* Temporarly removing xit tests

* Fixing some tests because of schema cache

* Removing session token from users

* Parse.User queries and mutations

* Remove test using fit

* Fixing include test that was failing because of schema cache

* Fixing count test for postgres. Postgres does not count with where={} (legacy problem). We should solve it later

* Fix null values test for postgres. It is evaluating null as undefined (legacy problem) and we should fix is later.

* Fixing schema change test that was failing because of schema cache

* Add GraphQL File type parseLiteral tests

* Refeactoring users

* Including sign up mutation

* Fix failing test

* Improve default GraphQL types tests coverage

* Including some tests for data types

* Including additional pointer test:

* Fixing some tests

* more data type tests

* Include Bytes and Polygon data types tests

* Polygons test

* Merging other tests

* Fixing some postgres tests
2019-06-19 17:19:47 -07:00
Linus Unnebäck
922251a398 Avoid calling allowCrossDomain twice per request (#5682)
`api.use('/', middleware, ...)` will end up calling `middleware` for _every_ request, even if no routers in the `...` part matches.

This is because passing a router to express is just like passing any other route handler. The only thing that happens when it doesn't match a route is that it calls `next`, but by that point, the middleware has already run. 

The changes in the PR avoids adding the middleware twice for every route except file upload routes. Which will make express not call `allowCrossDomain` twice for every incoming request.
2019-06-19 16:47:26 -07:00
Jack Wearden
559096f1c2 Allow disabling workaround for since-fixed MongoDB bug (#5617)
* Allow disabling workaround for fixed MongoDB bug

* skipMongoDBServer13732Workaround description fix

* flip test boolean

* Remove CLI flag, use databaseVersion & engine

* Revert "Remove CLI flag, use databaseVersion & engine"

This reverts commit 042d1ba19f636fe0da06074168c6fd5db37ea048.

* clean up
2019-06-19 17:30:08 -05:00
Diamond Lewis
fcdf2d7947 Sign in with Apple Auth Provider (#5694)
* Sign in with Apple Auth Provider

Closes: https://github.com/parse-community/parse-server/issues/5632

Should work out of the box.

* remove required options
2019-06-19 16:05:09 -05:00
dependabot-preview[bot]
947c6beede Bump ws from 7.0.0 to 7.0.1 (#5693)
Bumps [ws](https://github.com/websockets/ws) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.0.0...7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-18 13:00:44 +00:00
greenkeeper[bot]
09d0fb4daa Update babel-eslint to the latest version 🚀 (#5690)
* chore(package): update babel-eslint to version 10.0.2

* chore(package): update lockfile package-lock.json
2019-06-17 14:48:24 +00:00