Skip to content

Latest commit

 

History

History
115 lines (44 loc) · 4.9 KB

CHANGELOG.md

File metadata and controls

115 lines (44 loc) · 4.9 KB

0.4.3 (2024-10-22)

Bug Fixes

  • Truncate:: include letter-spacing for more accurate measurements on Truncate (16c5a3b)

0.4.2 (2024-08-18)

Bug Fixes

  • fix: removes dependency on react and react-dom (0918b4a)

0.4.1 (2024-04-23)

Bug Fixes

  • Truncate: fix the calculation result deviation problem of middle truncate (f1625ac)

0.4.0 (2024-04-21)

Bug Fixes

  • MiddleTruncate: ignore omit's props when passed in rests (3ed2714)
  • ShowMore: ignore omit's props when passed in rests (ec62636)
  • Truncate: fixed a calculation error where end is 0 when middle mode is enabled (84f8424)

Features

  • ShowMore: add custom buttons support and toggle state change callback (71bcb94)
  • Truncate: add safe and positive integer check for the lines prop value (9f84142)
  • Truncate: update comments for types (bf1c365)

0.3.2 (2024-01-20)

Bug Fixes

  • Truncate: when the middle option is enabled, the wrong end fragment is obtained (0f7d2cf)

0.3.1 (2024-01-20)

Bug Fixes

  • MiddleTruncate: omit the prop and set its default value be true (258b46e)

0.3.0 (2024-01-20)

Features

  • MiddleTruncate: add a component for truncating string from middle (90fbe81)
  • ShowMore: adjust props with MiddleTruncate (7fbb866)
  • ShowMore: adjust props with Truncate (253892d)
  • Truncate: supports truncating a string at a specified position in the middle and generating an ellipsis symbol at that position (7dec6b4)

0.2.0 (2023-11-27)

Features

  • Truncate: add custom separator to support multiple languages (7b47463), closes #16

0.1.2 (2023-11-26)

Bug Fixes

  • ShowMore: remove redundant width constraints to accommodate parent width changes (01396b1), closes #14

0.1.1 (2023-11-25)

Bug Fixes

  • ShowMore: add window resize listener to update content width (4b3029b), closes #12

0.1.0 (2023-11-13)

Features

  • ShowMore: add default width via parent element (51c06e3)

Refactor

  • Refactor using TypeScript and Functional Components (5ea60d9)