Commit Graph

2317 Commits

Author SHA1 Message Date
Miroslav Bajtoš 94f9a1bd05 Add instructions for upgrading context
Describe how to upgrade LoopBack 2.x apps to 3.x and prevent
"Error: remoting.context option was removed in version 3.0."
2016-09-07 12:48:24 +02:00
Miroslav Bajtoš da09876585 Merge pull request #2401 from strongloop/compat_flag_cleanup
[SEMVER-MAJOR] Discard sugar method for model creation
2016-09-07 12:43:53 +02:00
gunjpan 832e2c391c Discard sugar method for model creation
Current implementation of `app.model(modelName, settings)`
works as a sugar for model creation. In 3.0, this is
not supported anymore. This implementation reports an
error when sugar is used for model creation.
Includes:
 - Updated app.model() method
 - Fixed test cases reflecting the change
2016-09-07 10:40:23 +02:00
Amirali Jafarian a6f8ec672d Merge pull request #2539 from mountain1234585/upsertWithWhere
Add upsertWithWhere
2016-09-06 15:54:21 -04:00
Miroslav Bajtoš d78d4c9c29 Merge pull request #2720 from strongloop/fix/eslint-one-var
Remove one-var exceptions no longer needed
2016-09-06 17:20:02 +02:00
Miroslav Bajtoš d13d2a7ab0 Remove one-var exceptions no longer needed 2016-09-06 15:47:35 +02:00
Miroslav Bajtoš b48f7173ee Merge pull request #2717 from strongloop/feature/isemail
Rework email validation to use isemail
2016-09-06 14:36:36 +02:00
Miroslav Bajtoš 9a75ee6f30 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 14:09:00 +02:00
Miroslav Bajtoš 6220d1f986 3.0.0-alpha.4
* Update loopback-connector-remote to 2.0-alpha (Miroslav Bajtoš)
 * Add remoting for KeyValue model TTL feature (Simon Ho)
 * Add lint NPM script (Simon Ho)
 * Make the app instance available to connectors (Subramanian Krishnan)
 * Update pre-release dependencies (Miroslav Bajtoš)
 * Apply g.f to literal strings (Setogit)
 * Allow resetPassword if  emailVerified (Loay)
 * 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š)
 * Fix token middleware crash (Carl Fürstenberg)
 * loopback#context: fix missing "g" symbol (Miroslav Bajtoš)
 * Update acl.js (Rand McKinney)
 * Support 'alias' in mail transport config. (Samuel Reed)
 * Remove unnecessary g.log (Setogit)
 * Revert globalization of Swagger descriptions (Miroslav Bajtoš)
 * Revert globalization of assert() messages (Miroslav Bajtoš)
 * Add bcrypt validation (Loay)
2016-09-05 15:05:29 +02:00
Sonali Samantaray aef6dca30c Expose upsertWithWhere method 2016-09-02 18:10:47 +05:30
Miroslav Bajtoš 387be29185 Merge pull request #2699 from strongloop/update/remote-connector
Update loopback-connector-remote to 2.0-alpha
2016-09-01 13:32:58 +02:00
Miroslav Bajtoš 3dc0d5a64e Update loopback-connector-remote to 2.0-alpha 2016-09-01 13:13:32 +02:00
Simon Ho 69f7f0941f Merge pull request #2676 from strongloop/add-remoting-for-kv-model-ttl
Add remoting for kv model ttl
2016-08-29 17:13:29 -07:00
Simon Ho 9db0682b07 Add remoting for KeyValue model TTL feature 2016-08-29 14:46:41 -07:00
Simon Ho 32b879cf73 Add lint NPM script 2016-08-29 14:45:59 -07:00
Simon Ho 6c0b159a84 Merge pull request #2684 from strongloop/fix-glob-user
Apply g.f to literal strings
2016-08-29 10:40:18 -07:00
Miroslav Bajtoš 987f29e609 Merge pull request #2679 from SubuIBM/newRef
Make the app instance available to connectors

Close #2679
2016-08-29 15:16:30 +02:00
Subramanian Krishnan 40f0690573 Make the app instance available to connectors 2016-08-29 15:15:53 +02:00
Miroslav Bajtoš ca21243067 Merge pull request #2680 from strongloop/update/juggler-remoting
Update pre-release dependencies
2016-08-29 10:10:01 +02:00
Miroslav Bajtoš 3437d782d9 Update pre-release dependencies 2016-08-29 09:55:42 +02:00
Setogit 0f5136d072 Apply g.f to literal strings 2016-08-27 22:42:21 -07:00
Amirali Jafarian 358fdbf184 Merge pull request #2670 from strongloop/reorder_patch_put
Reorder PATCH Vs PUT endpoints
2016-08-26 16:09:43 -04:00
Loay 4ec0ac2218 Merge pull request #2671 from strongloop/Password-Security
Allow resetPassword by email only if email verification was done
2016-08-26 15:58:39 -04:00
Loay 5567917c12 Allow resetPassword if emailVerified 2016-08-26 13:11:42 -04:00
Amir Jafarian b80666a507 Reorder PATCH Vs PUT endpoints
*Reorder PATCH Vs PUT endpoints for update* methods
2016-08-26 11:08:35 -04:00
Miroslav Bajtoš 98eed7238d Merge pull request #2628 from benkroeger/master
Fix acl related model resolution

