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
- The repository appears to be maintained at least sporadically, with the upstream last push dated 2020-12-13, but the last versioned update shown here is 1.1.3 on 2019-05-22.
- The update cadence is not frequent, based on the timeline of 1.1.1 (2018-01-14), 1.1.2 (2018-06-06), and 1.1.3 (2019-05-22), suggesting intermittent evolution rather than continuous releases.
AI summary generated Today
Recent updates
1.1.3
5/22/2019Release 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
6/6/2018Release 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.
Breaking1.1.1
1/14/2018Release 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
1/31/2017Release 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.
BreakingFeatures1.0.0
1/31/2017This 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.