-
Notifications
You must be signed in to change notification settings - Fork 0
feat(utils): extended fetch - fx
#2
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
Conversation
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.
Pull Request Overview
This PR introduces a new extended fetch utility called fx that provides advanced features like pooling, retries, timeouts, and schema validation. The implementation replaces and extends the existing fetch utilities with a more comprehensive API.
- Introduces a new
fxfunction with three main methods:fx()for single requests,fx.all()for concurrent batching, andfx.iter()for streaming results - Adds comprehensive error handling with custom
FetchErrorandSchemaErrorclasses - Updates Sentry integration to version 10.0.0 and improves documentation formatting
Reviewed Changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils.ts | Major refactor introducing the fx API with pooling, retries, and schema validation |
| tests/utils.test.ts | Comprehensive test suite for the new fx functionality |
| src/sentry.ts | Updates Sentry dependencies to v10.0.0 and improves documentation |
| src/router.ts | Minor documentation formatting improvements |
| tests/router.test.ts | Trivial test name capitalization fix |
| dev_deps.ts | Adds testing dependencies for the new utils tests |
| deno.json | Enables broadcast-channel unstable feature |
Comments suppressed due to low confidence (4)
src/sentry.ts:67
- Sentry version 10.0.0 may not exist. My knowledge cutoff is January 2025, and it's currently August 2025, so this version may have been released since then. However, please verify that version ^10.0.0 of @sentry/core is actually available before merging.
} from 'npm:@sentry/core@^10.0.0'
src/sentry.ts:84
- Sentry version 10.0.0 may not exist. My knowledge cutoff is January 2025, and it's currently August 2025, so this version may have been released since then. However, please verify that version ^10.0.0 of @sentry/deno is actually available before merging.
} from 'npm:@sentry/deno@^10.0.0'
src/sentry.ts:86
- Sentry version 10.0.0 may not exist. My knowledge cutoff is January 2025, and it's currently August 2025, so this version may have been released since then. However, please verify that version ^10.0.0 of @sentry/deno is actually available before merging.
export * from 'npm:@sentry/deno@^10.0.0'
dev_deps.ts:21
- Zod version 4.0.14 may not exist. My knowledge cutoff is January 2025, and it's currently August 2025, so this version may have been released since then. However, please verify that version 4.0.14 of zod is actually available before merging.
export { z } from 'npm:zod@4.0.14'
No description provided.