Registry / http-networking / lodash.support

lodash.support

JSON →
library3.0.4jsnpmunverified

lodash.support is a legacy, modularized utility module from the Lodash library, specifically designed to provide environment feature detection capabilities (the `_.support` object). This package is currently at version 3.0.4, which aligns with the Lodash v3 major release cycle. Unlike the main Lodash library, which has seen continuous development and is at version 4.18.1, `lodash.support` has not received updates since its initial v3 release. Consequently, it does not reflect the latest feature detection logic, bug fixes, or security patches integrated into modern Lodash versions. Its release cadence is effectively ceased, making it an outdated resource for modern JavaScript environments. Its key differentiator was being a lightweight, isolated utility from the larger Lodash library, but its age now significantly limits its utility and reliability compared to the full, updated Lodash package.

npm install lodash.support
INSTALL
IMPORT
SIG · LODASH.SUPPORT
L
lodash.support
http-networkingjavascriptv3.0.4
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

support
const support = require('lodash.support');
import support from 'lodash.support';
This package is a CommonJS module from the Lodash v3 era and does not support ES modules directly. Attempting to import it using ES module syntax will result in errors.

Demonstrates how to import lodash.support and access its feature detection properties.

const support = require('lodash.support'); // Check for various environment features console.log('Array buffer views are supported:', support.arrayBuffer); console.log('DOM Level 2 events are supported:', support.domLevel2);
Debug
Known issues
breakingThe `lodash.support` package is stuck at version 3.0.4, aligning with Lodash v3. The main Lodash library is now at v4.x. This means `lodash.support` is not compatible with feature changes or behavioral updates introduced in Lodash v4 and later. Using it with a modern Lodash installation or in a modern environment may lead to incorrect feature detection or runtime errors.
fix
Avoid using `lodash.support` directly. Instead, rely on the feature detection provided by the full `lodash` package (v4.x) or use modern native JavaScript feature detection techniques.
affects: >=3.0.4
gotcha`lodash.support` is a CommonJS-only package. It cannot be imported directly using ES module syntax (`import ... from '...'`) in projects that are configured for ES modules. This will lead to a `require is not defined` error in ESM contexts.
fix
If you must use this package in an ESM context (not recommended), you may need to use a CommonJS wrapper or a bundler that transpiles CommonJS to ESM. The best fix is to migrate away from this outdated package.
affects: >=3.0.4
breakingThis package is effectively abandoned, with no updates since Lodash v3. This means it has not received any bug fixes, performance improvements, or security patches that have been applied to the main Lodash library (e.g., prototype pollution fixes in Lodash v4.18.0). Relying on this package may expose applications to known vulnerabilities or lead to unexpected behavior.
fix
Discontinue use of this package. Replace its functionality with equivalent checks from a modern `lodash` installation or implement native feature detection.
affects: >=3.0.4
gotchaDue to its age, the feature detection logic within `lodash.support` is based on browser and Node.js environments from around 2015. It will likely provide inaccurate or outdated information for modern browsers, newer Node.js versions, or cutting-edge web platform features, potentially leading to incorrect runtime assumptions.
fix
Always verify the relevance of its detected features against current environment capabilities. For new development, prefer modern, built-in feature detection methods or a current version of the complete Lodash library.
affects: >=3.0.4
Errors
Common errors & fixes
ReferenceError: require is not defined
Attempting to use `require('lodash.support')` in an ES module environment (e.g., Node.js with type:"module" or browser ESM).
fix
This package is CommonJS-only. If your project is ESM, you should avoid this package. If absolutely necessary, you might use `import { createRequire } from 'module'; const require = createRequire(import.meta.url); const support = require('lodash.support');` but this is a workaround for an abandoned package.
Property 'someNewFeature' does not exist on type 'typeof import("lodash.support")'
Attempting to access a feature property (`support.someNewFeature`) that was introduced after `lodash.support` v3.0.4 or for a browser/Node.js version it doesn't support.
fix
The package is outdated. It does not support newer features. Use modern browser APIs or an up-to-date feature detection library.
Upgrade
Version history
3.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources