Commit Graph

2353 Commits

Author SHA1 Message Date
Amirali Jafarian 9fb393196e Merge pull request #2809 from strongloop/update_release_notes
Update release notes
2016-10-02 15:55:00 -04:00
Amir Jafarian 1abbbc18e1 Update release notes 2016-10-02 15:42:34 -04:00
Rand McKinney 18d9c75abd Update README.md
Update link to doc site.
2016-09-30 08:54:16 -07:00
Candy 72b57ca68d Merge pull request #2802 from strongloop/add_translation2
Update translation files - round#2
2016-09-29 22:56:05 -04:00
Candy a31d5eea5b Update translation files - round#2 2016-09-28 13:56:14 -04:00
Candy ed8b651b98 Merge pull request #2784 from strongloop/add_license
Add license text
2016-09-23 13:23:25 -04:00
Candy 246da8fc5e Add license text 2016-09-23 10:32:22 -04:00
Miroslav Bajtoš 8a6ae998e4 Merge pull request #2779 from strongloop/fix/windows-ci
Temporarily disable Karma tests on Windows CI
2016-09-23 09:56:52 +02:00
Miroslav Bajtoš 8d0f319dd6 3.0.0
* Update deps to 3.0.0 RC (Miroslav Bajtoš)
 * Update globalization structure (Candy)
 * Call new disable remote method from model class. (Richard Pringle)
 * Add translation strings (Candy)
 * Support uniqueness for realm users (David Cheung)
 * Invalidate sessions after email change (Loay)
 * Add docs for KeyValue model (Simon Ho)
 * Fix remote method inheritance (Candy)
 * Fix double-slash in confirmation URL (Miroslav Bajtoš)
2016-09-22 12:48:40 +02:00
Miroslav Bajtoš a835d09bc8 Merge pull request #2780 from strongloop/update-deps-3.0RC
Update deps to 3.0.0 RC
2016-09-22 12:47:33 +02:00
Miroslav Bajtoš 9d259ce5a3 Update deps to 3.0.0 RC 2016-09-22 12:31:51 +02:00
Miroslav Bajtoš 54bf395249 Merge pull request #2754 from strongloop/use_common_globalize
Update globalization structure
2016-09-22 12:14:04 +02:00
Candy 640f3a8ca7 Update globalization structure 2016-09-22 11:58:00 +02:00
Miroslav Bajtoš 0cd157ca3d Temporarily disable Karma tests on Windows CI
We are observing frequent test failures on Windows CI, where PhantomJS
cannot start because there are no free handles available. Finding
and fixing the process leaking handles is non-trivial and will take
long time.

This commit disables Karma tests on Windows CI machines to prevent
build failures that we are ignoring anyways.
2016-09-22 10:49:00 +02:00
Miroslav Bajtoš 2f0dd6d6ec Merge pull request #2758 from strongloop/fix/disableMethodByName
Expose new method for disabling remote methods.
2016-09-22 09:39:04 +02:00
Richard Pringle 0ab33a82d4 Call new disable remote method from model class. 2016-09-21 14:09:24 -04:00
Candy 92ed2138fb Merge pull request #2755 from strongloop/add_translations
Add translation strings
2016-09-21 11:05:38 -04:00
Candy d5679666d9 Add translation strings 2016-09-21 10:29:38 -04:00
David Cheung 489ed919a5 Merge pull request #2298 from strongloop/user-realm-composite-key
Composite Key validation for Realm enabled users
2016-09-20 14:15:10 -04:00
David Cheung d544ae1bf8 Support uniqueness for realm users 2016-09-20 11:26:56 -04:00
Simon Ho c3ba632aa3 Merge pull request #2743 from strongloop/docs-for-kv-model
Add docs for KeyValue model
2016-09-19 15:29:47 -07:00
Loay 8061d1216d Merge pull request #2693 from strongloop/sessEmail
Invalidate sessions after email change
2016-09-19 13:54:31 -04:00
Loay bcc2d99a95 Invalidate sessions after email change 2016-09-19 10:24:30 -04:00
Simon Ho 845b73d4eb Add docs for KeyValue model 2016-09-18 19:45:13 -07:00
Candy 6752dd3af3 Merge pull request #2703 from strongloop/fix_remoting
Fix remote method inheritance
2016-09-13 13:56:43 -04:00
Candy d4b8cf670f Fix remote method inheritance 2016-09-13 13:23:09 -04:00
Miroslav Bajtoš 3eb9009741 Merge pull request #2738 from strongloop/fix/user-verify-email-with-empty-rest-root
Fix double-slash in confirmation URL
2016-09-13 09:07:30 +02:00
Miroslav Bajtoš 21ff383eb3 Fix double-slash in confirmation URL
Fix the code building the URL used in the email-verification email
to prevent double-slash in the URL when e.g. restApiRoot is '/'.

Before:

  http://example.com//users/confirm?...

Now:

  http://example.com/users/confirm?...
2016-09-13 08:52:49 +02:00
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