Commit Graph

2176 Commits

Author SHA1 Message Date
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
Florent Vilmart
d0e613a632 chore(package): update eslint to version 4.9.0 (#4281) 2017-10-22 14:40:50 -04:00
Florent Vilmart
e4eeadd4c6 Bumps parse sdk 1.10.1 (#4274)
* Fail test case for Issue#3999

* no message

* Bumps Parse to 1.10.1

Updates Polygon test suite to leverage latest version
2017-10-21 16:03:24 -04:00
greenkeeper[bot]
31bd02ce5c fix(package): update parse-server-push-adapter to version 2.0.1 (#4275) 2017-10-21 14:23:10 -04:00
greenkeeper[bot]
bc37972394 fix(package): update pg-promise to version 7.0.3 (#4270) 2017-10-21 12:14:04 -04:00
Gustav Ahlberg
70ad9e9ffd Add request ip to request object (#4265)
* add the client ip to the request config object

* add the config ip to the trigger request object

* add the config ip to the functions request object

* add tests

* remove log

* remove log
2017-10-18 08:13:09 -04:00
Benjamin Wilson Friedman
9376b4d04a Validate serverURL on Start (#4204)
* Added basic validation of publicServerURL

* Fixed up 'verifyServerUrl' and added tests

* Use Parse.serverURL instead, general cleanup.

* Test server port moved to 13376

* Removed reconfigureServer calls with simple changing of Parse.serverURL

* changed var to const

* Disabled automatic serverURL verification during testing, moved verification call into app.on('mount') callback, removed setTimeout from verification.
2017-10-17 14:49:28 -04:00
greenkeeper[bot]
9745caf9fb chore(package): update babel-preset-env to version 1.6.1 (#4263) 2017-10-17 14:48:23 -04:00
greenkeeper[bot]
b3ea75b69a chore(package): update cross-env to version 5.1.0 (#4261) 2017-10-17 14:48:12 -04:00
Florent Vilmart
6963ff61b8 fix(package): update mongodb to version 2.2.33 (#4264)
Closes #4252
2017-10-17 14:48:01 -04:00
greenkeeper[bot]
ac970a40c4 fix(package): update mongodb to version 2.2.32 (#4252) 2017-10-17 14:47:31 -04:00
Benjamin Wilson Friedman
315d30b426 Fix for beforeSave with increment causing key to be Dropped (#4259)
* Fixes an issue where a beforeSave hook could cause a numeric val to be dropped in response.

* Use hasOwnProperty to check instead

* Remove redundant set
2017-10-15 21:15:30 -07:00
greenkeeper[bot]
557a2b2827 fix(package): update pg-promise to version 7.0.2 (#4257) 2017-10-14 18:57:03 -04:00
Benjamin Wilson Friedman
9145c88562 Corrected outdated links (#4254) 2017-10-12 22:40:47 -04:00
Florent Vilmart
f0b7ffcdd6 fix(package): update pg-promise to version 7.0.1 (#4248)
Closes #4239
2017-10-11 17:33:08 -04:00
Florent Vilmart
033437034d Release 2.6.3 (#4233)
*  Release 2.6.3

* Update CHANGELOG.md
2017-10-03 14:33:05 -04:00
Florent Vilmart
7fac070435 Allow queries with String array for pointers containedIn (#4188)
* Adds basic failing test

* Adds ability to use [objectId] for $in/$nin pointers

* makes sure to use a set field

* Makes sure field is defined
2017-10-03 13:50:39 -04:00
Florent Vilmart
2a168936fc Adds support for pointer/string pointers comparison in LiveQuery (#4231)
* Adds support for pointer/string pointers comparison in LiveQuery

* nits

* Makes sure needed is set

* Update QueryTools.js

* Update QueryTools.js
2017-10-03 13:50:20 -04:00
Chris Norris
23bffc8883 Add maxLimit server configuration (#4048)
* Add maxLimit server configuration

* Fix maxlimit validation logic to correctly handle maxLimit:0 case
2017-10-02 09:23:09 -04:00
greenkeeper[bot]
976da4d715 fix(package): update winston to version 2.4.0 (#4227) 2017-10-02 09:18:34 -04:00
greenkeeper[bot]
f2fc3ceabc fix(package): update pg-promise to version 6.10.2 (#4222) 2017-10-01 13:58:28 -04:00
Florent Vilmart
c872da493d fix(package): update pg-promise to version 6.10.1 (#4221)
Closes #4213
2017-09-30 12:59:09 -04:00
bivisss
7c07fff7cc remove device token when APNS error is BadDeviceToken (#4220) 2017-09-29 16:05:45 -04:00
greenkeeper[bot]
c777a263ba fix(package): update winston-daily-rotate-file to version 1.6.0 (#4157) 2017-09-28 10:08:25 -07:00
greenkeeper[bot]
61a3e3c7b6 fix(package): update request to version 2.83.0 (#4211) 2017-09-27 15:24:40 -07:00
Florent Vilmart
770aba193c fix(package): update pg-promise to version 6.9.0 (#4205)
* fix(package): update pg-promise to version 6.9.0

Closes #4160

* Update .travis.yml
2017-09-23 11:42:46 -04:00
greenkeeper[bot]
a3890572c4 fix(package): update request to version 2.82.0 (#4189) 2017-09-23 10:31:40 -04:00
greenkeeper[bot]
c059d15f56 fix(package): update body-parser to version 1.18.2 (#4201) 2017-09-23 10:31:20 -04:00
greenkeeper[bot]
fdf19def48 chore(package): update request-promise to version 4.2.2 (#4200) 2017-09-23 10:31:05 -04:00
Tyler Brock
6eed955319 Export LRU cache on ParseServer Object (#4203) 2017-09-22 17:36:20 -07:00
Florent Vilmart
b703ec8a79 Fix for #4194 - me no likey much (#4198)
* Adds failing test for #4194

* Use the rest module instad of the Parse._request

- Some users have an invalid serverUrl passed in the options

* removes console.logs, fixes tests that leveraged Parse._request
2017-09-22 12:05:06 -04:00
Tyler Brock
70ca7bdd41 Make some error messages more helpful (#4177) 2017-09-19 20:45:13 -07:00