Commit Graph

294 Commits

Author SHA1 Message Date
virkt25 b27971e074 2.40.0
* fix: accessToken create default acl (virkt25)
2018-08-08 18:17:11 -04:00
Kevin Delisle 8be91b8129 2.39.2
* Babelify juggler for Karma tests (Miroslav Bajtoš)
 * Fix Karma config to babelify node_modules too (Miroslav Bajtoš)
2018-02-12 12:03:02 -05:00
Miroslav Bajtoš 1575becb92 Babelify juggler for Karma tests
Fix configuration of Karma:

 - Disable ES6 modules. The ES6 module transpiler is adding
  "use strict" to all source files, this breaks e.g. chai or juggler
 - Relax "ignore" setting to exclude only strong-task-emitter,
   thus bring back Babel transpilation for chai and juggler.
2018-02-09 10:38:22 -05:00
Taranveer Virk c650b0db87 2.39.1
* update juggler dep (Taranveer Virk)
 * fix(id): replace with != null (Samuel Reed)
 * fix(AccessContext): Tighten userid/appid checks (Samuel Reed)
2018-01-31 16:58:02 -05:00
Taranveer Virk 7ddc0b14cf update juggler dep 2018-01-31 14:40:37 -05:00
Miroslav Bajtoš 6e0e60c2a2
2.39.0
* Drop support for Node.js versions 0.10 and 0.12 (Miroslav Bajtoš)
 * test: fix too strict test assertion (Miroslav Bajtoš)
 * Add unit test for empty password (loay)
 * Update translated strings Q2 2017 (Allen Boone)
2017-10-23 09:22:09 +02:00
Miroslav Bajtoš 538bc9a7d5
Drop support for Node.js versions 0.10 and 0.12
Some of our dependencies are no longer supporting pre-4.0 versions of
Node.js. As a result, our CI builds are failing on these platforms.

This pull request removes 0.10 and 0.12 from our Travis CI build matrix
and also adds "engines" field to package.json to tell our internal
Jenkins CI to stop testing 0.10 and 0.12 versions too.
2017-10-19 16:47:53 +02:00
Miroslav Bajtoš 4f928bf965
test: fix too strict test assertion
Rework the test verifying properties of `loopback` to ignore
new express properties added after the test was written.

Ignore "json" and "urlencoded" middleware that was added back
to Express, keep using our wrappers printing a deprecation message.
2017-10-17 14:16:20 +02:00
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