Skip to content

Commit 5df9c38

Browse files
committed
chore: update version to 0.4.1 and document performance improvements in CHANGELOG
1 parent 684c10d commit 5df9c38

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.1] - 2025-09-03
11+
12+
### Performance
13+
14+
- **hashString**: Replaced weak hash algorithm with FNV-1a implementation for better distribution
15+
- **levenshtein**: Added prefix/suffix trimming optimization to reduce computation
16+
- **deburr**: Consolidated 14+ regex operations into single pre-compiled pattern
17+
- **fuzzyMatch**: Added progressive threshold checking and short-circuit evaluation
18+
- **toASCII**: Replaced 155+ regex operations with single-pass Map lookup (O(n\*m) to O(n))
19+
- **normalizeWhitespace**: Pre-compiled patterns and single-pass regex for common cases
20+
- **removeNonPrintable**: Replaced 4 regex passes with single-pass range comparisons
21+
22+
### Changed
23+
24+
- Bundle size remains under 6KB (5.13 kB ESM / 5.48 kB CJS)
25+
- All optimizations maintain backward compatibility
26+
1027
## [0.4.0] - 2025-09-03
1128

1229
### Added
@@ -98,6 +115,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
98115
- 100% test coverage for utility functions
99116
- Modern build tooling with tsup and Vitest
100117

118+
[0.4.1]: https://github.com/Zheruel/nano-string-utils/releases/tag/v0.4.1
101119
[0.4.0]: https://github.com/Zheruel/nano-string-utils/releases/tag/v0.4.0
102120
[0.3.0]: https://github.com/Zheruel/nano-string-utils/releases/tag/v0.3.0
103121
[0.2.0]: https://github.com/Zheruel/nano-string-utils/releases/tag/v0.2.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nano-string-utils",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Ultra-lightweight string utilities with zero dependencies",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)