Skip to content

Releases: Amitind/util

v1.2.0 — 9 New Utilities, Tests & Bug Fixes

29 Mar 14:33
428faa4

Choose a tag to compare

New Functions (9)

  • slugify(text) — URL-safe slug generation
  • truncate(str, length) — String truncation with ellipsis
  • sleep(ms) — Async delay helper
  • chunk(array, size) — Array chunking
  • formatNumber(num) — Number formatting (1.5K, 2M, 3.5B)
  • debounce(fn, delay) — Function debouncing with cancel/flush
  • capitalize(str) — First letter capitalization
  • isEmpty(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 array
  • uniqueArrayitems renamed to uniqueArrayItems (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

29 Mar 14:34
428faa4

Choose a tag to compare

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

30 Oct 06:20

Choose a tag to compare

Full Changelog: 1.1.1...1.1.2

1.1.1

30 Oct 05:54
13c0ecf

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...1.1.1

1.0.0

13 Oct 09:26

Choose a tag to compare

Full Changelog: 0.1.2...1.0.0

  • Types are added

v0.1.2

10 Apr 14:16

Choose a tag to compare

v0.1.2

0.1.1

27 Mar 13:44

Choose a tag to compare

v0.1.1

fixed issue

0.1.0

26 Mar 18:07

Choose a tag to compare

v0.1.0

useful functions

0.0.7

23 Mar 12:25
dde83f4

Choose a tag to compare

Update npm-publish.yml