Close #2628
2016-08-25 13:10:59 +02:00
Benjamin Kroeger 4ff9a4c2ef streamline use if `self` 2016-08-25 12:51:51 +02:00
Benjamin Kroeger 01c1656fc2 resolve related models from correct registry
Also modify setup of test servers when ACL was used, force the app
to `loadBuiltinModels` with localRegistry.
2016-08-25 12:51:29 +02:00
Miroslav Bajtoš cc95860c68 Merge pull request #2638 from strongloop/feature/kvao-iterate-keys
KeyValueModel: add API for listing keys
2016-08-18 13:30:25 +02:00
Miroslav Bajtoš 88e4de5341 KeyValueModel: add API for listing keys
- Expose "keys()" at "GET /keys"
 - Add a dummy implementation for "iterateKeys" to serve a useful error
   message when the model is not attached correctly.
2016-08-18 10:50:45 +02:00
Miroslav Bajtoš 3dfd86f6ff Merge pull request #2650 from strongloop/fix/token-in-context-3x
Fix token middleware crash
2016-08-17 15:05:09 +02:00
Carl Fürstenberg edd5275b8b 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 14:44:00 +02:00
Miroslav Bajtoš ba5f36fb91 loopback#context: fix missing "g" symbol 2016-08-17 14:43:59 +02:00
Rand McKinney 01a9fa2ab2 Update acl.js
Fix typo in JS doc.
2016-08-16 10:14:17 -07:00
Samuel Reed 22345cfcda Support 'alias' in mail transport config.
Useful if you need to set up multiple transports of the same type.

[forward-port of #2489]
2016-08-16 16:24:56 +02:00
Tetsuo Seto 21ce174939 Merge pull request #2634 from strongloop/fixup-glob
Remove unnecessary g.log
2016-08-16 07:01:37 -07:00
Miroslav Bajtoš da0a543983 Merge pull request #2622 from strongloop/fix/unglobalize-swagger
Revert globalization of Swagger descriptions
2016-08-16 13:59:26 +02:00
Setogit d4769c7adf Remove unnecessary g.log 2016-08-15 21:52:44 -07:00
Miroslav Bajtoš 1a62ed7f27 Merge pull request #2623 from strongloop/fix/unglobalize-asserts
Revert globalization of assert() messages
2016-08-15 14:10:13 +02:00
Miroslav Bajtoš eec326dc80 Revert globalization of Swagger descriptions 2016-08-15 11:06:05 +02:00
Miroslav Bajtoš 80a0b7d7ad Revert globalization of assert() messages 2016-08-15 08:53:25 +02:00
Loay 21bdb28d37 Merge pull request #2580 from strongloop/bcrypt
Add bcrypt validation
2016-08-13 00:37:05 -04:00
Loay 7aebf0d132 Add bcrypt validation 2016-08-12 21:34:50 -04:00
Miroslav Bajtoš 899ab457e9 3.0.0-alpha.3
* common: add KeyValueModel (Miroslav Bajtoš)
 * Globalize current-context error messages (Miroslav Bajtoš)
 * Remove current-context API (Miroslav Bajtoš)
 * Fix forceId in tests (jannyHou)
 * test: increase timeout to prevent CI failures (Miroslav Bajtoš)
 * Update globalization string (Candy)
 * Update globalization (Candy)
 * Add globalization (Candy)
 * 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)
 * test: fix change-tracking setup (Miroslav Bajtoš)
 * test: use local registry in test fixtures (Miroslav Bajtoš)
 * Update loopback.js (Rand McKinney)
 * Fix test case error (Loay)
 * Update user.js (Loay)
 * Fix security issue 580 (Loay)
 * Update URLs in CONTRIBUTING.md (#2503) (Ryan Graham)
 * Remove legacyExplorer (gunjpan)
 * Remove `rectifyAllChanges` and `rectifyChange` (Candy)
 * Fix verificationToken bug (Loay)
 * update express version (Loay)
 * Cleanup unit-test added in 1fc51d129 (Miroslav Bajtoš)
 * update errorHandler template (Loay)
2016-08-11 13:34:01 +02:00
Miroslav Bajtoš 32ecd2fc5c Merge pull request #2594 from strongloop/feature/key-value-model
common: add KeyValueModel
2016-08-10 15:25:03 +02:00
Miroslav Bajtoš a259e59afc common: add KeyValueModel 2016-08-10 14:15:22 +02:00
Miroslav Bajtoš f13e584686 Merge pull request #2564 from strongloop/feature/remove-current-context
[SEMVER-MAJOR] Remove current-context API
2016-08-10 14:14:38 +02:00
Miroslav Bajtoš 59a82a9d5e Globalize current-context error messages 2016-08-10 13:43:40 +02:00
Miroslav Bajtoš b087c930ed Remove current-context API
Change all current-context APIs to throw a helpful error.
2016-08-10 13:43:40 +02:00
Janny 5fd1766a81 Merge pull request #2501 from strongloop/fix/forceId
Set forceId = false for AccessToken
2016-08-08 16:24:04 -04:00