stalniy / casl-feathersjs-example

Example integration of CASL in feathersjs app
MIT License
28 stars 4 forks source link

Question - Will this work with new version 4 of feathers? #12

Open mylastore opened 4 years ago

mylastore commented 4 years ago

Question - Will this work with new version 4 of feathers? Has anyone implemented this with feathers version 4?

devops724-2 commented 3 years ago

https://github.com/stalniy/casl-feathersjs-example/blob/master/src/hooks/abilities.js i use this but get stuck in FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory error i found this loop in line const result = await service.get(hook.id, params) line call authorize recursive and cause max memory overflow

stalniy commented 3 years ago

eventually, I plan to move it into https://github.com/stalniy/casl-examples repo but currently have a lack of time to do this. I think it will be done in the next 3-6 months not faster.