Commit Graph

146 Commits

Author SHA1 Message Date
Nora acbe35879b add node 12 to CI 2019-07-25 15:39:50 -04:00
Nora e5e4ba93ef drop support for node 6 2019-07-25 15:39:33 -04:00
Diana Lau 61f031aeb9
Merge pull request #96 from strongloop/copyrights
chore: update copyrights years
2019-05-08 11:47:25 -04:00
Agnes Lin 59f70ab3ce chore: update copyrights years 2019-05-07 13:34:15 -04:00
Miroslav Bajtoš 3e7537e1dd
3.4.1
* fix: return null when findById/findOne returns 404 (Jannis Ötjengerdes)
 * style: fix linting (virkt25)
2019-01-22 16:47:50 +01:00
Miroslav Bajtoš 4245df5c41
Merge pull request #94 from angfal/404_error_catch
Catch error and return null when findById/findOne doesn't find an entity
2019-01-22 16:46:58 +01:00
Jannis Ötjengerdes 4108db8945
fix: return null when findById/findOne returns 404
Co-authored-by: Maxim Sharai <maxim.sharai@tispr.com>
Co-authored-by: Jannis Ötjengerdes <joetjengerdes@rightmart.de>
2019-01-21 16:32:41 +01:00
virkt25 1a7b1be96d style: fix linting
- update eslint and eslint config
- fix linting
2018-08-24 09:14:41 -04:00
Taranveer Virk 6e09d0b4bf 3.4.0
* move dependencies (Stephen Crawford)
 * chore: drop node 4 and update deps (Taranveer Virk)
2018-06-21 02:13:08 -04:00
Taranveer Virk ae64f198ae
Merge pull request #89 from srcrawford/master
Move eslint dependencies to devDependencies
2018-06-21 02:10:10 -04:00
Stephen Crawford a504e25752 move dependencies 2018-06-21 00:46:37 +01:00
Taranveer Virk e2dad4e39a
Merge pull request #88 from strongloop/drop-node
chore: drop node 4 and update deps
2018-06-20 13:33:36 -04:00
Taranveer Virk 974694b526 chore: drop node 4 and update deps
Signed-off-by: Taranveer Virk <taranveer@virk.cc>
2018-06-20 10:29:51 -04:00
Miroslav Bajtoš 0c00806f77
3.3.1
* chore: update copyright notice years (Miroslav Bajtoš)
 * Fix duplicate definition of a remote model type (maxim.sharai)
2018-01-16 15:55:45 +01:00
Miroslav Bajtoš 60c081f893
chore: update copyright notice years 2018-01-16 15:55:09 +01:00
Miroslav Bajtoš 823a20f89d
Merge pull request #85 from angfal/#81
Fix duplicate definition of a remote model type
2018-01-16 15:52:48 +01:00
maxim.sharai af125c50cc
Fix duplicate definition of a remote model type
Before this commit, when a remote model had relations, the model was
registered an additional time per each relation. As a result,
the following warnings were printed to the console

   Warning: overriding remoting type $MODEL_NAME

This commit fixes registration of models with strong-remoting to avoid
those warnings.
2018-01-16 15:15:45 +01:00
Miroslav Bajtoš 906979a960
3.3.0
* Gruntfile: remove forgotten jshint task (Miroslav Bajtoš)
 * Preserve related models from "include" filter (Dimitris)
 * Add eslint to npm test, fix linter issues (Miroslav Bajtoš)
 * Refactor tests to use local per-app model registry (Miroslav Bajtoš)
2017-12-12 17:26:04 +01:00
Miroslav Bajtoš d622ce5ed8
Merge pull request #78 from mitsos1os/issue-42
Support retrieved related models from remote loopback service
2017-12-12 13:08:55 +01:00
Miroslav Bajtoš 4ec0ec5341
Gruntfile: remove forgotten jshint task 2017-12-12 09:39:46 +01:00
Dimitris a3d110b78c
Preserve related models from "include" filter
Before this change, when making a remote call with "include" filter
(for example `findById(11, {include:['children']})`), the related
models were removed from the result.

This commit fixes the implementation to correctly preserve related
models and also to cast them to correct model instances.
2017-12-12 09:39:37 +01:00
Miroslav Bajtoš ffaaec8973
Merge pull request #82 from strongloop/code-cleanup
Code cleanup
2017-12-11 15:43:40 +01:00
Miroslav Bajtoš 55cb88f727
Add eslint to npm test, fix linter issues 2017-12-11 14:51:48 +01:00
Miroslav Bajtoš d6a5c768fd
Refactor tests to use local per-app model registry
Refactor tests to stop sharing global models between different test
suites and use local per-app model registry instead.

