Commit Graph

2057 Commits

Author SHA1 Message Date
Florent Vilmart
6a1510729a Bump nodejs version to 6+ (#4272)
* let travis build against 3.x

* Cleanup dependencies and bump min version to current LTS

* Makes npm-git push all branches to -preview

* restores releases

* Bumps mime to 2.0.3 (requires node 6+)

* Bumps express to latest version

* Fixes linting issue after upgrade

* Use travis-branch for partial releases
2017-11-25 15:39:31 -05:00
Florent Vilmart
ea57c523da let travis build against 3.x 2017-11-25 15:39:31 -05:00
Benjamin Wilson Friedman
219ad7224a Fixes sessionTokens being overridden in 'find' (#4332)
* remove session token replacement code

* adds cases for _User/_Session with sessionToken and with/without masterKey
2017-11-25 15:28:08 -05:00
Addison Elliott
2b9397a5a9 Update contributing.md (#4368)
* Update CONTRIBUTING.md

Clean up some of the language in the document.

Add command to run for testing on Windows

* Update CONTRIBUTING.md

Update coverage directory

* Update CONTRIBUTING.md

Add details about how to run test coverage
2017-11-25 15:20:16 -05:00
Florent Vilmart
4f56ec6265 fix(package): update commander to version 2.12.1 (#4382)
Closes #4371
2017-11-25 14:53:47 -05:00
greenkeeper[bot]
cc48e5412e fix(package): update commander to version 2.12.0 (#4371) 2017-11-25 14:53:14 -05:00
greenkeeper[bot]
c0215399a2 fix(package): update ws to version 3.3.2 (#4367) 2017-11-25 14:53:00 -05:00
greenkeeper[bot]
49d0a651b5 chore(package): update uws to version 9.14.0 (#4366) 2017-11-25 14:52:46 -05:00
Benjamin Wilson Friedman
7944e2bd2d Remove hidden properties from aggregate responses (#4351)
* Remove hidden properties from aggregrate responses

* transform results from mongo & postgres

* Adjust ordering to comply with tests
2017-11-22 23:07:45 -08:00
greenkeeper[bot]
37ceae0812 fix(package): update pg-promise to version 7.3.2 (#4362) 2017-11-18 21:12:52 +00:00
CHANG, TZU-YEN
8bf6abfee3 Patch handleShutdown feature (#4361)
* Add handleShutdown Test of MongoStorageAdapter.

* Add `handleShutdown` function in PostgresStorageAdapter, with it's test.

* Replace the _pgp to _client

* Use  `adapter._client.$pool.ending` to ckeck is ending

* Add `handleShutdown()` in ParseServer.spec.js

* Trigger

* Set Server to Default
2017-11-18 15:20:19 -05:00
Florent Vilmart
de73f3723c Scoped packages (#4354)
* Updates for scoped packages dependencies

* bumps s3 adapter

* Update README.md

* Update README.md

* Update README.md
2017-11-17 08:32:58 -05:00
Benjamin Wilson Friedman
e1d04cd655 Adds Table of Contents to README (#4357)
* adds table of contents

* remove empty line, moved greenkeeper up with other statuses
2017-11-16 18:49:11 -05:00
Diego Vieira
aa1e97fd06 fix dead link to blog (#4353)
* fix dead link to blog

* point old blog to new domain
2017-11-15 10:06:33 -05:00
Florent Vilmart
09fee7d12b Adds optimization for related relations (#4345)
* Adds optimization for related relations

* Makes MongoStorageAdapter only able to sort on Join tables
2017-11-14 14:46:51 -05:00
Diamond Lewis
7223add446 Support for Aggregate Queries (#4207)
* Support for Aggregate Queries

* improve pg and coverage

* Mongo 3.4 aggregates and tests

* replace _id with objectId

* improve tests for objectId

* project with group query

* typo
2017-11-12 14:00:22 -05:00
Bryan de Leon
4e207d32a7 Fix for unhandled undefined config in reset password pages (#4334)
* Fix for unhandled undefined config

When an invalid application id is passed either for reset/change password or email verification, config.get returns undefined. This causes internal server.

* Throwing a 403 exception instead of returning a 404 for an invalid app id

Also, added a missing semicolon

* Fix indent issues

* Fix invalid colon to semicolon

* Fix space and indent issues

* Tests for the fix for unhandled undefined config
2017-11-11 09:42:20 -05:00
Florent Vilmart
72e20be06d fix #3451 duplicate session upon login (#4337)
* Adds failing test for #3451 (on multiple logins)

* Factor sessionDestruction as part of Session creation flow in RestWrite

* nits
2017-11-11 09:41:23 -05:00
Tom
932a474606 Remove hidden properties in handleLogin & handleMe (#4335) 2017-11-09 17:48:50 -08:00
greenkeeper[bot]
08ab1f453d fix(package): update parse to version 1.10.2 (#4333) 2017-11-08 19:23:56 -08:00
greenkeeper[bot]
bb8041ee45 fix(package): update ws to version 3.3.1 (#4329) 2017-11-08 19:06:38 -05:00
Florent Vilmart
a01159e22c fix(package): update pg-promise to version 7.3.1 (#4324)
Closes #4323
2017-11-06 10:50:50 -07:00
Emilie Montredon
d163269c47 Updated README (#4325)
Added a link to the new SendinBlue adapter for parse-server
2017-11-05 20:59:15 -05:00
greenkeeper[bot]
0e16670b5a fix(package): update ws to version 3.3.0 (#4318) 2017-11-05 13:18:00 -05:00
Benjamin Wilson Friedman
c1a7347143 Fix for _PushStatus Stuck 'running' when Count is Off (#4319)
* Fix for _PushStatus stuck 'running' if count is off

* use 'count' for batches

* push worker test fix
2017-11-05 13:04:46 -05:00
Worathiti Manosroi
842343a1a9 Add password confirmation to choose_password (#3994)
* update choose_password to have the confirmation

* update commander

* reverted the base

* remove some spaces

* nits

* more nits
2017-11-03 16:09:37 -04:00
greenkeeper[bot]
a33c08a751 chore(package): update cross-env to version 5.1.1 (#4299) 2017-11-03 11:54:09 -04:00
Florent Vilmart
07df71a79b fix(package): update pg-promise to version 7.2.1 (#4316)
Closes #4303
2017-11-03 11:52:36 -04:00
greenkeeper[bot]
cabcac221f fix(package): update pg-promise to version 7.1.0 (#4303) 2017-11-03 11:52:01 -04:00
Benjamin Wilson Friedman
c0a81a88b7 Structured /health Response (#4305)
* modifies /health to return json instead of OK

* version removed!
2017-11-03 11:51:46 -04:00
Benjamin Wilson Friedman
46af1b6955 Adds Relative Time options now,weeks & years (#4304)
* Adds 'now' as an option in relative time

* reenables no-console in previous spot

* Adds weeks,months,years and abbreviations

* modified tests to address coverage

* month be gone!
2017-11-01 13:31:08 -07:00
Xavier Damman
84aadba23a Activating Open Collective (#3806)
* Added backers and sponsors on the README

* Added call to donate after npm install

* Update package.json
2017-10-26 21:26:05 -04:00
Florent Vilmart
fecbb2d7ff Release 2.6.5 (#4298) 2017-10-26 17:15:32 -04:00
marvelm
6f1fe89948 Relative time queries (#4289)
* Add relative time queries

* Encode successful result

* Add integration test

* Add more error cases

* Remove unnecessary new Date

* Error when time has both 'in' and 'ago'

* naturalTimeToDate -> relativeTimeToDate

* Add $relativeTime operator

* Throw error if $relativeTime is invalid

* Add integration test for invalid relative time

* Exclude $exists query

* Only run integration tests on MongoDB

* Add it_only_db test helper
bd2ea87c1d/CONTRIBUTING.md (L23)

* Handle where val might be null or undefined

* Add integration test for multiple results

* Lowercase text before processing

* Always past if not future

* Precompute seconds multiplication

* Add shorthand for interval
hr, hrs
min, mins
sec, secs

* Throw error if $relativeTime is used with $exists, $ne, and $eq

* Improve coverage for relativeTimeToDate

* Add test for erroring on floating point units

* Remove unnecessary dropDatabase function

* Unit test $ne, $exists, $eq

* Verify field type

* Fix unit test for $exists
Unnest query object
2017-10-26 16:23:27 -04:00
Florent Vilmart
1dd58b7527 Adds support for read-only masterKey (#4297)
* Adds support for read-only masterKey

* Adds tests to make sure all endpoints are properly protected

* Updates readme

* nits
2017-10-26 15:35:07 -04:00
Benjamin Wilson Friedman
87b79cedfa Handle possible afterSave exception (#4293)
* capture and log exceptions caused by afterFind

* Wording

* Consolidated promise chaining

* use logger instead of console
2017-10-26 14:28:13 -04:00
adammlevy
c2fc0f556e fix URL for Parse npm, was originally pointing to mongodb npm (#4295) 2017-10-26 11:45:33 -04:00
marvelm
8a23c00265 Add support for expiration interval in Push (#4202)
* Add support for expiration_interval in Push

* Support expiration_interval for immediate pushes

* Test

* Add 'expiration_interval' to _PushStatus class

* Fix coverage
2017-10-25 17:30:20 -04:00
Florent Vilmart
a185c97557 The REST API key was improperly inferred from environment (#4292) 2017-10-25 11:46:40 -04:00
Florent Vilmart
3bb9e0e65e Release 2.6.4 (#4287)
*  Release 2.6.4

* Marks port ENV var as PORT

* Fixes broken definitions

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2017-10-25 09:45:52 -04:00
Florent Vilmart
7d2332e651 Run nsp check on release (#4285)
* Run nsp check on release

* At the right place
2017-10-24 19:06:54 -04:00
Florent Vilmart
72888bc539 Adds ability to login with email when specifying it (#4276)
* Adds ability to login with email when specifying it

* Adds tests for corner cases

* nits
2017-10-24 17:50:48 -04:00
Steven Shipton
6685932b7f update dependencies (#4280) 2017-10-24 15:50:36 -04:00
Benjamin Wilson Friedman
0db858b04c Enables login over POST in addition to GET (#4268)
* Enables login over POST in addition to GET

* Removes explcit method:POST as rp.post does this naturally
2017-10-24 15:47:26 -04:00
Florent Vilmart
d93b0e1fd9 Hotfix: cloud option should be a string 2017-10-23 09:11:08 -04:00
Florent Vilmart
9de4b8b2a7 Refactors configuration management (#4271)
* Adds flow types / Configuration interfaces

* Lets call it options

* Use a single interface to generate the configurations

* Translates options to definitions only if comments are set

* improves logic

* Moves objects around

* Fixes issue affecting logging of circular objects

* fixes undefined env

* Moves all defaults to defaults

* Adds back CLI defaults

* Restored defaults in commander.js

* Merge provided defaults and platform defaults

* Addresses visual nits

* Improves Config.js code

* Adds ability to pass the default value in trailing comments

* Load platform defaults from the definitions file

* proper default values on various options

* Adds ParseServer.start and server.start(options) as quick startup methods

* Moves creating liveQueryServer http into ParseServer.js

* removes dead code

* Adds tests to guarantee we can start a LQ Server from main module

* Fixes incorrect code regading liveQuery init port

* Start a http server for LQ if port is specified

* ensure we dont fail if config.port is not set

* Specify port

* ignore other path skipped in tests

* Adds test for custom middleware setting

* Refactors new Config into Config.get

- Hides AppCache from ParseServer.js, use Config.put which validates

* Extracts controller creation into Controllers/index.js

- This makes the ParseServer init way simpler

* Move serverURL inference into ParseServer

* review nits
2017-10-23 08:43:05 -04:00
greenkeeper[bot]
d29a4483d0 fix(package): update parse-server-push-adapter to version 2.0.2 (#4286) 2017-10-22 23:03:00 -04:00
Florent Vilmart
44b17ef0d2 fix(package): update semver to version 5.4.1 (#4283)
Closes #4044
2017-10-22 15:46:19 -04:00
Florent Vilmart
484fdc2523 chore(package): update mongodb-runner to version 3.6.1 (#4284)
Closes #4164
2017-10-22 15:20:27 -04:00
Florent Vilmart
2b52c81d49 chore(package): update eslint-plugin-flowtype to version 2.39.1 (#4282) 2017-10-22 15:19:40 -04:00