forwardemail/superagent
49.4
Weak · 15 November 2026
4.4k
lines of production code
JavaScript
primary language
5
measurements over time
What this system is
Features
Added simple GET request example
A new example file (examples/simple-get.js) has been added to demonstrate making a simple HTTP GET request using the library. The example fetches content from a specific Gist URL and logs the response text to the console, providing a basic usage pattern for users.
examples · high confidence
Modern rewrite and refactoring of core HTTP client
The library has been completely rewritten to improve maintainability and security. The new architecture introduces a dedicated Agent class for managing request defaults and a unified RequestBase for shared Node/browser functionality. Security is strengthened by hardening redirects, response handling, and cookie scoping against hostile servers, and by preventing prototype pollution via safe key checks. Users also gain support for Brotli compression, a custom JSON encoder (fast-safe-stringify) to handle BigInts safely, and more robust timeout and retry mechanisms.
src · high confidence
Modernized Node.js HTTP client implementation with hardened security and HTTP/2 support
The Node.js-specific request handling has been rewritten to use modern ES6 classes and WHATWG URL APIs, replacing deprecated methods like \url.parse()\. This update introduces a new \Agent\ class that enforces strict cookie scoping per RFC 6265 to prevent session fixation attacks across redirects, and adds native support for HTTP/2 connections via \http2wrapper\. The decompression layer now supports Brotli encoding alongside Gzip/Deflate, and the JSON parser preserves the original HTTP status code and headers on parse failures. Additionally, the implementation ensures proper resource disposal of underlying sockets and HTTP/2 sessions when request setup fails, and fixes IPv6 address handling in HTTP/2 requests.
src/node · high confidence
Removals
Removal of internal EventEmitter and Superagent source files
The internal \lib/events.js\ EventEmitter implementation and the \lib/superagent.js\ source file have been deleted from the library. This change removes the bundled event-emitting logic and the core HTTP client implementation code that was previously maintained within these specific library files, likely as part of a refactoring to externalize these dependencies or restructure the module architecture.
lib · high confidence
Architecture
Repository modernization and build infrastructure overhaul
The project has undergone a significant structural modernization, replacing the legacy build system with a standardized, tooling-driven workflow. The old Makefile-based build process and pre-generated distribution files (superagent.js, superagent.min.js) have been removed in favor of a Babel-based compilation pipeline configured via separate .babelrc files for the library, distribution, and test targets. Code quality is now enforced through ESLint (with node and browser environments), Prettier, and XO, while commit messages are validated using Commitlint. Browser support is explicitly defined in .browserslistrc (excluding IE 11) and tested via Zuul, with CI migrated to Travis CI for Node 14, 16, and 18. Documentation has been consolidated into a new README.md and index.html, and legacy files like History.md and Readme.md have been removed.
(repo-wide) · high confidence
Behavioural changes
CI script removes unsupported dev dependencies for older Node.js versions
A new CI script (ci/remove-deps-4-old-node.js) has been added to automatically remove specific development dependencies from package.json when running on older Node.js versions. The script targets a predefined set of packages including @commitlint/cli, eslint, husky, lint-staged, and xo, setting their values to undefined in the devDependencies section to prevent compatibility issues during CI builds.
ci · high confidence
Updated Husky pre-commit and commit-msg hooks
The .husky directory now contains explicit shell scripts for pre-commit and commit-msg hooks. The pre-commit hook runs \npx lint-staged\, and the commit-msg hook runs \npx commitlint --edit $1\. This replaces previous configurations, ensuring these linting checks are executed via npx directly from the hooks.
.husky · high confidence
Test coverage
Added HTTP/2 test support utilities for Express; Added client-side unit tests for request handling, serialization, and cross-domain behavior; Added test fixtures for HTTPS client certificate authentication and sample user data; Comprehensive Node.js test suite rewrite; Comprehensive test suite for request, agent, and form handling; New test support infrastructure for HTTP/2 and shared server setup.
Dependencies
Superagent v10.4.1 release with modernized dependencies and Node 14+ requirement
Superagent has been updated to version 10.4.1, introducing a comprehensive overhaul of its dependency tree and build configuration. The package now requires Node.js 14.18.0 or later, dropping support for older versions. Key dependency updates include form-data to ^4.0.5, formidable to ^3.5.4, qs to ^6.14.1, and mime to 2.6.0, alongside significant upgrades to development tools such as Babel 7, ESLint 8, and Mocha 6.2.3. The release also adds browser-specific build scripts and configuration, including browserify and babelify integration, to support client-side usage via jsDelivr and unpkg.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 49 → 49 (-0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 47 → 43 (-3.2)
- Architecture 94 → 94 (+0.0)
- Maturity 51 → 50 (-0.8)
- Readiness 46 → 46 (+0.0)
- Security 55 → 60 (+5.3)
- Accessibility 72 → 88 (+15.7)
Resolved (44)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- …and 24 more
New (16)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- Critical CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- High CVE: [GHSA redacted] (package-lock.json)
- Low CVE: [GHSA redacted] (package-lock.json)
- Medium CVE: [GHSA redacted] (package-lock.json)
- Medium CVE: [GHSA redacted] (package-lock.json)
- Off-boarding risk: anonymized user #1
- Repeated repair: index.html (index.html)
- Repeated repair: src/utils.js (src/utils.js)
- doc comments repeat the names (src/client.js)
- request (cognitive 49) (src/node/index.js)
- utils.parseLinks (cognitive 17) (src/utils.js)
Changes since last survey
- 2 commits — 1 feature/other, 1 fixes
By area
- (root) — 2 commits
Notable commits
- fix: fix: let unset() remove default and differently cased headers
- change: 10.4.2
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
forwardemail/superagent was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit d26bf6ae1a181a00dc71b756d03e8120b92207c4 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.