Setting legacyExplorer to false in the loopback config will disable
the routes /routes and /models made available in loopback.rest.
The deprecate module has been added to the project with a reference
added for the legacyExplorer option as it is no longer required by
loopback-explorer. Tests added to validate functionality of disabled
and enabled legacy explorer routes.
Fix all test models that are tracking changes so that they have
a generated unique string id.
Make model names unique where possible to prevent tests reusing
the same model which causes unintented side effects.
Make the "redirect" parameter optional. When the parameter is not
specified, the server responds with an empty response (204). This allows
API clients to call the method without the need to handle redirects
and HTML responses.
Even when the "redirect" parameter is included, the builtin afterRemote
hook still calls next(), so that user-provided afterRemote hooks
are executed too.
Add unit-tests to verify that all DAO methods correctly create change
records.
Rework the change detection to use the new operation hooks, this fixes
the bugs where operations like "updateOrCreate" did not update change
records.
The patch strongloop/loopback-datasource-juggler#436 changed the way
how `Model.extend` works, which broke one loopback test relying on the
old behaviour.
This commit fixes the failing test. The test is checking now that
the model base was not changed, instead of checking that the base
is undefined.
Domains are created per request rather than creating a single
domain for all requests. This kills the memory leak, as a single
domain would keep a reference to every single req and res, causing
rapid heap growth.
2.11.0
* Document options for persistedmodel.save() (Rand McKinney)
* Add test case to demonstrate url-encoded http path (Pradnya Baviskar)
* Fix JSdocs per #888 (crandmck)
* Add test case for loopback issue #698 (Pradnya Baviskar)
* Remove usages of deprecated `req.param()` (Miroslav Bajtoš)
* Add error code property to known error responses. (Ron Edgecomb)
* test: use 127.0.0.1 instead of localhost (Ryan Graham)
* Extend AccessToken to parse Basic auth headers (Ryan Graham)
* tests: fix Bearer token test (Ryan Graham)
* don't send queries to the DB when no changes are detected (bitmage)