diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index a669a2253..69cc773f3 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -18,12 +18,6 @@ on: type: boolean jobs: - # print-env: - # runs-on: ubuntu-latest - # steps: - # - run: | - # echo "publish=${{ github.event.inputs.publish || false }}" - typecheck: runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c10013bf..696de0725 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,6 @@ This release includes important updates related to accessibility, styles and per We tried to keep breaking changes to a minimum, but were inevitable to improve the library. Here are the most important changes: -- Requires React 18+. - The updated HTML output could break your unit tests. - Custom styles will likely not work. - Some ARIA labels have been changed. diff --git a/package.json b/package.json index 805ee74a7..0afe6227e 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,7 @@ "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.15.0", "@typescript-eslint/parser": "^7.16.0", + "date-fns": "^3.6.0", "date-fns-jalali": "3.6.0-1", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", @@ -172,7 +173,7 @@ "typescript-css-modules": "^1.0.4" }, "peerDependencies": { - "react": "^18 || ^19" + "react": ">=16.8.0" }, "funding": { "type": "individual", diff --git a/website/docs/intro.mdx b/website/docs/intro.mdx index a057a6262..609c95bfd 100644 --- a/website/docs/intro.mdx +++ b/website/docs/intro.mdx @@ -5,7 +5,7 @@ sidebar_position: 1 slug: / --- -# DayPicker +# React DayPicker DayPicker is a [React](https://react.dev) component to create date pickers, calendars, and date inputs for web applications. @@ -37,6 +37,10 @@ function MyDatePicker() { +## Compatibility + +DayPicker is compatible with React 16.8 and later. + ## License DayPicker is released under the [MIT License](./license).