mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
This implements basic yarn.lock v4 (yarn berry) migration support: - Created yarn.lock.berry.zig for parsing yarn berry YAML format - Modified yarn.zig to detect and delegate to berry parser - Added test fixture with real yarn v4 lockfile - Added test case for yarn v4 migration The implementation parses the yarn berry YAML lockfile format including: - Package metadata (__metadata version/cacheKey) - Package descriptors (name@npm:version format) - Resolution URLs and versions - Checksums (converts yarn berry's "10/hash" format to sha512) - Dependencies (prod/dev/peer/optional) Note: Dependency resolution matching is incomplete. The migration will parse packages but requires a full install to properly resolve all dependencies. This is a foundational implementation that can be enhanced. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>