ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.52k stars 1.82k forks source link

Peer dependency issue on `@size-limit/preset-small-lib` #275

Closed browniebroke closed 2 years ago

browniebroke commented 2 years ago

I recieved a couple of PRs from Renovate to update to size-limit v7 but they were failing with ERESOLVE unable to resolve dependency tree. The PR was trying to update both packages at once:

The error is because preset-small-lib has a peer dependency on size-limit pinned to the exact same version, so 7.0.4 isn't seen as compatible with 7.0.3.

It looks like the version was updated on GitHub but it's not published to npm (latest version is 7.0.3).

The automatic update should have updated both packages to 7.0.4, but one isn't published, hence the error. Is there any chance we could get @size-limit/preset-small-lib 7.0.4 published on npm? I'm pinning them both to 7.0.3 for now, but I thought you might want to know about this.

ai commented 2 years ago

Thanks. I just released @size-limit/preset-small-lib@7.0.4.

browniebroke commented 2 years ago

Thanks!