Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add migration documentation to 2.1.x version #1087

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
<h1>Migration Guide</h1>

- [From version 2.0.x to 2.1.0](#from-version-20x-to-210)
- [From version 1.x to 2.0.x](#from-version-1x-to-20x)
- [Date Input](#date-input)
- [All](#package-react-toolkit-all)

# From version 2.0.x to 2.1.0

## Toolkit-core

Some functions have been deleted or moved from the toolkit-core. It is for example the case of the ClassManager utils that could be used like that in 2.0.x

```javascript
import { ClassManager } from '@axa-fr/react-toolkit-core';

className={ClassManager.getComponentClassName(...)}
```

In 2.1.x the ClassManager doesn't exist anymore and you can target the functions directly.

```javascript
import { getComponentClassName } from '@axa-fr/react-toolkit-core';

className={getComponentClassName(...)}
```

# From version 1.x to 2.0.x

## Date Input
Expand Down