Also clean up all test code to use `const` and `let` instead of `var`.
2017-12-11 14:45:43 +01:00
Miroslav Bajtoš fafc0e36f3
3.2.0
* Add support for configuring remoting options (Kenny Sabir)
 * chore:update license (Diana Lau)
 * Move remote connector doc into README (crandmck)
 * build: enable Travis CI (Miroslav Bajtoš)
 * Add stalebot configuration (Kevin Delisle)
 * Update Issue and PR Templates (#76) (Sakib Hasan)
 * Add CODEOWNER file (Diana Lau)
 * Replicate new issue_template from loopback (Siddhi Pai)
 * Replicate issue_template from loopback repo (Siddhi Pai)
 * Add "options" arg to stubbed models in tests (Miroslav Bajtoš)
2017-12-05 14:43:32 +01:00
Miroslav Bajtoš 607fec76be
Merge pull request #77 from agriwebb/pass-args-connector
Add support for configuring remoting options
2017-12-05 14:42:53 +01:00
Kenny Sabir 816e989b4e
Add support for configuring remoting options
Allow remote-connector users to provide "options" property in the
datasource configuration, this "options" object is then passed down to
RemoteObjects and allows e.g. configuration of pass-through
authorization, where the remoting connector passes the access token
used to make the incoming request down to the backend service invoked.
2017-12-05 14:22:10 +01:00
Diana Lau 07d6e1b66e
Merge pull request #80 from strongloop/license
chore:update license
2017-11-10 22:52:33 -05:00
Diana Lau 1afbe06716 chore:update license 2017-11-09 13:33:09 -05:00
crandmck 8e0c39b47f Move remote connector doc into README 2017-11-07 14:25:19 -08:00
Miroslav Bajtoš ed20519ce7 Merge pull request #79 from strongloop/add-travis
build: enable Travis CI
2017-10-17 14:37:26 +02:00
Miroslav Bajtoš 80f29b9c91
build: enable Travis CI 2017-10-17 14:25:32 +02:00
Kevin Delisle 94b2eba6ab Add stalebot configuration 2017-08-22 13:14:17 -04:00
Sakib Hasan 434840522c Update Issue and PR Templates (#76)
* update issue template

* update pr template
2017-08-16 14:25:29 -04:00
Miroslav Bajtoš 1cf92430c5 Merge pull request #73 from strongloop/replicate-issue-template
Replicate issue_template from loopback repo
2017-07-27 09:04:00 +02:00
Miroslav Bajtoš ab5992c3b9 Merge pull request #75 from strongloop/add-codeowner
Add CODEOWNERS file
2017-07-27 09:02:09 +02:00
Diana Lau 468c4ae0a7 Add CODEOWNER file 2017-07-24 19:47:21 -04:00
Siddhi Pai 94cb7f08a9 Replicate new issue_template from loopback 2017-02-15 15:29:23 -08:00
Siddhi Pai 7af85add04 Replicate issue_template from loopback repo 2017-02-13 10:27:33 -08:00
Miroslav Bajtoš 1534626f01 Merge pull request #71 from strongloop/fix/computed-options-arg
Add "options" arg to stubbed models in tests
2016-12-22 11:13:26 +01:00
Miroslav Bajtoš 1168bb6080 Add "options" arg to stubbed models in tests 2016-12-22 10:56:11 +01:00
Miroslav Bajtoš 45fa573432 3.1.1
* Update package.json for LB3 release (Simon Ho)
 * Update paid support URL (Siddhi Pai)
2016-12-21 16:03:43 +01:00
Miroslav Bajtoš 7259631821 Merge pull request #69 from strongloop/release/3.x
Update package.json for LB3 release
2016-12-21 10:46:15 +01:00
Simon Ho d728e57276 Update package.json for LB3 release 2016-12-21 00:46:48 -08:00
Simon Ho 21ed5a9b93 Merge pull request #68 from strongloop/update-support-URL
Replicate .github from loopback repo
2016-12-06 23:15:19 -08:00
Siddhi Pai 0d687896a9 Update paid support URL 2016-12-06 03:08:27 -08:00
Miroslav Bajtoš 1506a5039e 3.1.0
* Drop support for Node v0.10 and v0.12 (Miroslav Bajtoš)
 * Fix version info in README (Miroslav Bajtoš)
 * Update deps to loopback 3.0.0 RC (Miroslav Bajtoš)
2016-12-05 10:16:31 +01:00
Miroslav Bajtoš 352b38128a Merge pull request #67 from strongloop/drop-support-node-0x
Drop support for Node v0.10 and v0.12
2016-11-15 15:05:12 +01:00
Miroslav Bajtoš 832e990337 Drop support for Node v0.10 and v0.12 2016-11-15 14:19:17 +01:00
Miroslav Bajtoš 5db2240348 Merge pull request #66 from strongloop/fix/readme
Fix version info in README
2016-10-17 13:38:26 +02:00