Back to Explore

developit/dlv

GitHub
2 watchersOpen source

Last release:

dlv is a small JavaScript utility for safely reading nested object properties using dot-notated key paths, returning a default value when the full path is missing or the value is undefined. It is useful for avoiding errors when traversing deep objects, including use with ES Modules, CommonJS, and globals.

Project status

  • Maintenance status: The project appears quiet/dormant today, with no evidence of new updates since at least 2019-05-22 (and the upstream push last noted on 2020-12-13 is still many years ago relative to 2026-06-09).
  • Update cadence: After initial releases in 2017, updates came in 2018 (1.1.1 in 2018-01, 1.1.2 in 2018-06) and then 2019 (1.1.3), with no further documented updates in the provided history.

AI summary generated

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

Recent updates

  • 1.1.3

    Release 1.1.3 claims dlv was reduced in size (about 122 bytes, or 91 bytes with Brotli) without describing any functional changes. The code diff, however, shows a change to the exported function signature and internal traversal logic details.

  • 1.1.2

    Release 1.1.2 changes `dlv` so that when traversal of a dot-notated keypath cannot complete, it returns the provided default value (or `undefined` if no default is given). The only functional code change is in `index.js`, with accompanying test updates and a small README wording update.

    Breaking
  • 1.1.1

    Release 1.1.1 is primarily a build tooling change. The release notes mention switching the build to Microbundle to reduce output size, but the diff also updates package metadata and build configuration beyond that single statement.

  • 1.1.0

    Release 1.1.0 adds support for returning an optional fallback value when a dot-path resolves to undefined. The implementation is small, but the release also changes how the package is built and exported (entry point and module format), which is not mentioned in the release notes.

    BreakingFeatures
  • 1.0.0

    This is the first release (v1.0.0). There are no release notes detailing features, fixes, or changes beyond stating that it is the initial release.