Skip to content

Latest commit

History

History
178 lines (93 loc) 路 4.66 KB

CHANGELOG.md

File metadata and controls

178 lines (93 loc) 路 4.66 KB

馃摐 Change Log for react-slot-counter

All notable changes to this project will be documented in this file.

[2.3.2] - 2024-05-17

Fixed

  • Fixed a bug in sequentialAnimationMode where the first digit was being displayed as a blank space when the number of digits increased and the number decreased. This fix ensures that the correct number is displayed in all situations.

[2.3.1] - 2024-04-27

Fixed

  • Fixed an issue where the font width was incorrectly calculated when using useMonospaceWidth.

[2.3.0] - 2024-04-26

Added

  • Introduced numberSlotClassName and numberClassName props for more customization options. These props allow you to set the class name for the number slot and the number, respectively, enabling you to customize their styling.
  • Implemented the ResizeObserver API to detect changes in font size. This enhancement provides a better experience in responsive services by ensuring that the counter adapts to changes in font size.

[2.2.5] - 2024-01-09

Fixed

  • Fixed an error caused by inaccurate font height calculation.

[2.2.4] - 2024-01-05

Fixed

  • Refined font height calculation logic for more accurate and visually pleasing displays.

[2.2.3] - 2023-12-25

Fixed

  • Fixed a bug in sequentialAnimationMode for handling decimal numbers. In this update, I addressed an issue where decimal numbers were not processed correctly in sequentialAnimationMode.

[2.2.1] - 2023-12-11

Fixed

  • Adjusted text alignment for counters to ensure consistent and visually appealing presentation across different usage scenarios.

[2.2.0] - 2023-12-10

Added

  • Introduced animateOnVisible prop to trigger animations based on component visibility. This feature allows animations to start when the component is visible in the viewport, enhancing user engagement and interactivity. The animateOnVisible prop can be a boolean or an object with rootMargin and triggerOnce options for more precise control.

[2.1.1] - 2023-11-19

Fixed

  • Corrected an issue where number change animations in sequentialAnimationMode were not functioning properly.

[2.1.0] - 2023-11-11

Fixed

  • Resolved an issue where the startValueOnce prop was not functioning as expected.

Improvements

  • Enhanced the digit increase animation in sequentialAnimationMode for a smoother user experience.

[2.0.3] - 2023-11-05

Fixed

  • Resolved autoAnimationStart not working when startValue is set.
  • Ensured startValue: 0 is properly recognized and handled.
  • Refined the calculation logic for number interpolation in sequential mode.

[2.0.2] - 2023-10-31

Fixed

  • Fixed the issue with measuring monospace width when using valueClassName.

[2.0.1] - 2023-10-29

Fixed

  • Improved the unstable behavior of the useMonospaceWidth prop. Enhanced the width calculation logic and fixed issues related to web font download timing.
  • Fixed an issue where the combination of sequentialAnimationMode: true and autoAnimationStart: false was not working as expected.
  • Modified the initial animation behavior in sequentialAnimationMode.

[2.0.0] - 2023-10-22

Fixed

  • Fix autoAnimationStart not working when using startValue.
  • Define behavior and fix multiple bugs for autoAnimationStart, startValue, and sequentialAnimationMode.

[1.15.0] - 2023-10-05

Added

  • Improved the animation in sequentialAnimationMode.

Fixed

  • Fixed a bug where numbers were duplicated in sequentialAnimationMode.

[1.14.0] - 2023-09-28

Added

  • Added refreshStyles ref method to recalculate styles for scenarios where the font size changes or the window is resized.

[1.13.1] - 2023-09-08

Fixed

  • Fixed direction 'top-down' behavior when both startValue and value are set.

[1.13.0] - 2023-09-06

Added

  • Integrated Terser plugin into Rollup configuration for code minification and optimization.

[1.12.0] - 2023-09-03

Fixed

  • StartValueOnce behavior issue in React Strict Mode.

Changed

  • Improve example code on ref example.
  • Improve FOUC issue in SSR environment.

[1.11.0] - 2023-07-06

Added

  • debounceDelay feature for debouncing animations.

[1.10.0] - 2023-07-01

Added

  • startValueOnce feature for one-time animation start from startValue.

[1.9.0] - 2023-07-01

Added

  • sequentialAnimationMode and useMonospaceWidth features.

[1.8.0] - 2023-06-14

Added

  • Support for JSX.Element in value and startValue props.

[1.7.0] - 2023-06-10

Added

  • startValue feature for initial animation start.

[1.4.3] - 2023-04-25

Added

  • valueClassName customization.

[1.4.2] - 2023-04-25

Added

  • Infinite List Appearance feature.