Skip to content

Choose a tag to compare

@github-actions github-actions released this 12 Nov 09:37
· 2 commits to main since this release
c12b4b1

Patch Changes

  • 2ea7e8e: Refactors several functions related to reading and processing digit groups in Vietnamese number words, focusing on code readability, logic simplification, and consistent parameter handling. Minor formatting and code quality improvements are also included, along with updates to development dependencies.

    Refactoring and Code Simplification

    • Replaced multi-line if statements with concise ternary expressions in readFirstGroup and readSubsequentGroup to improve readability in src/read/three-digits.ts.
    • Simplified the getDigitWord function by removing the intermediate variable and returning the mapped value directly in src/read/digits.ts.

    Consistent Parameter Handling

    • Updated readHundreds to use groupLength instead of a boolean flag, and made related changes in calls to readHundreds, readTens, and readOnes for more predictable behavior in src/read/three-digits.ts. [1] [2]

    Minor Code Quality Improvements

    • Added spacing and minor formatting for readability in utility functions such as allFollowingGroupsAreZero in src/read/utils.ts and calculateGroupTypes in src/read/groups.ts. [1] [2]

    Dependency Updates

    • Updated development dependencies in package.json, including @biomejs/biome, syncpack, and tsdown to their latest versions.