Documentation for disableRemoteMethod does not indicate that this method is deprecated.
In both LB 2 and 3 docs.
I was not aware of this...Why do you think it's deprecated?
Is it because https://loopback.io/doc/en/lb3/3.0-Release-Notes.html#clean-up-of-api-for-finding-and-disabling-remote-methods says to use disableMethodByName()
?
@bajtos Can you confirm that disableMethodByname() is deprecated? If so, is it for 3.0 only or both 2.x and 3.0?
Hi -- I was going by this line 439
OK this should be added to the API docs as well. But my question to @bajtos stands: just for 3.0?
As part of the work on the above change, add new SharedClass methods findMethodByName and disableMethodByName in both 2.x and 3.0. The old methods find and disableMethod are deprecated in 3.0.
from https://strongloop.com/strongblog/coming-soon-loopback-3-0/
just for 3.0?
Yes, only for 3.0, as was described in the "coming-soon" blog post.
See lib/model.js in the 2.x branch.
Updated in loopback.io docs. Need to update API docs also.
API docs are now updated: http://apidocs.strongloop.com/loopback/#model-disableremotemethodbyname
@crandmck fwiw, I think API docs have regressed, I can't see any note in there about disableRemoteMethod being deprecated, despite the logging message still being in current source.