Commit Graph

286 Commits

Author SHA1 Message Date
Candy 2135abc1db 2.38.3
* use lower version of karma-browserify (Diana Lau)
 * update karma-browserify to 5.x (Diana Lau)
 * update translation msg (Diana Lau)
 * Fix user-literal rewrite for anonymous requests (Aaron Buchanan)
 * Forward options in prepareForTokenInvalidation (Miroslav Bajtoš)
2017-04-17 16:40:50 -04:00
Diana Lau f1f9aab606 use lower version of karma-browserify 2017-04-13 15:28:48 -04:00
Diana Lau 645d5c615b update karma-browserify to 5.x
update karma-browserify to 5.x
2017-04-12 10:43:22 -04:00
Raymond Feng 78161ccd9b 2.38.2
* Fix file patch (Raymond Feng)
 * Add nyc coverage, report data to coveralls.io (Miroslav Bajtoš)
2017-03-17 08:54:26 -07:00
Miroslav Bajtoš 4713e5e7ea
Add nyc coverage, report data to coveralls.io 2017-03-14 13:42:15 +01:00
Miroslav Bajtoš 45284c3bf9
2.38.1
* Fix User.verify to convert uid to string (phairow)
 * Configure Travis CI to cache phantomjs binaries (Miroslav Bajtoš)
 * Improve "filter" arg description (Raymond Camden)
 * Fix creation of verification links (Miroslav Bajtoš)
 * Include link to docs in logoutSessions warning (Miroslav Bajtoš)
 * Fix detection of logoutSessionsOnSensitiveChanges (Miroslav Bajtoš)
 * Preserve sessions on User.save() making no changes (Miroslav Bajtoš)
 * Remove unused dependencies (Miroslav Bajtoš)
 * Fix logout to handle no or missing accessToken (Ritchie Martori)
 * Use English when running Mocha tests (Miroslav Bajtoš)
 * Role model: resolves related models by name (Benjamin Kroeger)
 * Fix User methods to use correct Primary Key (Aris Kemper)
2017-03-13 16:22:17 +01:00
Miroslav Bajtoš 6a4198896f Remove unused dependencies
- strong-error-handler
 - eslint

These dependencies were most likely added accidentally by fea3b781.
2017-01-30 15:09:59 +01:00
Miroslav Bajtoš 6fcb7dba6a 2.38.0
* Add app setting logoutSessionsOnSensitiveChanges (Miroslav Bajtoš)
 * Fix User.resetPassword to call createAccessToken() (João Ribeiro)
2017-01-20 15:10:26 +01:00
Miroslav Bajtoš d35e1a1b6f 2.37.1
* Preserve current session when invalidating tokens (Miroslav Bajtoš)
 * Clean up access-token-invalidation tests (Miroslav Bajtoš)
2017-01-16 12:00:57 +01:00
Miroslav Bajtoš dc2b6530b7 2.37.0
* Emit resetPasswordRequest event with options (Sergey Reus)
 * Fix false emailVerified on user model update (박대선)
 * Add new flag injectOptionsFromRemoteContext (Miroslav Bajtoš)
 * Contextify DAO and relation methods (Miroslav Bajtoš)
 * Implement new http arg mapping optionsFromRequest (Miroslav Bajtoš)
 * Fix package.json CI downstreamIgnoreList nesting (David Cheung)
2017-01-09 12:58:30 +01:00
Miroslav Bajtoš 693d52fc59 Contextify DAO and relation methods
Modify remoting metadata of data-access methods in PersistedModel
and relation method in Model and add an "options" argument to "accepts"
list.
2017-01-05 10:18:56 +01:00
David Cheung d53d069763 Fix package.json CI downstreamIgnoreList nesting
in packge.json strongloop/loopback#3000 ci should be a root element
instead of under config:ci
2017-01-03 15:23:57 -05:00
Simon Ho 9c3d596106 2.36.2
* Add option disabling periodic change rectification (kobaska)
 * Release LTS LB2 (Simon Ho)
 * Invalidate AccessTokens on password change (Miroslav Bajtoš)
 * Fix registration of operation hooks in User model (Miroslav Bajtoš)
 * Remove "options.template" from Email payload (Miroslav Bajtoš)
 * Opt-out downstream builds that are unstable (David Cheung)
 * Allow password reset request for users in realms (Bram Borggreve)
 * Add "returnOnlyRoleNames" option to Role.getRoles (Eric)
 * Fix context within listByPrincipalType role method (codyolsen)
 * Add templateFn option to User#verify() (Adrien Kiren)
 * Add options to bulkUpdate (Kogulan Baskaran)
 * Require verification after email change (Loay)
 * adding check of string for case insensitive emails (Dhaval Trivedi)
 * Fix PR template to not link all PRs to #49 (#2887) (Miroslav Bajtoš)
