Skip to content

Conversation

@bxt
Copy link
Contributor

@bxt bxt commented Sep 24, 2024

Add missing conversion from async generator to the v4 migration docs.

As mentioned #1350 (comment) node actually returns an async generator from its glob function. We can use Array.fromAsync to convert it to an array promise. This array method was added rather recently (v22), but if you are using node's glob you also have it.

As mentioned paulmillr#1350 (comment) node actually returns an async generator from its glob function. We can use `Array.fromAsync` to convert it to an array promise. This array method was added rather recently (v22), but if you are using node's glob you also have it.
@bxt bxt marked this pull request as ready for review September 24, 2024 17:41
@paulmillr paulmillr merged commit ec073a8 into paulmillr:main Sep 24, 2024
@bxt bxt deleted the patch-1 branch September 24, 2024 17:43
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