Skip to content

Releases: Hacker0x01/react-datepicker

🎄 React Datepicker v9.0.0 - Holiday Release 🎁

08 Dec 12:09

Choose a tag to compare

🌟 Major New Features

🌍 Timezone Support (Finally!)

The most requested feature is here! Add the timeZone prop to display and handle dates in any timezone. Works with date-fns-tz as an optional peer dependency. <DatePicker timeZone="America/New_York" />

⏰ Time Selection with Date Ranges

showTimeSelect and showTimeInput now work beautifully with selectsRange! Select time for both start and end dates independently. 🎉

🎁 New Props Under the Tree

  • 🎯 popperTargetRef - Custom popper positioning for advanced layouts
  • 📍 monthHeaderPosition - Control month header placement (top, middle, bottom)
  • 🗓️ renderCustomDayName - Customize weekday header rendering
  • 📝 formatMultipleDates - Custom formatting for multi-select dates
  • aria-label - Better accessibility support

🔧 Bug Fixes & Improvements

  • 🎯 Navigate calendar view when typing partial dates
  • 📅 Calendar view updates when selected/startDate props change programmatically
  • 🕐 Fixed infinite height growth in time picker
  • 🗓️ Fixed month view jump when selecting from second calendar in range mode
  • ✍️ Allow typing dates before 1800 when minDate permits
  • 🌐 Parse holiday date strings as local time (no more timezone shifts!)
  • 📐 Use em units internally - easily inherit font size from parent!
  • 🎨 Fixed in-selecting-range highlight for days outside current month
  • 🔗 Hiding popper arrow now properly removes offset
  • 🔄 Fixed preSelection updates for selectsRange input changes
  • 📊 Improved source maps (no more Webpack warnings!)
  • 🏷️ Better TypeScript discriminated union type inference

🛠️ Under the Hood

  • 🚀 Node 24.x LTS - Upgraded CI to latest LTS
  • 📦 Updated dependencies across the board
  • 🧪 Significantly improved test coverage
  • 📚 New timezone documentation

💫 Happy Holidays!

Thank you to all contributors who made this release possible! May your dates always be in the right timezone! 🎅🎄


What's Changed

New Contributors

Full Changelog: v8.10.0...v9.0.0

8.10.0

26 Nov 11:34

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.9.0...v8.10.0

8.9.0

10 Nov 20:03

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.8.0...v8.9.0

8.8.0

16 Oct 07:56

Choose a tag to compare

What's Changed

Major overhaul to the Docs site with new Typscript examples

  • ✨ docs-site(ts): Migrate examples to TypeScript, add live transpilation to JavaScript + Copy code feature by @balajis-qb in #5865
  • docs: add typescript examples by @SergeyKazarinov in #5605
  • Fix loading indicator flicker when switching TypeScript/JavaScript tabs in docs-site by @balajis-qb in #5894
  • (docs-site) 🐛 Fix the cursor position auto-reset while typing in progress by @balajis-qb in #5922
  • 🐛 Configure esbuild-wasm initialize to use installed package version by @balajis-qb in #5893

Other changes

  • fix: Center align day names in DatePicker for improved layout by @ilchenkoArtem in #5836
  • ✨ Add selectionMeta param to the onChangeRaw event call - to give additional details about the selected date by @balajis-qb in #5858
  • ✨ feat(datepicker): add full disabled state support across all picker modes by @balajis-qb in #5890
  • chore: fix typos in test by @noritaka1166 in #5864

New Contributors

Full Changelog: v8.7.0...v8.8.0

8.7.0

20 Aug 08:32

Choose a tag to compare

What's Changed

  • Add jest-axe Accessibility Testing and Fix ARIA Structure Issues by @martijnrusschen in #5808
  • ♿ Add scoped .react-datepicker__sr-only utility class for accessibility by @balajis-qb in #5813

Full Changelog: v8.6.0...v8.7.0

8.6.0

19 Aug 11:07

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.5.0...v8.6.0

8.5.0

15 Aug 15:01

Choose a tag to compare

What's Changed

  • ✏️ Renamed the startDate variable in the example code to the selectedDate to improve clarity and better reflect it's purpose by @balajis-qb in #5501
  • fix: correct usage of customHeaderCount to keep arrows on any monthsShown prop by @johannrp27 in #5618
  • fix(calendar): Change type on YearButtonLabel to be the type ReactNode. by @KeeganW in #5659
  • 🐛 Enable --keyboard-selected class to the YearPicker irrespective of the availability of selected prop by @balajis-qb in #5670
  • 🐛 Reset inputValue back to null on blur of input (even when the calendar popup is not open) by @balajis-qb in #5703
  • ✨ Add a support for visibleYearsRange in the renderCustomHeader of the YearPicker by @balajis-qb in #5687
  • fix preview: custom header with two months displayed by @navedqb in #5686
  • feat: expose outsideClickIgnoreClass by @meriouma in #5645
  • ♿️ Improve calendar header accessibility by adding screen reader text for week numbers by @balajis-qb in #5731
  • Include src files in package to resolve source map warnings by @John-Youngblood in #5710
  • Create security.yml by @martijnrusschen in #5764
  • feat: ✨ Add customizable range separator for date range selection in DatePicker by @balajis-qb in #5737
  • feat: adding named exports for react datepicker by @skitscha in #5749
  • ♻️ Refactor the input value get logic by @balajis-qb in #5743
  • Week classname support by @marcelltoth in #5745
  • 🐛 Refactor DatePicker component to handle null startDate date range selection properly by @balajis-qb in #5782

New Contributors

Full Changelog: v8.4.0...v8.5.0

8.4.0

25 May 12:22

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.3.0...v8.4.0

8.3.0

09 Apr 08:26

Choose a tag to compare

What's Changed

  • 🐛🎨 Apply the --selected class for the YearPicker when the selectsMultiple is enabled by @balajis-qb in #5524
  • Fix #5502: 🐛 Fix '--in-selecting-range' class apply condition for End Date Picker by @balajis-qb in #5503
  • 🎨🔨 Re-adjust the height of TimePicker on Calendar resize due to number of days by @balajis-qb in #5539

Full Changelog: v8.2.1...v8.3.0

8.2.1

13 Mar 19:38

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.2.0...v8.2.1