Skip to content

Commit c12b4b1

Browse files
chore(release): bump new version (#76)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2ea7e8e commit c12b4b1

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

.changeset/gold-guests-attack.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# vn-number
22

3+
## 2.0.3
4+
5+
### Patch Changes
6+
7+
- 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.
8+
9+
### Refactoring and Code Simplification
10+
11+
- Replaced multi-line if statements with concise ternary expressions in `readFirstGroup` and `readSubsequentGroup` to improve readability in `src/read/three-digits.ts`.
12+
- Simplified the `getDigitWord` function by removing the intermediate variable and returning the mapped value directly in `src/read/digits.ts`.
13+
14+
### Consistent Parameter Handling
15+
16+
- 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]](diffhunk://#diff-3fec7bfdd409e9017a9411ada902007e8e4e09dfe468f1566e38e002a7b0a521L6-R7) [[2]](diffhunk://#diff-3fec7bfdd409e9017a9411ada902007e8e4e09dfe468f1566e38e002a7b0a521L56-R65)
17+
18+
### Minor Code Quality Improvements
19+
20+
- 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]](diffhunk://#diff-3f1a9cf533aed941787f7a40ca3900d359c1da32f1bc1536d2380c3b4968dbb4R26-R31) [[2]](diffhunk://#diff-8c09ad2ec1c3b0524c8cdbfe07826bfc856285b756983a817f609404a880821aR14-R20)
21+
22+
### Dependency Updates
23+
24+
- Updated development dependencies in `package.json`, including `@biomejs/biome`, `syncpack`, and `tsdown` to their latest versions.
25+
326
## 2.0.2
427

528
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vn-number",
33
"description": "A bunch of utility functions that work with number in Vietnamese language",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"author": {
66
"name": "Khánh Hoàng",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)