takahirom/roborazzi (io.github.takahirom.roborazzi)
### [`v1.24.0`](https://togithub.com/takahirom/roborazzi/releases/tag/1.24.0)
[Compare Source](https://togithub.com/takahirom/roborazzi/compare/1.23.0...1.24.0)
#### New feature: Support for includePrivatePreviews in Compose Preview Support
Compose Preview Support, initially released in version 1.22.0, now includes the `includePrivatePreviews` option. This feature allows you to include private previews in your Compose Preview Support setup. You can enable this by setting `includePrivatePreviews` in `roborazzi.generateComposePreviewRobolectricTests.includePrivatePreviews`. Thank you for submitting this feature request, [@yuchan2215](https://togithub.com/yuchan2215) !
#### New feature: JUnit rule support in ComposePreviewTester
We've enhanced ComposePreviewTester to support JUnit rules. Previously, ComposePreviewTester lacked lifecycle hooks, which made certain scenarios challenging to handle. Now, you can pass your own Test rules, including your Compose Test Rule, and use them in tests. For a sample implementation, check out [this integration test](https://togithub.com/takahirom/roborazzi/blob/2519f46ec0e5a8dadc5139ae833e2925c90c8b21/include-build/roborazzi-gradle-plugin/src/integrationTest/projects/sample-generate-preview-tests/src/test/java/com/github/takahirom/sample/CustomPreviewTester.kt).
#### Breaking changes for users of the `ComposePreviewTester` interface
As we continue to improve Compose Preview Support, we've made some changes to the `ComposePreviewTester` interface. These changes introduce a breaking change for current users.
ComposePreviewTester is an interface for modifying the behavior of Compose Preview Support. Previously, the API was prone to breaking changes with each new option added. We've addressed this issue by introducing a new `options()` function. However, this necessitates a change in how you use the interface.
Old interface:
```kotlin
fun previews(vararg packages: String): List>
```
New interface (Packages can now be accessed via `options().scanOptions.packages`):
```kotlin
fun previews(): List>
```
#### Acknowledgments
We'd like to extend our sincere thanks to [@yschimke](https://togithub.com/yschimke) and [@sergio-sastre](https://togithub.com/sergio-sastre) for their valuable design reviews and insightful feedback, which greatly contributed to the improvements in this release.
#### What's Changed
- \[Idea Plugin] Improve performance of idea plugin by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/439](https://togithub.com/takahirom/roborazzi/pull/439)
- \[Idea Plugin] Prepare for release of IntelliJ IDEA plugin by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/442](https://togithub.com/takahirom/roborazzi/pull/442)
- \[Idea Plugin] Tweak idea plugin UI by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/443](https://togithub.com/takahirom/roborazzi/pull/443)
- \[Feature, Breaking Changes] Support includePrivatePreviews of ComposablePreviewScanner by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/445](https://togithub.com/takahirom/roborazzi/pull/445)
- \[Docs] Add mention to the sample in Compose Preview Support document by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/448](https://togithub.com/takahirom/roborazzi/pull/448)
- \[Docs] Fix URL of the README link by [@takahirom](https://togithub.com/takahirom) in [https://github.com/takahirom/roborazzi/pull/449](https://togithub.com/takahirom/roborazzi/pull/449)
**Full Changelog**: https://github.com/takahirom/roborazzi/compare/1.23.0...1.24.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "every 4 hour after 00:00 and before 23:59 every day" in timezone Asia/Tokyo.
🚦 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.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
1.23.0
->1.24.0
1.23.0
->1.24.0
1.23.0
->1.24.0
1.23.0
->1.24.0
Release Notes
takahirom/roborazzi (io.github.takahirom.roborazzi)
### [`v1.24.0`](https://togithub.com/takahirom/roborazzi/releases/tag/1.24.0) [Compare Source](https://togithub.com/takahirom/roborazzi/compare/1.23.0...1.24.0) #### New feature: Support for includePrivatePreviews in Compose Preview Support Compose Preview Support, initially released in version 1.22.0, now includes the `includePrivatePreviews` option. This feature allows you to include private previews in your Compose Preview Support setup. You can enable this by setting `includePrivatePreviews` in `roborazzi.generateComposePreviewRobolectricTests.includePrivatePreviews`. Thank you for submitting this feature request, [@yuchan2215](https://togithub.com/yuchan2215) ! #### New feature: JUnit rule support in ComposePreviewTester We've enhanced ComposePreviewTester to support JUnit rules. Previously, ComposePreviewTester lacked lifecycle hooks, which made certain scenarios challenging to handle. Now, you can pass your own Test rules, including your Compose Test Rule, and use them in tests. For a sample implementation, check out [this integration test](https://togithub.com/takahirom/roborazzi/blob/2519f46ec0e5a8dadc5139ae833e2925c90c8b21/include-build/roborazzi-gradle-plugin/src/integrationTest/projects/sample-generate-preview-tests/src/test/java/com/github/takahirom/sample/CustomPreviewTester.kt). #### Breaking changes for users of the `ComposePreviewTester` interface As we continue to improve Compose Preview Support, we've made some changes to the `ComposePreviewTester` interface. These changes introduce a breaking change for current users. ComposePreviewTester is an interface for modifying the behavior of Compose Preview Support. Previously, the API was prone to breaking changes with each new option added. We've addressed this issue by introducing a new `options()` function. However, this necessitates a change in how you use the interface. Old interface: ```kotlin fun previews(vararg packages: String): ListConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "every 4 hour after 00:00 and before 23:59 every day" in timezone Asia/Tokyo.
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.