Skip to content

chore: deprecate under-used animation helpers#30

Merged
jonlaing merged 1 commit into
mainfrom
chore/deprecate-animation-helpers
Jul 2, 2026
Merged

chore: deprecate under-used animation helpers#30
jonlaing merged 1 commit into
mainfrom
chore/deprecate-animation-helpers

Conversation

@jonlaing

@jonlaing jonlaing commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

Marks five exports from @effex/dom/Animation with @deprecated JSDoc tags:

Deprecated Migration
staggerEased(totalMs, easeFn) (index, total) => easeFn(index / (total - 1)) * totalMs
delay(ms, effect) Effect.delay(effect, ms)
sequence(...effects) Effect.all([...], { concurrency: 1 })
parallel(...effects) Effect.all([...], { concurrency: "unbounded" })
calculateStaggerDelay (internal helper — never used outside its own tests)

None of these earn their own name in the public API: delay, sequence, parallel are one-line renames of Effect combinators, staggerEased is a two-line composition, and calculateStaggerDelay was only ever consumed by its own test file. Keeping the framework a thin layer over Effect makes the surface easier to learn and reduces "which one do I use" cognitive load.

Nothing is removed — callers just get an editor warning and a migration hint in the JSDoc. Removal will happen in the next major.

Test plan

  • pnpm exec tsc --noEmit (dom package) — clean
  • pnpm exec vitest run packages/dom/src/Animation — 21/21 pass

Closes #26

🤖 Generated with Claude Code

Marks five exports with @deprecated JSDoc tags — staggerEased, delay, sequence, parallel, calculateStaggerDelay. All are thin wrappers over Effect combinators that don't earn their own name in the API surface. Nothing is removed; callers get an editor warning and a migration hint in the JSDoc.

Closes #26

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploying effex-api with  Cloudflare Pages  Cloudflare Pages

Latest commit: 12654be
Status: ✅  Deploy successful!
Preview URL: https://0ee94133.effex-api.pages.dev
Branch Preview URL: https://chore-deprecate-animation-he.effex-api.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying effex with  Cloudflare Pages  Cloudflare Pages

Latest commit: 12654be
Status: ✅  Deploy successful!
Preview URL: https://10bed756.effex.pages.dev
Branch Preview URL: https://chore-deprecate-animation-he.effex.pages.dev

View logs

@jonlaing jonlaing merged commit 65b29c1 into main Jul 2, 2026
4 checks passed
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.

Deprecate extraneous animation helpers (delay, sequence, parallel, staggerEased)

1 participant