Commit Graph

2490 Commits

Author SHA1 Message Date
greenkeeper[bot]
f7bcfcea24 Update husky to the latest version 🚀 (#5526)
* chore(package): update husky to version 2.0.0

* chore(package): update lockfile package-lock.json
2019-04-24 16:53:18 +00:00
Omair Vaiyani
a1e1cef6d2 Add beforeLogin trigger with support for auth providers (#5445)
* Add beforeLogin trigger with support for auth providers

* adjust comment that boxed off beforeLogin to a negative use-case only

* add internal error to help future maintainers regarding use of beforeLogin

* let beforeLogin accept className or constructor like other hook types

* add assertions for beforeLogin trigger className validation
2019-04-23 08:24:20 -07:00
dependabot[bot]
3e003ee9f4 Bump nyc from 13.1.0 to 14.0.0 (#5517)
Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v13.1.0...v14.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-16 10:54:55 +00:00
dependabot[bot]
828ae7e708 Bump mongodb from 3.2.2 to 3.2.3 (#5492)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/master/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 12:07:19 +00:00
dependabot[bot]
2998b2a1ca Bump eslint-plugin-flowtype from 3.5.0 to 3.6.1 (#5495)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 3.5.0 to 3.6.1.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v3.5.0...v3.6.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 11:51:26 +00:00
dependabot[bot]
1f109de7a9 Bump mime from 2.4.0 to 2.4.2 (#5493)
Bumps [mime](https://github.com/broofa/node-mime) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/broofa/node-mime/releases)
- [Changelog](https://github.com/broofa/node-mime/blob/master/CHANGELOG.md)
- [Commits](https://github.com/broofa/node-mime/compare/v2.4.0...v2.4.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 11:29:05 +00:00
dependabot[bot]
c0b8de7a76 Bump prettier from 1.16.4 to 1.17.0 (#5512)
Bumps [prettier](https://github.com/prettier/prettier) from 1.16.4 to 1.17.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.16.4...1.17.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 11:06:00 +00:00
dependabot[bot]
0bad5f40e4 Bump bcrypt from 3.0.5 to 3.0.6 (#5511)
Bumps [bcrypt](https://github.com/kelektiv/node.bcrypt.js) from 3.0.5 to 3.0.6.
- [Release notes](https://github.com/kelektiv/node.bcrypt.js/releases)
- [Changelog](https://github.com/kelektiv/node.bcrypt.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kelektiv/node.bcrypt.js/compare/v3.0.5...v3.0.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 10:57:57 +00:00
dependabot[bot]
dc9434645b Bump flow-bin from 0.96.0 to 0.97.0 (#5510)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.96.0 to 0.97.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.96.0...v0.97.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 10:48:35 +00:00
dependabot[bot]
266db27c72 Bump pg-promise from 8.6.4 to 8.6.5 (#5509)
Bumps [pg-promise](https://github.com/vitaly-t/pg-promise) from 8.6.4 to 8.6.5.
- [Release notes](https://github.com/vitaly-t/pg-promise/releases)
- [Commits](https://github.com/vitaly-t/pg-promise/compare/8.6.4...8.6.5)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 10:38:29 +00:00
Sam Ilic
6ffc41345f Winston 3 upgrade (#5496)
*  Release 3.1.3 (#5267)

*  Release 3.1.3

* Update CHANGELOG.md

* ⬆️ Bump winston and winston-daily-rotate-file

Bumps [winston](https://github.com/winstonjs/winston) and [winston-daily-rotate-file](https://github.com/winstonjs/winston-daily-rotate-file). These dependencies needed to be updated together.

Updates `winston` from 2.4.4 to 3.1.0
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](https://github.com/winstonjs/winston/compare/2.4.4...3.1.0)

Updates `winston-daily-rotate-file` from 1.7.2 to 3.5.1
- [Release notes](https://github.com/winstonjs/winston-daily-rotate-file/releases)
- [Commits](https://github.com/winstonjs/winston-daily-rotate-file/compare/v1.7.2...v3.5.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Rewrote WinstonLogger to work with winston 3.x api

* Changed winston logger test to use winston-transport

* Added winston-transport dependency

* Close and remove transports before adding them again

* Changed to strict equal

* Override adapter name

* Updated and added getLogs tests

* Bump winston and winston-daily-rotate-file

Bumps [winston](https://github.com/winstonjs/winston) and [winston-daily-rotate-file](https://github.com/winstonjs/winston-daily-rotate-file). These dependencies needed to be updated together.

Updates `winston` from 2.4.4 to 3.2.0
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](https://github.com/winstonjs/winston/compare/2.4.4...3.2.0)

Updates `winston-daily-rotate-file` from 1.7.2 to 3.6.0
- [Release notes](https://github.com/winstonjs/winston-daily-rotate-file/releases)
- [Commits](https://github.com/winstonjs/winston-daily-rotate-file/compare/v1.7.2...v3.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Fixed tests, updated parse logging

* Fixed tests, better error logging

* Fix failing tests

* Updates as per review
2019-04-14 18:03:33 -05:00
Arthur Cinader
943134812e Revert "Bump jasmine from 3.1.0 to 3.4.0" (#5506)
This reverts commit e396612254.
2019-04-14 17:40:59 -05:00
Müller Zsolt
019cf0a986 added an RFC 7662 compliant OAuth2 auth adapter (#4910)
* added an RFC 7662 compliant OAuth2 auth adapter

* forgot to add the actual auth adapter to the previous commit

* fixed lint errors

* * added test coverage
* changed option names in auth adapter from snake case to camel case
* added underscore prefix to helper function names
* merged consecutive logger calls into one call and use JSON.stringify() to convert JSON objects to strings
* changed error handling (ParseErrors are no longer thrown, but returned)

* added description of the "debug" option and added this option to the tests too

* added a check of the "debug" option to the unittests and replaced require() of the logger with an import (the former does not work correctly)

* added AuthAdapter based auth adapter runtime validation to src/Adapters/Auth/index.js, added capability to define arbitrary providernames with an "adapter" property in auth config, replaced various "var" keywords with "const" in oauth2.js

* incorporated changes requested by flovilmart (mainly that oauth2 is now not a standalone adapter, but can be selected by setting the "oauth2" property to true in auth config

* modified oauth2 adapter as requested by flovilmart

* bugfix: defaultAdapter can be null in loadAuthAdapter() of index.js (my change broke the tests)

* added TODO on need for a validateAdapter() to validate auth adapters

* test cases and cleanup
2019-04-11 11:05:55 -05:00
Tulsi Sapkota
a3746cab00 Cannot change password when maxPasswordHistory is 1 (#5191)
* Negitive to zero and positive to same value

* add failing test
2019-04-10 10:12:09 -07:00
CoderickLamar
c7eb7daeae Fix for count being very slow on large Parse Classes' collections (Postgres) (#5330)
* Changed count to be approximate. Should help with postgres slowness

* refactored last commit to only fall back to estimate if no complex query

* handlign variables correctly

* Trying again because it was casting to lowercase table names which doesnt work for us/

* syntax error

* Adding quotations to pg query

* hopefully final pg fix

* Postgres will now use an approximate count unless there is a more complex query specified

* handling edge case

* Fix for count being very slow on large Parse Classes' collections in Postgres. Replicating fix for Mongo in issue 5264

* Fixed silly spelling error resulting from copying over notes

* Lint fixes

* limiting results to 1 on approximation

* suppress test that we can no longer run for postgres

* removed tests from Postgres that no longer apply

* made changes requested by dplewis

* fixed count errors

* updated package.json

* removed test exclude for pg

* removed object types from method

* test disabled for postgres

* returned type

* add estimate count test

* fix mongo test
2019-04-08 17:59:15 -05:00
dependabot[bot]
e396612254 Bump jasmine from 3.1.0 to 3.4.0
Bumps [jasmine](https://github.com/jasmine/jasmine-npm) from 3.1.0 to 3.4.0.
- [Release notes](https://github.com/jasmine/jasmine-npm/releases)
- [Commits](https://github.com/jasmine/jasmine-npm/compare/v3.1.0...v3.4.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-04 10:21:49 +00:00
greenkeeper[bot]
cf00dfa1c3 Update parse to the latest version 🚀 (#5486)
* fix(package): update parse to version 2.3.2

* chore(package): update lockfile package-lock.json
2019-04-04 03:10:35 +00:00
greenkeeper[bot]
b208fbf6a9 Update eslint-plugin-flowtype to the latest version 🚀 (#5480)
* chore(package): update eslint-plugin-flowtype to version 3.5.0

* chore(package): update lockfile package-lock.json
2019-04-03 17:52:30 +00:00
dependabot[bot]
d779144da1 Bump @babel/core from 7.4.0 to 7.4.3 (#5478)
Bumps [@babel/core](https://github.com/babel/babel) from 7.4.0 to 7.4.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.0...v7.4.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-03 11:32:53 +00:00
dependabot[bot]
3227b0f4ae Bump @babel/preset-env from 7.4.2 to 7.4.3 (#5477)
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.2...v7.4.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-03 11:02:28 +00:00
dependabot[bot]
bfe60049b3 Bump @babel/cli from 7.2.3 to 7.4.3 (#5476)
Bumps [@babel/cli](https://github.com/babel/babel) from 7.2.3 to 7.4.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.3...v7.4.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-03 10:52:35 +00:00
dependabot[bot]
5174afd300 Bump @babel/plugin-proposal-object-rest-spread from 7.4.0 to 7.4.3 (#5475)
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel) from 7.4.0 to 7.4.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.0...v7.4.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-03 10:42:42 +00:00
greenkeeper[bot]
44189802e9 Update commander to the latest version 🚀 (#5473)
* fix(package): update commander to version 2.20.0

* chore(package): update lockfile package-lock.json
2019-04-03 01:06:43 +00:00
Georges Jamous
214aa2e450 using per-key basis queue (#5420)
* adding KeyPromiseQueue

* nit

* removing secondary object and using a tuple

* using array

* nits

* some tests

* Minor refinements

* removing old adapter

* dummy change, travis test not found

* travis test missing, dummy change

* revrting mistake

* reverting mistake

* indentation fix

* additional tests for coverage

* extending coverage

* nits

* fixing mistake

* better code
2019-04-02 10:07:31 -07:00
Diego Vieira
c3eb256139 Update README.md (#5431)
Improve getting started for Docker.
2019-04-02 09:55:06 -07:00
Tom Fox
dd1c0fe2e8 Add twitter follow badge (#5464)
* Add twitter follow button

* fix twitter link
2019-04-02 13:06:45 +01:00
greenkeeper[bot]
f137f4dd96 Update flow-bin to the latest version 🚀 (#5469)
* chore(package): update flow-bin to version 0.96.0

* chore(package): update lockfile package-lock.json
2019-04-02 03:44:41 +00:00
dependabot[bot]
8df75a730a Bump eslint from 5.15.3 to 5.16.0 (#5468)
Bumps [eslint](https://github.com/eslint/eslint) from 5.15.3 to 5.16.0.
- [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.15.3...v5.16.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-01 10:47:18 +00:00
Arthur Cinader
a3c8629fd9 Release notes and version bump for 3.2.3 (#5467) 2019-03-30 18:32:37 -07:00
Diamond Lewis
730f5c5c3d Allow test credentials for Facebook Auth (#5466)
* Allow test credentials for Facebook Auth

* node_env testing
2019-03-30 18:21:41 -05:00
Arthur Cinader
edf5b513dc Protected fields fix (#5463)
* fix minor spelling mistake

* Always process userSensitiveFields if they exist

* Cover change to protectedFields
Add start of some more tests for protectedFields
which i need to do to document the feature.

* re-arrange promise deck chairs to not
swallow errors.

* remove noop code

* protect agains the case where options.protectedFields
is set without a _User permission.
2019-03-30 15:38:52 -07:00
Arthur Cinader
11976b8d24 Changelog and package increment for 3.2.1 (#5461)
* changelog and package increment for 3.2.1

* update package-lock to match package.json
2019-03-29 21:27:57 -07:00
Arthur Cinader
03cd314495 Changelog for forthcoming 3.2 release (#5449)
* Changelog for forthcoming 3.2 release

* fix change log comparison

* add parse sdk upgrade to notes
make links

* fix parse sdk version
2019-03-29 17:27:40 -07:00
Arthur Cinader
9d064890d7 Remove an invisible that is causing display issue (#5458)
* Remove an invisible that is causing display issue

* move code transfer to bottom
2019-03-30 00:07:39 +00:00
greenkeeper[bot]
7bf868e751 Update parse to the latest version 🚀 (#5457)
* fix(package): update parse to version 2.3.1

* chore(package): update lockfile package-lock.json
2019-03-29 21:32:13 +00:00
greenkeeper[bot]
b2ec5c10ce Update ws to the latest version 🚀 (#5453)
* fix(package): update ws to version 6.2.1

* chore(package): update lockfile package-lock.json
2019-03-27 13:00:32 +00:00
dependabot[bot]
4e07d16148 Bump semver from 5.6.0 to 6.0.0 (#5451)
Bumps [semver](https://github.com/npm/node-semver) from 5.6.0 to 6.0.0.
- [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/v5.6.0...v6.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-27 10:48:29 +00:00
dependabot[bot]
f2c332ea6a Bump mongodb from 3.2.1 to 3.2.2 (#5446)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/master/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v3.2.1...v3.2.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-25 11:01:31 +00:00
Tom Fox
d64a23b2f7 Remove flovilmart's email from the COC (#5438)
* remove flovilmart email

* change email
2019-03-22 12:54:02 -07:00
greenkeeper[bot]
3c39e3232f Update mongodb to the latest version 🚀 (#5441)
* fix(package): update mongodb to version 3.2.1

* chore(package): update lockfile package-lock.json
2019-03-21 20:31:10 +00:00
dependabot[bot]
6376aea320 Bump @babel/preset-env from 7.4.1 to 7.4.2 (#5439)
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.4.1...v7.4.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-21 10:34:08 +00:00
greenkeeper[bot]
a27371b6a4 Update babel7 to the latest version 🚀 (#5436)
* chore(package): update @babel/preset-env to version 7.4.1

* chore(package): update lockfile package-lock.json
2019-03-20 02:29:54 +00:00
greenkeeper[bot]
9f2415420b Update babel7 to the latest version 🚀 (#5435)
* chore(package): update @babel/core to version 7.4.0

* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.4.0

* chore(package): update @babel/plugin-transform-flow-strip-types to version 7.4.0

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

* chore(package): update lockfile package-lock.json
2019-03-19 22:40:56 +00:00
greenkeeper[bot]
7eddc4c658 Update bcrypt to the latest version 🚀 (#5433)
* chore(package): update bcrypt to version 3.0.5

* chore(package): update lockfile package-lock.json
2019-03-19 13:16:30 +00:00
dependabot[bot]
4cd12e9049 Bump eslint from 5.15.2 to 5.15.3 (#5432)
Bumps [eslint](https://github.com/eslint/eslint) from 5.15.2 to 5.15.3.
- [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.15.2...v5.15.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-19 10:30:37 +00:00
dependabot[bot]
adf0633e7b Bump eslint from 5.15.1 to 5.15.2 (#5428)
Bumps [eslint](https://github.com/eslint/eslint) from 5.15.1 to 5.15.2.
- [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.15.1...v5.15.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-18 10:41:57 +00:00
dependabot[bot]
4d9083bdfa Bump flow-bin from 0.94.0 to 0.95.1 (#5427)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.94.0 to 0.95.1.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/compare/v0.94.0...v0.95.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-18 10:32:27 +00:00
greenkeeper[bot]
a75f129542 Update pg-promise to the latest version 🚀 (#5424)
* fix(package): update pg-promise to version 8.6.4

* chore(package): update lockfile package-lock.json
2019-03-16 07:05:22 +00:00
Diamond Lewis
2c51011018 Fix Discourse Badge (#5423) 2019-03-15 17:41:35 -07:00
moonion
d84566ac28 Ajax password reset (#5332)
* adapted public api route for use with ajax

* Elegant error handling

* Fixed error return

* Public API error flow redone, tests

* Fixed code to pre-build form

* Public API change password return params

* Reverted errors in resetPassword

* Fixed querystring call

* Success test on ajax password reset

* Added few more routes to tests for coverage

* More tests and redone error return slightly

* Updated error text

* Console logs removal, renamed test, added {} to if

* Wrong error sent

* Revert changes

* Revert "Revert changes"

This reverts commit 68ee2c44bf2411ca8b56b039a4d490a7e2f99ae9.

* real revert of {}

* nits and test fix

* fix tests

* throw proper error
2019-03-14 16:06:18 -05:00