Commit Graph

2014 Commits

Author SHA1 Message Date
Henrik Malmberg
741f869140 Allows to use dot-notation to match against a complex structure when using matchesKeyInQuery 2017-11-30 12:40:39 -08:00
Vitaly Tomilov
9d1d8515fc pg-promise refactoring (#4401)
initial refactoring of `pg-promise` code.
2017-11-30 08:30:15 +07:00
Addison Elliott
9eed81e636 Remove nsp check from Travis YML (#4403)
nsp is done through a GitHub PR hook and managed separately from Travis CI
2017-11-29 16:01:27 -05:00
Florent Vilmart
e2d33678a9 Makes all scripts cross platforms (#4383) 2017-11-27 23:22:07 -05:00
Florent Vilmart
6102648855 Release 2.7.0 (#4385)
*  Release 2.7.0

* Update CHANGELOG.md
2017-11-25 19:54:52 -05:00
Addison Elliott
dd55bbe700 Fix eslint errors on Windows (#4364)
* Fix eslint errors on Windows

On Windows, when run `npm run lint`, a **LOT** of the following errors
appeared:
```
 error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
```

This error only occurs on Windows because the `linebreak-style` eslint
setting was set to "unix". This is fixed by making the eslint config
file a Javascript script and setting the platform based on the build
platform.

Thus, the `linebreak-style` will be "windows" or "unix" depending on the
users platform.

* Remove linespace ending check in Lint

Add .gitattributes that will convert line endings automatically to LF when uploading to GitHub

* Remove bat file extension from gitattributes

Include lint check for line endings

* Change tabs to spaces

* Force LF line endings for each file upon downloading

Restore eslint linebreak style check for unix since LF line endings will be enforced

* Add a few more text files to the gitattributes

* Added png as binary file to gitattributes file

This was necessary because git was showing that the CRLF line endings were being converted to LF for PNG files on Windows
2017-11-25 16:06:52 -05:00
Diamond Lewis
4bccf96ae7 Add Indexes to Schema API (#4240)
* Add Indexes to Schema API

* error handling

* ci errors

* postgres support

* full text compound indexes

* pg clean up

* get indexes on startup

* test compound index on startup

* add default _id to index, full Text index on startup

* lint

* fix test
2017-11-25 15:39:31 -05:00
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