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

Migrate to undici 7 #401

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Migrate to undici 7 #401

merged 1 commit into from
Dec 7, 2024

Conversation

kibertoad
Copy link
Collaborator

Changes

This uses newer version of undici-retry that depends on undici v7

Checklist

  • Apply one of following labels; major, minor, patch or skip-release
  • I've updated the documentation, or no changes were necessary
  • I've updated the tests, or no changes were necessary

@@ -93,7 +93,7 @@ export async function sendDelete<
reset: options.disableKeepAlive ?? false,
bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout,
headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout,
throwOnError: false,
throwOnError: undefined,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

undici no longer supports this as a parameter and expects https://undici.nodejs.org/#/docs/api/Dispatcher?id=responseerror to be used instead.

Since we always consumed this parameter directly instead of relying on undici handling (in order to provide sufficient amount of error details), we just ensure that we no longer pass-through this parameter.

Copy link
Collaborator

@CarlosGamero CarlosGamero left a comment

Choose a reason for hiding this comment

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

🚀

@kibertoad kibertoad merged commit 61417ef into main Dec 7, 2024
5 checks passed
@kibertoad kibertoad deleted the chore/undici-7 branch December 7, 2024 21:55
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.

2 participants