hasown is a JavaScript utility that provides a robust “has own property” predicate, designed to be ES3 compatible. It is useful for checking whether an object has a given property directly on the object (not inherited).
Project status
- Actively maintained, based on recent activity in 2026 (last upstream push 2026-07-30, with updates v2.0.4 on 2026-05-28 and v2.0.3 on 2026-04-17).
- Update cadence appears moderately frequent during 2026, roughly every 5 to 6 weeks between v2.0.3 and v2.0.4, suggesting ongoing work rather than a long stall.
AI summary generated
Recent updates
v2.0.4
Release v2.0.4 mainly updates the TypeScript type definitions for hasOwn, removing a previously present overload and adding a type-only test to guard the remaining overload behavior. It also bumps several development dependencies and updates package version metadata, with no runtime code changes shown in the provided diff.
v2.0.3
Release v2.0.3 contains no publisher-provided release notes. The code diff shows a tooling-focused update (CI/workflows, lint configuration, audit command, and dev dependency bumps) plus a TypeScript typing improvement in the public .d.ts file.
v2.0.2
Release v2.0.2 was published on 2024-03-10, but no release notes were provided by the publisher. As a result, there is no documented information about changes, bug fixes, breaking changes, or security updates in this release.
v2.0.1
v2.0.1 primarily updates how the package ships TypeScript typings and package metadata, rather than changing runtime behavior. The diff shows a new handwritten index.d.ts, changes to npm publish/packaging configuration so .d.ts files are included, and updates to dev dependency versions.
Featuresv2.0.0
Release v2.0.0 has no publisher-provided release notes. The code diff shows a major internal rewrite of the exported function, along with broad project tooling and packaging changes (tests, TypeScript types generation setup, lint/test workflows).
v1.0.1
Release v1.0.1 was published on 2014-09-03, but no release notes or change details were provided by the publisher. As a result, there is not enough information to determine whether this upgrade includes new features, bug fixes, breaking changes, or security updates.