pub const LOCKFILE_VERSION: u8 = 3;Expand description
Current on-disk schema. Older readable versions are migrated in memory
by read_lockfile_at; writers always emit this version.
Versions 1 and 2 are TOML. Version 3 carries the same rows as version 2
encoded as JSON, in the layout JSON.stringify(value, null, 2) produces:
two-space indent, one array element per line, a trailing newline. That
is the layout npm, jq, Python, and VS Code’s JSON formatter all agree
on, so a formatter that a repository runs over its JSON files leaves
the lockfile byte for byte unchanged instead of rewriting it.