2016-12-21 17:54:34 -08:00
Simon Ho fe1c0b605b Release LTS LB2 2016-12-20 11:32:12 -08:00
David Cheung a759286330 Opt-out downstream builds that are unstable
repos that are opting out are not a good indicator of stability of
this module, and are failing
2016-12-06 10:35:13 -05:00
Miroslav Bajtoš 4cb9f0d74d 2.36.0
* Need index on principalId for performance. (#2883) (#2884) (Simon Ho)
 * Remove redundant items in PR template (#2877) (#2878) (Simon Ho)
 * Refactor PR template based on feedback (#2865) (#2874) (Simon Ho)
 * Add pull request template (#2843) (#2862) (Simon Ho)
 * Fix description of updateAll response (Miroslav Bajtoš)
2016-10-24 10:40:26 +02:00
Miroslav Bajtoš 060630aad6 2.35.0
* Reword ticking checkbox note in issue template (#2855) (Simon Ho)
 * Add how to tick checkbox in issue template (#2851) (#2853) (Simon Ho)
 * Use GitHub issue templates (#2810) (#2852) (Simon Ho)
 * Allow tokens with eternal TTL (value -1) (Miroslav Bajtoš)
 * Update ja and nl translation files (Candy)
 * Fix support for remote hooks returning a Promise (Tim van der Staaij)
 * Validate non-email property partial update (Loay)
 * Update translation files - round#2 (Candy)
 * Update tests to use registry for model creation (gunjpan)
 * Call new disable remote method from model class. (Richard Pringle)
 * Temporarily disable Karma tests on Windows CI (Miroslav Bajtoš)
 * Add translation files for 2.x (Candy)
 * Allow resetPassword if email is verified (Loay)
 * Add docs for KeyValue model (Simon Ho)
 * Invalidate sessions after email change (Loay)
 * Upgrade loopback-testing to the latest ^1.4 (Miroslav Bajtoš)
2016-10-13 10:12:11 +02:00
Miroslav Bajtoš 14b8426687 Merge pull request #2736 from strongloop/update/loopback-testing-in-2x
Upgrade loopback-testing to the latest ^1.4 [2.x-only]
2016-09-13 09:13:57 +02:00
Miroslav Bajtoš ec8250cf58 2.34.1
* Fix double-slash in confirmation URL (Miroslav Bajtoš)
2016-09-13 09:08:28 +02:00
Miroslav Bajtoš c4214024be Upgrade loopback-testing to the latest ^1.4 2016-09-12 13:21:07 +02:00
Miroslav Bajtoš 7d1f31cfb4 2.34.0 2016-09-12 11:27:35 +02:00
Miroslav Bajtoš 8f642b593c 2.33.0
* Fix data argument for upsertWithWhere (Amir Jafarian)
 * Expose upsertWithWhere (Sonali Samantaray)
 * Fix remoting metadata for "data" arguments (Miroslav Bajtoš)
 * Rework email validation to use isemail (Miroslav Bajtoš)
2016-09-09 10:25:18 +02:00
Miroslav Bajtoš 381222bf7a Rework email validation to use isemail
Drop hand-crafted RegExp in favour of a 3rd-party module that supports
RFC5321, RFC5322 and other relevant standards.
2016-09-06 13:00:27 +02:00
Miroslav Bajtoš eb43412439 2.32.0
* test/user: don't attach User model twice (Miroslav Bajtoš)
 * app.enableAuth: correctly detect attached models (Miroslav Bajtoš)
 * Apply g.f to literal strings (Candy)
 * Make the app instance available to connectors (Subramanian Krishnan)
 * Reorder PATCH Vs PUT endpoints (Amir Jafarian)
 * streamline use if `self` (Benjamin Kroeger)
 * resolve related models from correct registry (Benjamin Kroeger)
 * KeyValueModel: add API for listing keys (Miroslav Bajtoš)
2016-09-05 15:06:18 +02:00
Miroslav Bajtoš 56fa9829f7 2.31.0
* Fix token middleware crash (Carl Fürstenberg)
 * Support 'alias' in mail transport config. (Samuel Reed)
2016-08-17 16:26:40 +02:00
Carl Fürstenberg ba2fe0ee05 Fix token middleware crash
Fix token middleware to check if `req.loopbackContext` is active.
The context is not active for example when express-session calls
setImmediate which breaks CLS.
2016-08-17 13:42:43 +02:00
Miroslav Bajtoš 7f02191838 2.30.0
* Revert globalization of Swagger descriptions (Miroslav Bajtoš)
 * Expose `Replace*` methods (Amir Jafarian)
 * Add bcrypt validation (Loay)
 * Cache remoting descriptions to speed up tests (Miroslav Bajtoš)
 * Revert globalization of assert() messages (Miroslav Bajtoš)
 * Fix token middleware to not trigger CLS init (Miroslav Bajtoš)
 * common: add KeyValueModel (Miroslav Bajtoš)
 * Globalize current-context deprecation messages (Miroslav Bajtoš)
 * Deprecate current-context API (Miroslav Bajtoš)
 * test: increase timeout to prevent CI failures (Miroslav Bajtoš)
 * Backport of #2407 (Candy)
 * test: fix timeout in rest.middleware.test (Miroslav Bajtoš)
 * test: fix "socket hang up" error in app.test (Miroslav Bajtoš)
 * test: increate timeout in Role test (Miroslav Bajtoš)
 * test: make status test more robust (Miroslav Bajtoš)
 * test: fix broken Role tests (Miroslav Bajtoš)
 * Update dependencies to their latest versions (Miroslav Bajtoš)
 * Increase timeout (jannyHou)
 * Backport of #2565 (Miroslav Bajtoš)
 * Avoid calling deprecated methds (Amir Jafarian)
 * test: use local registry in test fixtures (Miroslav Bajtoš)
 * Fix test case error (Loay)
 * Backport/Fix security issue 580 (Loay)
2016-08-16 16:15:01 +02:00
Miroslav Bajtoš ca28e7ff9e Deprecate current-context API
Deprecate all current-context APIs in favour of loopback-context-cls.
2016-08-10 10:58:33 +02:00
Candy 3767940472 Backport of #2407 2016-08-05 11:55:32 -04:00
Miroslav Bajtoš fea3b781a0 Update dependencies to their latest versions 2016-08-05 10:54:42 +02:00
Miroslav Bajtoš e7bf538a2c 2.29.1
* Fix description for User.prototype.hasPassword (Jue Hou)
 * Fix verificationToken bug #2440 (Loay)
 * add missing unit tests for #2108 (Benjamin Kroeger)
2016-07-12 16:53:57 +02:00
Miroslav Bajtoš a1c98a8589 2.29.0
* test: increase timeouts on CI (Miroslav Bajtoš)
 * jscsrc: remove jsDoc rule (Miroslav Bajtoš)
 * Deprecate getters for express 3.x middleware (Miroslav Bajtoš)
 * Remove env.json and strong-pm dir (Ritchie Martori)
 * Fix JSCS unsupported rule error (Jason)
 * Resolver support return promise (juehou)
 * Update user.js (Rik)
 * Backport separate error checking and done logic (Simon Ho)
 * Clean up by removing unnecessary comments (Supasate Choochaisri)
 * Add feature to not allow duplicate role name (Supasate Choochaisri)
 * update/insert copyright notices (Ryan Graham)
 * relicense as MIT only (Ryan Graham)
 * Upgrade phantomjs to 2.x (Miroslav Bajtoš)
 * app: send port:0 instead of port:undefined (Miroslav Bajtoš)
 * travis: drop node@5, add node@6 (Miroslav Bajtoš)
 * Disable DEBUG output for eslint on Jenkins CI (Miroslav Bajtoš)
 * test/rest.middleware: use local registry (Miroslav Bajtoš)
 * Fix role.isOwner to support app-local registry (Miroslav Bajtoš)
 * test/user: use local registry (Miroslav Bajtoš)
2016-06-07 17:07:07 +02:00
Miroslav Bajtoš e2b1f78f1e Upgrade phantomjs to 2.x 2016-05-03 19:00:01 +02:00
Miroslav Bajtoš 6c59390754 Disable DEBUG output for eslint on Jenkins CI 2016-05-03 14:40:19 +02:00
Miroslav Bajtoš 6d738690c8 2.28.0
* Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method. (Supasate Choochaisri)
 * Fix typo in Model.nestRemoting (Tim Needham)
 * Allow built-in token middleware to run repeatedly (Benjamin Kröger)
 * Improve error message on connector init error (Miroslav Bajtoš)
 * application: correct spelling of "cannont" (Sam Roberts)
2016-05-02 13:00:09 +02:00
Supasate Choochaisri 2498c02f31 Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method.
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-04-29 16:29:50 -07:00
Miroslav Bajtoš 97f376c239 2.27.0
* Remove sl-blip from dependency (Candy)
 * Fix race condition in replication tests (Miroslav Bajtoš)
 * test: remove errant console.log from test (Ryan Graham)
 * Promisify Model Change (Jue Hou)
 * Fix race condition in error handler test (Miroslav Bajtoš)
 * Travis: drop iojs, add v4.x and v5.x (Miroslav Bajtoš)
 * Correct JSDoc findOrCreate() callback in PersistedModel (Miroslav Bajtoš)
 * Hide verificationToken (Miroslav Bajtoš)
 * test: use ephemeral port for e2e server (Ryan Graham)
 * test: fail on error instead of crash (Ryan Graham)
 * ensure app is booted before integration tests (Ryan Graham)
 * Checkpoint speedup (Amir Jafarian)
 * Pull in API doc fix from PR into master #1910 (crandmck)
2016-02-19 10:29:24 +01:00
Candy 70aec01e84 Remove sl-blip from dependency 2016-02-18 18:02:00 +01:00
Miroslav Bajtoš 122c1186ba 2.26.2
* Fix bulkUpdate to not trigger rectifyAll (Amir Jafarian)
2015-12-22 10:57:56 +01:00
Miroslav Bajtoš 69940ad3b0 2.26.1
* PersistedModel: log rectify/rectifyAll triggers (Miroslav Bajtoš)
2015-12-17 15:52:08 +01:00
Miroslav Bajtoš 3b66fc1c88 2.26.0
* change: skip cp lookup on no change (Miroslav Bajtoš)
 * Change: correctly rectify no-change (Miroslav Bajtoš)
 * Update model.js (Rand McKinney)
 * Adding properties description for User Model (David Cheung)
 * Add case-sensitve email option for User model. (Richard Pringle)
2015-12-09 09:44:03 +01:00
Raymond Feng bfd5059d11 2.25.0
* Fix typo in description of persistedModel.updateAttributes() (Richard Pringle)
2015-11-13 15:34:44 -08:00
Simon Ho f9545daf63 2.24.0
* Fix cookie-parser error (Simon Ho)
2015-11-09 17:30:25 -08:00
Simon Ho 444f92edab Fix cookie-parser error 2015-11-09 16:31:11 -08:00
Miroslav Bajtoš 1c1d534119 2.23.0
* lib/registry: fix findModel for model ctor (Miroslav Bajtoš)
 * Refer to licenses with a link (Sam Roberts)
 * Fix user.resetPassword to fail on email not found (Simo Moujami)
 * Fix typo in doc comment (Rand McKinney)
 * Do not include redundant ports in verify links (Samuel Gaus)
 * Set application's id property only if it's empty. (wusuopu)
 * Check configs for shared method settings (Simon Ho)
 * Add test fixtures for shared methods (Simon Ho)
 * Clean up .jshintrc (Simon Ho)
 * Update comment about user ACL to reflect implementation (Felipe Oliveira Carvalho)
2015-11-09 16:17:19 +01:00
Simon Ho 26af1472e7 Check configs for shared method settings 2015-09-28 16:27:48 -07:00
Miroslav Bajtoš 6fa57754ab 2.22.2
* Use strongloop conventions for licensing (Sam Roberts)
 * Set package license to MIT (Sam Roberts)
2015-09-23 09:34:37 +02:00
Sam Roberts 5f51ba9a19 Set package license to MIT 2015-09-21 15:40:55 -07:00
Miroslav Bajtoš 063e3c72ea 2.22.1
* Fix perf of rectification after updateAttributes (Miroslav Bajtoš)
 * Update persisted-model.js (Rand McKinney)
 * Stop NPM license warning (Simon Ho)
2015-09-18 17:07:32 +02:00
Simon Ho 457267ac64 Stop NPM license warning 2015-09-08 17:42:19 -07:00