Back to Explore
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 repository appears largely stable and mature, with the last tagged update shown as v3.0.0 on 2021-04-14, and an upstream push as recent as 2023-03-19 (so there may be minor maintenance activity, but no clear new version updates in between).
- Update/release cadence looks slow, with major changes at v3.0.0 (2021) and v2.0.0 (2019), and no additional version updates reflected in the provided history after v3.0.0.
AI summary generated Today
AI-generated from public sources. May be inaccurate. Report
Recent updates
v3.0.0
4/14/2021v3.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.
Breakingv2.0.0
4/10/2019v2.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