Simek / yarn-lock-changes

Creates a comment inside Pull Request with the human-readable summary of changes to the Yarn lock file. Works with every Yarn version (classic and berry).
https://github.com/marketplace/actions/yarn-lock-changes
MIT License
132 stars 20 forks source link

initial support for the Yarn Berry (v2 & v3) locks #52

Closed Simek closed 2 years ago

Simek commented 2 years ago

Why

Fixes #34

How

Yarn offers only official lock parser for Classic (v1), adding support for newer locks was not feasible using their parser. Since I have written an internal parser lately, now the task of adding support for other Yarn lock versions became quite straight-forward.

This PR includes the initial implementation of parser for Yarn Berry (v2 & v3) locks. I have added a few basic tests, and I have confirmed that the output is correct for this workspace, however, the changes in lock format are not well documented and there might be still some issues or thing that I have missed when working with newer lock files.