Skip to content

feat(micro-utilities): add p-is-promise to replacements - #1249

Merged
43081j merged 2 commits into
e18e:mainfrom
maksimgm:feat/p-is-promise
Nov 20, 2026
Merged

43081j merged 2 commits into
e18e:mainfrom
maksimgm:feat/p-is-promise

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

🔗 Linked issue

closes #1197

📚 Description

adds p-is-promise (~8.3M weekly downloads) to micro-utilities with a new snippet::is-promise, going with the instanceof check from the issue:

value instanceof Promise

the description mentions Promise.resolve() for anyone who needs to accept other thenables. checked against p-is-promise@4.0.0: same result for native promises, async fns, subclasses and non-promises. the only difference is non-native promise objects with then + catch (like bluebird), which the package accepts

43081j
43081j previously approved these changes Nov 20, 2026
@43081j
43081j merged commit 2a1613c into e18e:main Nov 20, 2026
5 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.

[Replacement]: p-is-promise

2 participants