Skip to content

replace ms, p-map, p-retry, p-queue, escape-string-regexp with typed alternatives#484

Closed
ofershap wants to merge 1 commit intoforwardemail:masterfrom
ofershap:replace-sindresorhus-deps
Closed

replace ms, p-map, p-retry, p-queue, escape-string-regexp with typed alternatives#484
ofershap wants to merge 1 commit intoforwardemail:masterfrom
ofershap:replace-sindresorhus-deps

Conversation

@ofershap
Copy link
Copy Markdown

@ofershap ofershap commented Mar 14, 2026

Swaps five dependencies for smaller typed alternatives with the same API. All ship ESM + CJS with built-in TypeScript types, zero deps each.

old new gzipped
ms ms-tiny 833 B
p-map tiny-pmap ~400 B
p-retry tiny-pretry ~400 B
p-queue tiny-pqueue ~400 B
escape-string-regexp tiny-escape 192 B

Only behavioral change: ms-tiny throws on invalid input instead of returning undefined. Added try-catch where needed.

@titanism titanism closed this Mar 31, 2026
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.

2 participants