-
Notifications
You must be signed in to change notification settings - Fork 120
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
feat: exports undici #554
feat: exports undici #554
Conversation
WalkthroughThe changes in this pull request primarily involve modifications to the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
src/fetch.ts
(1 hunks)src/index.ts
(1 hunks)
🧰 Additional context used
🪛 eslint
src/fetch.ts
[error] 228-228: A space is required after ','.
(comma-spacing)
[error] 228-229: Missing trailing comma.
(comma-dangle)
🪛 GitHub Check: Node.js / Test (windows-latest, 23)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (windows-latest, 18.19.0)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 23)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 22)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 20)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 18.19.0)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 18)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 23)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 20)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 18.19.0)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 22)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 18)
src/fetch.ts
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🔇 Additional comments (2)
src/index.ts (1)
47-48
: LGTM: Enhanced type exports from undici
The additional type exports (BodyInit
, ResponseInit
, Headers
, FormData
, File
) improve TypeScript support and type safety.
src/fetch.ts (1)
226-230
: LGTM: Improved error handling with dedicated fetch response channel
The error is now correctly published to both channels.fetchResponse
and channels.response
, maintaining backward compatibility while providing fetch-specific error handling.
🧰 Tools
🪛 eslint
[error] 228-228: A space is required after ','.
(comma-spacing)
[error] 228-229: Missing trailing comma.
(comma-dangle)
🪛 GitHub Check: Node.js / Test (windows-latest, 23)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (windows-latest, 18.19.0)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 23)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 22)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 20)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 18.19.0)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 18)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 23)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 20)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 18.19.0)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 22)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
🪛 GitHub Check: Node.js / Test (macos-latest, 18)
[failure] 228-228:
A space is required after ','
[failure] 228-228:
Missing trailing comma
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #554 +/- ##
=======================================
Coverage 93.20% 93.20%
=======================================
Files 10 10
Lines 1222 1222
Branches 289 289
=======================================
Hits 1139 1139
Misses 79 79
Partials 4 4 ☔ View full report in Codecov by Sentry. |
[skip ci] ## [4.6.0](v4.5.1...v4.6.0) (2024-12-04) ### Features * exports undici ([#554](#554)) ([3c9fca7](3c9fca7))
Summary by CodeRabbit
Bug Fixes
New Features
BodyInit
,ResponseInit
,Headers
, andFormData
.Documentation