> For the complete documentation index, see [llms.txt](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/version-2-support-feathers-4/docs/migrating.md).

# Migrating

From version 2.0.0 we support only Feathers > v4,\
to update your app to  Feathers  v4 please read [this guide](https://docs.feathersjs.com/guides/migrating.html)\
After that you can install feathers-mongoose-casl\@2.0.1\
\
And then:

1- Please remove authenticate, validateAbilities, validateSchema, sanitizedData from  app.hook.js\
the result need to be<br>

{% content-ref url="/pages/-LY1GtJrDtB6lgRQ4kF8" %}
[App hooks](/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/update-app.hook.md)
{% endcontent-ref %}

2- Add this hooks to each one of your services\
like in this guide:

{% content-ref url="/pages/-LY1jMHTwPeQfD7mu\_ud" %}
[Create a new Service with casl\&Dashboard](/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/update-posts-model.md)
{% endcontent-ref %}

3 - Update you src/authentication.js\
like in this guide

{% content-ref url="/pages/-LY1LtolvWeWm9UoMYOd" %}
[Verify user](/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/use-feathers-mongoose-casl-authentication.md)
{% endcontent-ref %}

#### That's it <br>
