Skip to content

Remove useless async modifiers - #6776

Open
remcohaszing wants to merge 3 commits into
mainfrom
biome-use-await
Open

remcohaszing wants to merge 3 commits into
mainfrom
biome-use-await

Conversation

@remcohaszing

Copy link
Copy Markdown
Member

This change removes the unnecessary async modifiers from all functions. A Biome rule is used to enforce this.

The problem with async is that it infects its caller, which now also needs to be async.

Callbacks should basically never use the Promise return type. They should use PromiseLike instead, which is compatible with other thenables as well. But even better is to allow a synchronous value as well. That’s what Promisable from type-fest does.

This change removes the unnecessary `async` modifiers from all
functions. A Biome rule is used to enforce this.

The problem with `async` is that it infects its caller, which now also
needs to be async.

Callbacks should basically never use the `Promise` return type. They
should use `PromiseLike` instead, which is compatible with other
thenables as well. But even better is to allow a synchronous value as
well. That’s what `Promisable` from `type-fest` does.
@socket-security

socket-security Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​type-fest@​5.8.0 ⏵ 5.10.0100 +1100100 +189100

View full report

@changeset-bot

changeset-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: edd87e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@uppy/core Patch
@uppy/companion Patch
uppy Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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