Tags: EmergeTools/hackernews
Tags
fix(deps): update roborazzi to v1.46.1 (#513) This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [io.github.takahirom.roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.45.1` -> `1.46.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-junit-rule](https://redirect.github.com/takahirom/roborazzi) | `1.45.1` -> `1.46.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi-compose](https://redirect.github.com/takahirom/roborazzi) | `1.45.1` -> `1.46.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [io.github.takahirom.roborazzi:roborazzi](https://redirect.github.com/takahirom/roborazzi) | `1.45.1` -> `1.46.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary> ### [`v1.46.1`](https://redirect.github.com/takahirom/roborazzi/releases/tag/1.46.1) [Compare Source](https://redirect.github.com/takahirom/roborazzi/compare/1.45.1...1.46.1) ##### Bugfix: Fix screenshot sizing for RoborazziComposeSizeOption and Previews on Robolectric 4.15+ This release finally resolves a complex screenshot sizing issue that occurred after the Robolectric 4.15 update. Version 1.46.0 was never released as we discovered additional edge cases during the pre-release phase. This version, 1.46.1, addresses all known issues. Initially, we migrated to using `RuntimeEnvironment.setQualifiers()` to configure the screen size, following the recommended approach for recent Robolectric versions. However, this change introduced new problems, especially when a `widthDp` and `heightDp` with different values were specified, or when used in combination with the `device` parameter in `@Preview`. After extensive investigation and discussion, we've implemented a more robust solution. Roborazzi now automatically adds the correct orientation qualifier (`-land` or `-port`) based on the provided dimensions and ensures the qualifiers are applied in the correct order to avoid conflicts with other configurations. This fixes sizing for all Compose screenshot tests, making them reliable and predictable again. ##### Acknowledgements A huge thank you to everyone who contributed to resolving this challenging issue! This fix would not have been possible without the collaborative effort of the community. - A special and massive thank you to **[@​sergio-sastre](https://redirect.github.com/sergio-sastre)** for their incredibly thorough testing and persistent feedback. They identified several critical edge cases, provided detailed reproductions, and patiently validated every fix, which was essential for making this solution robust. - Thank you to the Robolectric team, especially **[@​paulsowden](https://redirect.github.com/paulsowden)** and **[@​hoisie](https://redirect.github.com/hoisie)**, for their invaluable guidance. Their deep insights into Robolectric's internals and clear explanation of how `setQualifiers` and orientation work were crucial in pointing us toward the correct and final solution. - Thanks to **[@​mannodermaus](https://redirect.github.com/mannodermaus)** for the initial detailed bug report that kicked off this entire investigation. - Also, thank you to **[@​suhtai](https://redirect.github.com/suhtai)** for providing helpful information in the early stages. ##### What's Changed - Fix compare diff CI by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/706](https://redirect.github.com/takahirom/roborazzi/pull/706) - Add previews to debug size options by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/712](https://redirect.github.com/takahirom/roborazzi/pull/712) - Add automatic land/port qualifier when both widthDp and heightDp are set by [@​takahirom](https://redirect.github.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/711](https://redirect.github.com/takahirom/roborazzi/pull/711) **Full Changelog**: takahirom/roborazzi@1.46.0...1.46.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/EmergeTools/hackernews). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>