Skip to content

feat: add getthumbslinks client method#16

Merged
Belco90 merged 1 commit into
mainfrom
feat/getthumbslinks
May 1, 2026
Merged

feat: add getthumbslinks client method#16
Belco90 merged 1 commit into
mainfrom
feat/getthumbslinks

Conversation

@Belco90
Copy link
Copy Markdown
Owner

@Belco90 Belco90 commented May 1, 2026

Summary

  • Adds client.getthumbslinks(fileids, options?) — the JSON batch counterpart to getthumblink. Accepts an array of fileids and returns ThumbResult[] of assembled thumbnail URLs in a single round-trip.
  • Reuses the existing ThumbOptions and ThumbResult types; defaults match getthumblink (type='auto', size='120x120', crop=true).
  • Per-file failures (non-zero per-file result, or empty hosts) are silently dropped — mirrors how getthumbsfileids treats failed entries.

Test plan

  • pnpm type-check — strict TS passes
  • pnpm test:unit — all 67 unit tests pass (6 new for getthumbslinks)
  • pnpm format:check — formatting clean
  • pnpm lint — no lint errors on changed files
  • pnpm builddist/index.d.ts exposes the new getthumbslinks(fileids, options?) signature

Adds the JSON batch counterpart to getthumblink — accepts a list of
fileids and returns a ThumbResult[] of assembled thumbnail URLs.
Per-file failures (non-zero per-file result, or empty hosts) are
silently dropped, mirroring getthumbsfileids' behavior.
@Belco90 Belco90 merged commit 338f03f into main May 1, 2026
9 checks passed
@Belco90 Belco90 deleted the feat/getthumbslinks branch May 1, 2026 22:30
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