Skip to content

feat(arborist): add lockfileString() for in-memory lockfile generation#9312

Merged
owlstronaut merged 1 commit intorelease/v11from
backport/v11/9282
May 5, 2026
Merged

feat(arborist): add lockfileString() for in-memory lockfile generation#9312
owlstronaut merged 1 commit intorelease/v11from
backport/v11/9282

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 5, 2026

Backport of #9282 to release/v11.

Exposes a public method on the Arborist class that builds (or reuses) an ideal tree, commits the shrinkwrap metadata, and returns the lockfile contents as a string without writing to disk.

This makes a previously-undocumented sequence (`buildIdealTree()` -> `tree.meta.commit()` -> `String(tree.meta)`) a discoverable, supported API, enabling callers to inspect, diff, or store generated lockfiles without mutating the project's package-lock.json.

(cherry picked from commit b8655c7)
@owlstronaut owlstronaut closed this May 5, 2026
@owlstronaut owlstronaut reopened this May 5, 2026
@owlstronaut owlstronaut merged commit 20fb6a0 into release/v11 May 5, 2026
35 checks passed
@owlstronaut owlstronaut deleted the backport/v11/9282 branch May 5, 2026 16:11
@github-actions github-actions Bot mentioned this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants