Skip to content

Conversation

kvjoshi
Copy link

@kvjoshi kvjoshi commented Aug 20, 2025

This pull request updates the react-7-segment-display package with improvements to its fallback logic, display behavior, and project metadata. The most notable change is the switch of the default fallback character from - to 0, which affects how invalid or missing characters are rendered. Additionally, the visual appearance of inactive segments has been adjusted, and repository metadata has been updated to reflect a new maintainer.

Display logic improvements:

  • Changed the default fallback character from - to 0 in Digit.tsx, so when an invalid or missing character is provided, the display will now show a zero instead of a dash. Added a warning log if the fallback is used, and improved error handling for invalid segment data. [1] [2]

Visual appearance adjustments:

  • Updated the inactive segment style in Segment.tsx to use lower opacity and reduced grayscale, making inactive segments less prominent.

Project metadata updates:

  • Updated the repository, bugs, and homepage URLs in package.json to point to the new maintainer (kvjoshi). [1] [2]
  • Bumped the package version from 1.1.5 to 1.1.6 in package.json.
  • Fixed a minor typo in the build script by removing an unnecessary space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants