Skip to content

fix(javascript): allow async param on createIterablePromise #4144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 22, 2024

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Nov 22, 2024

🧭 What and Why

Allow all params of createIterablePromise to return PromiseLike and call them with await, if people want to use await inside their fonctions.

This is not a breaking change and stays compatible with before.

@millotp millotp self-assigned this Nov 22, 2024
@millotp millotp requested a review from a team as a code owner November 22, 2024 13:09
@millotp millotp requested review from Fluf22 and shortcuts November 22, 2024 13:09
@algolia-bot
Copy link
Collaborator

algolia-bot commented Nov 22, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 664b345cb6b4559a888a574aa60187431b4ed5a4
🍃 Generated commit eba04220dd14543524ed45efa59ebc46e1f507bc
🌲 Generated branch generated/fix/async-iterable
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1624

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great find! can we leave one of the playground with an async and sync implem in it? just so the build secures it

@shortcuts
Copy link
Member

great find! can we leave one of the playground with an async and sync implem in it? just so the build secures it

actually just a test in client-common would be good?

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:noice:

Comment on lines +5 to +6
"outDir": "dist",
"skipLibCheck": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"outDir": "dist",
"skipLibCheck": true
"outDir": "dist"

does it still work without it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, still complains about rollup

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(╯°□°)╯︵ dnʅʅoɹ

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks bon to moi gg!

@millotp millotp merged commit c044401 into main Nov 22, 2024
12 checks passed
@millotp millotp deleted the fix/async-iterable branch November 22, 2024 14:52
algolia-bot added a commit that referenced this pull request Nov 22, 2024
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Nov 22, 2024
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.

3 participants