Back to Explore

sindresorhus/define-lazy-prop

GitHub
1 watchersOpen source

Last release:

define-lazy-prop defines a lazily evaluated property on an object, so a provided value function runs the first time the property is accessed. It is useful for deferring expensive computations to improve startup performance or delay nonessential work until it is needed.

Project status

  • The source does not show evidence of active maintenance, with its last recorded upstream push on 2023-03-19, and no updates since then, as of 2026-06-09.
  • Update cadence appears slow and historical rather than ongoing, with major updates occurring in 2017, 2019, and 2021, and then a multi-year quiet period afterward.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.0.0

    v3.0.0 moves define-lazy-prop to a pure ESM package and bumps the minimum supported Node.js version to 12. The core functionality remains a lazy getter that computes once and caches the value on first access.

    Breaking
  • v2.0.0

    v2.0.0 introduces a breaking runtime requirement by raising the minimum supported Node.js version to 8. It also adds TypeScript definition files to improve developer ergonomics when using the package in TypeScript projects.

    BreakingFeatures
  • v1.0.0

    Release v1.0.0 was published on 2017-01-15, but no release notes or change log details were provided by the publisher. As a result, there is no documented information about new features, fixes, security updates, or potential breaking changes for this upgrade.