diff --git a/website/docs/upgrading.mdx b/website/docs/upgrading.mdx index c8aa835c36..4c4e04f3c8 100644 --- a/website/docs/upgrading.mdx +++ b/website/docs/upgrading.mdx @@ -8,66 +8,123 @@ sidebar_position: 5 This major version introduce some important breaking changes. See the [changelog](./changelog.mdx) for the full list of changes. -:::warning +:::warning Work In Progress -This document is still a work in progress. Please help us complete this guide by [opening an issue](https://github.com/gpbl/react-day-picker/discussions/categories/daypicker-v9). +Please help us complete this guide by [opening an issue](https://github.com/gpbl/react-day-picker/discussions/categories/daypicker-v9). ::: -### Checklist - Follow these steps to upgrade your project from v8 to v9: -#### 1. Upgrade to the next version +### 1. Upgrade to the next version ```bash npm2yarn npm install react-day-picker@next date-fns ``` -#### 2. Update test selectors +### 2. Check for removed props + +The following props have been removed. Check in your code if you are using them. + +| Removed prop | Notes | +| ------------ | -------------------------------------------------------------------------------------------- | +| ~`fromDate`~ | Replace it with the `hidden` prop and the `before` [Matcher](./api/type-aliases/Matcher.md). | +| ~`toDate`~ | Replace it with the `hidden` prop and the `after` [Matcher](./api/type-aliases/Matcher.md). | + +```diff +- ++