# 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="start-new-project-1/update-app.hook" %}
[update-app.hook](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/update-app.hook)
{% endcontent-ref %}

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

{% content-ref url="start-new-project-1/update-posts-model" %}
[update-posts-model](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/update-posts-model)
{% endcontent-ref %}

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

{% content-ref url="start-new-project-1/use-feathers-mongoose-casl-authentication" %}
[use-feathers-mongoose-casl-authentication](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/version-2-support-feathers-4/docs/start-new-project-1/use-feathers-mongoose-casl-authentication)
{% endcontent-ref %}

#### That's it <br>
