Miroslav Bajtoš
eec85367e7
3.0.0-alpha.5
...
* Use strong-remoting's new TypeRegistry (Miroslav Bajtoš)
* test/user: don't attach User model twice (Miroslav Bajtoš)
* app.enableAuth: correctly detect attached models (Miroslav Bajtoš)
* Fix remoting metadata for "data" arguments (Miroslav Bajtoš)
* Add instructions for upgrading context (Miroslav Bajtoš)
* Discard sugar method for model creation (gunjpan)
* Remove one-var exceptions no longer needed (Miroslav Bajtoš)
* Rework email validation to use isemail (Miroslav Bajtoš)
* Expose upsertWithWhere method (Sonali Samantaray)
2016-09-09 10:34:59 +02:00
Miroslav Bajtoš
252b6f41c6
Merge pull request #2696 from strongloop/feature/coercion-overhaul
...
Use strong-remoting's new TypeRegistry
2016-09-09 10:34:12 +02:00
Miroslav Bajtoš
6e1defcb18
Use strong-remoting's new TypeRegistry
2016-09-09 10:01:29 +02:00
Miroslav Bajtoš
92a5a08671
test/user: don't attach User model twice
2016-09-09 09:02:41 +02:00
Miroslav Bajtoš
32bdeccebf
app.enableAuth: correctly detect attached models
...
Fix a typo in "app.enableAuth" that caused the method to not detect
the situation when e.g. the built-in User model is already attached
to a datasource.
2016-09-09 09:02:41 +02:00
Miroslav Bajtoš
f5acf6aebd
Merge pull request #2727 from strongloop/fix/data-object-arguments-3x
...
Fix remoting metadata for "data" arguments
2016-09-07 14:37:15 +02:00
Miroslav Bajtoš
f76edd5d61
Fix remoting metadata for "data" arguments
...
Fix the definition of "data" argument to
{ type: 'object', model: modelName, ... }
That way strong-remoting passed the request body directly to the model
method (does not create a new model instance), but the swagger will
still provide correct schema for these arguments.
This fixes a bug where upsert in relation methods was adding default
property values to request payload.
2016-09-07 14:27:58 +02:00
Miroslav Bajtoš
554ccbd035
Merge pull request #2721 from strongloop/docs/context-upgrade-2x-3x
...
Add instructions for upgrading context
2016-09-07 13:03:39 +02:00
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