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
- The source appears actively maintained, with the most recent upstream push on 2026-05-29 and multiple recent updates in 2026 (v2.0.4 and v2.0.3).
- Update cadence looks uneven but recently active, with v2.0.3 on 2026-04-17 and v2.0.4 on 2026-05-28 (about 6 weeks apart), followed by much larger gaps in earlier years.
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.