Skip to content

chore: upgrade short-unique-id to v5 - #30

Merged
kahlstrm merged 1 commit into
mainfrom
chore/short-unique-id-5
Aug 2, 2026
Merged

kahlstrm merged 1 commit into
mainfrom
chore/short-unique-id-5

Conversation

@kahlstrm

@kahlstrm kahlstrm commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

short-unique-id 4.4.4 -> 5.3.2. No code change needed — new ShortUniqueId({ length }).randomUUID() in lib/links.ts works unchanged.

This one was worth doing first because it is the only remaining major with real test coverage behind it: lib/links.test.mts exercises shorthand generation, collision retry, and the bounded give-up path.

Testing

  • pnpm test:unit — 15 passed
  • pnpm test:e2e — 9 passed
  • pnpm lint / pnpm format:check — clean
  • pnpm build — compiles

The unit tests inject a fake generator for the collision cases, so I also checked the real generator directly: lengths honoured (4, 4, 6), URL-safe characters only, distinct values.

@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next-shortener Ready Ready Preview Aug 2, 2026 6:47pm

@kahlstrm
kahlstrm force-pushed the chore/short-unique-id-5 branch from ac187a1 to d2f90ef Compare August 2, 2026 18:45
@kahlstrm
kahlstrm merged commit a2d0d7d into main Aug 2, 2026
4 checks passed
@kahlstrm
kahlstrm deleted the chore/short-unique-id-5 branch August 2, 2026 18:51

This branch was successfully deployed

1 active deployment
Preview — d2f90ef2 Deployed Aug 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant