Support for LoopBack 3.x
Hello,
Do you plan to adjust this package to be usable with Loopback 3.x ? That would mainly mean refactoring the code to use options propagation rather than deprecated LoopBack current-context APIs (see documentation for details).
Hi @ivanschwarz - Yes, although we are not yet using loopback 3.x in-house, so it's not on our immediate priorities list. Will happily review and test patches though.
We have just published a new beta release that is compatible with loopback 3.x that is ready for community testing:
https://github.com/fullcube/loopback-component-access-groups/releases/tag/v2.0.0-beta1
Agree that this would be better future-proofed by moving away from loopback-context and instead making use of the new paradigm whereby context is passed via options paramaters, per description at https://loopback.io/doc/en/lb3/Using-current-context.html
I've personally been working towards this, but I am having a heck of a time getting anything set on the options object that is available in operation hooks.
Hi, is there an update on the user docs for loopback 3.0? I am getting an error when enabling middleware context
Error: loopback#context middleware was removed in version 3.0. See http://loopback.io/doc/en/lb2/Using-current-context.html for more details.