Skip to content

Tags: Zheruel/nano-string-utils

Tags

v0.28.0

Toggle v0.28.0's commit message
Release v0.28.0 - Add trim, trimStart, trimEnd, mask, and wrap functions 

v0.27.0

Toggle v0.27.0's commit message
Release v0.27.0 - Node.js 20+ requirement, dependency updates 

v0.26.0

Toggle v0.26.0's commit message
Release v0.26.0 - Add isBlank, unescapeHtml, and countSubstrings func… …tions

v0.25.0

Toggle v0.25.0's commit message
Release v0.25.0 - Enhanced Email Validation with Apostrophe and Inter… …national Character Support

v0.24.0

Toggle v0.24.0's commit message
Release v0.24.0 - Add isInteger function and enhance validation consi… …stency

v0.23.0

Toggle v0.23.0's commit message
Release v0.23.0 - Add isNumeric, isAlphanumeric, and isUUID validatio… …n functions

v0.22.0

Toggle v0.22.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add Grapheme-Aware Unicode Support to `reverse()` and `truncate()` (#47) * Update bundle sizes and performance benchmarks; enhance Unicode handling in string functions - Updated bundle sizes in `bundle-sizes.json` with new gzip values and generated timestamp. - Revised performance benchmarks in `performance-benchmarks.json`, reflecting updated ops per second and winners for various functions. - Adjusted metadata for `truncate` and `reverse` functions in `metadata.ts` to reflect new sizes and added examples for Unicode handling. - Improved `reverse` function in `reverse.ts` to handle complex Unicode characters, including emojis and diacritics. - Enhanced `truncate` function in `truncate.ts` for better handling of grapheme clusters, ensuring emoji and diacritics are preserved during truncation. - Added comprehensive tests for Unicode handling in both `reverse` and `truncate` functions, covering various edge cases and complex scenarios. * Release version 0.22.0; enhance Unicode support in `reverse()` and `truncate()`, improve performance, and add comprehensive test coverage

v0.21.0

Toggle v0.21.0's commit message
Release v0.21.0 - Add isHexColor validation function with branded typ… …e support

v0.20.0

Toggle v0.20.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Various Improvements - v0.20.0 (#43) * chore: bump version to 0.20.0 and update package metadata feat: enhance documentation with examples for string utility functions - Added detailed examples for `capitalize`, `codePoints`, `deburr`, `detectScript`, `escapeHtml`, `fuzzyMatch`, `graphemes`, `hashString`, `pad`, `padEnd`, `padStart`, `pluralize`, `randomString`, `reverse`, `singularize`, `smartSplit`, `stripHtml`, `toASCII`, and `wordCount`. feat: introduce SafeHTML type and sanitization functions - Added `SafeHTML` branded type for sanitized HTML. - Implemented `toSafeHTML` for sanitizing strings into SafeHTML. - Added `unsafeSafeHTML` for casting strings to SafeHTML without sanitization. fix: update size limits in package.json for better performance - Adjusted size limits for `dist/index.js` and `dist/index.cjs`. test: add unit tests for new SafeHTML functionality - Created tests for `toSafeHTML` and `unsafeSafeHTML` to ensure proper sanitization and type safety. * update package json

v0.19.1

Toggle v0.19.1's commit message
update keywords and description