Repository navigation
fix: align request handling across runtimes (v1.x) - #11242
Conversation
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
All reported issues were addressed across 22 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 24 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 9 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
|
@cubic-dev-ai review again |
@jasonsaayman I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
You’re at about 96% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 8 files (changes from recent commits).
You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
Summary
Align request option resolution, body size accounting, and form serialization across Node and browser adapters. Configured limits use encoded byte counts, while uploads retain their routing, contents, explicit multipart boundaries, and progress behavior.
Linked issue
N/A.
Changes
env.Blobconstructors, including custom runtimes without a global Blob, and keep adapter caches separate for distinct constructors. The generic multipart helper receives a boundary and Blob implementation; core selects the cryptographic random source and translates serialization failures into Axios errors.maxDepth: Infinity. Core owns parameter validation and its Axios error behavior. String-keyed parameters and config merges remain supported without symbol-reflection APIs. Cycle checks inspect retained fields, including reserved data properties on shallow array elements, without evaluating reserved-name accessors.tests/setup. Failed child runs retain captured stdout/stderr on the original error, including partial output and termination metadata. Reuse the adapter runtime-support predicate in agent tests and verify generated multipart boundaries use the supplied random source and have valid output. Record user-visible behavior in the pre-release changelog.Compatibility notes: circular parameters reject with
ERR_BAD_OPTION_VALUE; sparse or non-index numeric form fields serialize as keyed objects. On runtimes with native environment proxy support,proxy: falseuses a direct pool with the configured native options, connection hook, and pool-name hook. Unsupported pool-management or TLS-session lifecycle overrides reject withERR_BAD_OPTION_VALUE; those agents must be constructed withoutproxyEnv. Fetch multipart uploads needing size accounting, progress tracking, or an explicit boundary use a sized Blob with a matching boundary. Generated boundaries require a cryptographic random source. Public type signatures are unchanged.Testing
npm run lintandnpm run buildpass on Node 24.18.0.214305bf: 1,285 unit tests and 783 browser tests passed, with three existing Node-only random-source skips.postForm, promise rejection, and inherited absolute-URL-default checks pass.Checklist
🏄