7.15.3
mantinedev/mantine7.15.3Jan 7, 2025by rtivital
AI Summary
A maintenance release focusing on React 19 compatibility, date handling precision, and various styling/behavior fixes across core and hooks packages.
Key Highlights
- Updated peer dependencies to support React 19
- Added `flush` method to `use-debounced-callback` hook
- Fixed `use-merged-ref` to support React 19 cleanup functions
- Set milliseconds to 0 in DateTimePicker result date objects
- Improved TypographyStylesProvider margins for first and last elements
New Features
- flush method in use-debounced-callback
Full Release Notes
## What's Changed - `[@mantine/charts]` BarChart: Fix `textColor` prop being passed down as attribute to the DOM node - `[@mantine/core]` TypographyStylesProvider: Fix incorrect top and bottom margins of first and last elements (#7334) - `[@mantine/core]` Transition: Fix some transitions being incompatible with headless mode (#7306) - `[@mantine/dates]` DateTimePicker: Set milliseconds to 0 on the result date object (#7328) - `[@mantine/dates]` Fix `hasNextLevel` prop type leak to DateTimePicker component (#7319) - `[@mantine/core]` Avatar: Change initials function to use the full name to generate color (#7322) - `[@mantine/hooks]` use-merged-ref: Add support for ref cleanup function in React 19 (#7304) - `[@mantine/hooks]` use-debounced-callback: Add `flush` method to returned callback (#7272) - `[@mantine/dates]` Improve compatibility with dayjs plugins in all components (#7302) - `[@mantine/core]` Update peer dependencies to support React 19 (#7321) ## New Contributors * @baravak made their first contribution in https://github.com/mantinedev/mantine/pull/7302 * @scamden made their first contribution in https://github.com/mantinedev/mantine/pull/7272 * @YukiKoNeko made their first contribution in https://github.com/mantinedev/mantine/pull/7322 * @yuki0410-dev made their first contribution in https://github.com/mantinedev/mantine/pull/7319 * @zoubingwu made their first contribution in https://github.com/mantinedev/mantine/pull/7323 * @clarknova made their first contribution in https://github.com/mantinedev/mantine/pull/7328 **Full Changelog**: https://github.com/mantinedev/mantine/compare/7.15.2...7.15.3