Skip to content

Commit

Permalink
Update react-dates to 21.8.0 (#40801)
Browse files Browse the repository at this point in the history
* Update react-dates to 21.8.0

* Add changelog entry
  • Loading branch information
noisysocks committed May 5, 2022
1 parent 1721253 commit f16e8ba
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 68 deletions.
111 changes: 46 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- `UnitControl`: migrate unit tests to TypeScript ([#40697](https://github.com/WordPress/gutenberg/pull/40697)).
- `DatePicker`: Add improved unit tests ([#40754](https://github.com/WordPress/gutenberg/pull/40754)).
- `DatePicker`: Update `react-dates` to 21.8.0 ([#40801](https://github.com/WordPress/gutenberg/pull/40801)).

### Enhancements

Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"moment": "^2.22.1",
"re-resizable": "^6.4.0",
"react-colorful": "^5.3.1",
"react-dates": "^17.1.1",
"react-dates": "^21.8.0",
"react-resize-aware": "^3.1.0",
"reakit": "^1.3.8",
"uuid": "^8.3.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/components/src/date-time/test/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ describe( 'DatePicker', () => {
screen.getByRole( 'button', { name: 'Monday, May 2, 2022' } )
).toHaveClass( 'CalendarDay__selected' );

// Expect React deprecation warning due to outdated 'react-dates' package.
// TODO: Update 'react-dates'.
// Expect React deprecation warning due to 'react-dates' using outdated
// React lifecycle methods.
// https://github.com/react-dates/react-dates/issues/1748
expect( console ).toHaveWarned();
} );

Expand Down

0 comments on commit f16e8ba

Please sign in to comment.