is-plain-object
5.1.0 · 21 Aug 2026MIT100.9M / weekRepositorynpmAtom feed
Where each line stands
Plan an upgradeWhat to use instead
A few lines of code
From the e18e module-replacements list, maintained by the community.
Use v && typeof v === "object" && (Object.getPrototypeOf(v) === null || Object.getPrototypeOf(v) === Object.prototype)
Before you switch
- 1
Check what else depends on it
Paste your package.json in the dependency check to see every deprecated or outdated package in one pass, not only this one.
- 2
Read the replacement's peers and releases
A native API or a few lines of code need no release notes, but check the Node version your project runs on.
- 3
Know when it ships
Follow the new package on inlinr: its releases and advisories land in your feed, and the time spent on the migration branch shows on its page.
Latest releases
- 5.x · latest line
5.1.0
21 Aug 2026This release makes
is-plain-objectfriendlier for TypeScript users. The exported function is now a type guard, so successful checks narrow values to plain-object records, and the package export map now points TypeScript directly to the bundled declarations.This release makes
is-plain-objectfriendlier for TypeScript users. The exported function is now a type guard, so successful checks narrow values to plain-object records, and the package export map now points TypeScript directly to the bundled declarations.Behind the scenes, the project has also received a thorough refresh: clearer documentation, simpler tests, an up-to-date Rollup build, GitHub Actions CI across supported Node.js versions, and secure automated npm publishing.
There are no runtime API changes in this release.
5.0.0
9 Sep 2020Migrated from default to named export (see why here #17):
Added native ESM support via
exportsmapping
Migrated from default to named export (see why here #17):
ESM/TypeScript
- import isPlainObject from 'is-plain-object'; + import { isPlainObject } from 'is-plain-object';CommonJS
- const isPlainObject = require('is-plain-object'); + const { isPlainObject } = require('is-plain-object');Added native ESM support via
exportsmapping
- 4.x · maintenance
4.1.1
24 Jul 2020
Dependency tracking
Know when your own dependencies move
This page watches is-plain-object. inlinr reads your package.json and keeps the same watch on every dependency you declare, then tells you only what needs you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 22 Nov 2026. Releases and advisories last read 22 Nov 2026.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.