This package, `lodash._basematches`, exposes an internal utility function from Lodash v3, specifically `baseMatches`. It's part of Lodash's legacy modularization strategy (pre-v4) where core internal functions were published as individual npm packages. The `baseMatches` function itself is used internally by Lodash to create a predicate function for deep object comparison, similar to how `_.matches` works in the public API. This module is stable at version 3.2.0, which corresponds to the Lodash v3 release line. It is not actively maintained as a standalone module and is considered superseded by the main `lodash` package (v4.x and later) or `lodash-es` for modern usage. Its primary differentiation was being a single-purpose, highly optimized internal primitive available separately, though this approach is now largely deprecated in favor of comprehensive bundles and tree-shakable ES modules.
npm install lodash._basematchesVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use the `baseMatches` function to create a predicate for object property matching.
Migrate to using the main `lodash` package or `lodash-es` (for ES Modules) and import the equivalent `_.matches` function directly. For example, `import { matches } from 'lodash-es';` or `const _ = require('lodash'); const matches = _.matches;`Always use `const baseMatches = require('lodash._basematches');` for this specific package. For new projects, prefer `lodash` or `lodash-es` which offer better ESM support.Upgrade to a modern version of the main `lodash` package (currently v4.18.x) which actively receives security patches and mitigations for issues like prototype pollution. Do not rely on these granular internal v3 packages in new or security-sensitive projects.
Ensure your environment supports CommonJS `require()` (e.g., Node.js without `"type": "module"` in package.json) or transpile your code if targeting a browser. For new projects, use `lodash` or `lodash-es` with native ESM imports.
This package only provides a named export accessible via CommonJS `require`. Change your import to `const baseMatches = require('lodash._basematches');`.No dependency data recorded yet.