> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/version-2-support-feathers-4/docs/migrating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
