Skip to content
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

refactor: switch to async/await syntax #47

Merged
merged 15 commits into from
Jan 7, 2025
Merged

refactor: switch to async/await syntax #47

merged 15 commits into from
Jan 7, 2025

Conversation

kmontag
Copy link
Owner

@kmontag kmontag commented Jan 7, 2025

Refactor manual promise chaining to async/await syntax for readability and maintainability. This should be a completely transparent change, except that errors thrown by the loader may look slightly different than before, as they're no longer being constructed manually within catch blocks/callbacks.

Note that per https://node.green/#ES2017-features-async-functions, async/await syntax has been supported natively since Node 7.10, which is below this package's specified minimum version (12), as well as the specified minimum versions of both webpack and protobufjs. Therefore, this isn't being treated as a breaking change.

@kmontag kmontag merged commit 94491ad into master Jan 7, 2025
7 checks passed
@kmontag kmontag deleted the async-await branch January 7, 2025 21:36
Copy link

github-actions bot commented Jan 7, 2025

🎉 This PR is included in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant