Releases: Amitind/util
Releases · Amitind/util
v1.2.0 — 9 New Utilities, Tests & Bug Fixes
New Functions (9)
slugify(text)— URL-safe slug generationtruncate(str, length)— String truncation with ellipsissleep(ms)— Async delay helperchunk(array, size)— Array chunkingformatNumber(num)— Number formatting (1.5K, 2M, 3.5B)debounce(fn, delay)— Function debouncing with cancel/flushcapitalize(str)— First letter capitalizationisEmpty(value)— Empty value detection (null, undefined, empty string, empty array, empty object, Map, Set)deepClone(obj)— Deep object cloning
Bug Fixes
shuffleArray()— Uses Fisher-Yates algorithm, no longer mutates original arrayuniqueArrayitemsrenamed touniqueArrayItems(old name kept as deprecated alias)randomString()— Security warning added (not for tokens/passwords)
Tests
- 25 Vitest tests covering all 16 functions
- Full TypeScript build passes
1.2.0
What's Changed
- Bump nanoid from 3.3.7 to 3.3.8 by @dependabot[bot] in #3
- Bump cross-spawn from 7.0.3 to 7.0.6 by @dependabot[bot] in #4
- Bump vite from 5.4.8 to 5.4.12 by @dependabot[bot] in #5
- v1.2.0 — 9 new utilities, tests, bug fixes by @Amitind in #8
- chore: update vite to fix security alerts by @Amitind in #9
Full Changelog: 1.1.2...1.2.0
1.1.2
Full Changelog: 1.1.1...1.1.2
1.1.1
1.0.0
Full Changelog: 0.1.2...1.0.0
- Types are added