lihenggui / blocker

Utilize an integrated firewall to manage application components.
Apache License 2.0
1.42k stars 60 forks source link

Bump roborazzi from 1.29.0 to 1.30.1 #1079

Closed dependabot[bot] closed 1 day ago

dependabot[bot] commented 1 day ago

Bumps roborazzi from 1.29.0 to 1.30.1. Updates io.github.takahirom.roborazzi:roborazzi from 1.29.0 to 1.30.1

Release notes

Sourced from io.github.takahirom.roborazzi:roborazzi's releases.

1.30.1

Roborazzi AI-Powered Image Assertion 🤖 ✨

Roborazzi introduces an experimental AI-powered image assertion feature to simplify and scale the process of verifying screenshot test content. This feature helps automate tedious visual checks by comparing images based on customizable AI prompts, utilizing either the Gemini API or OpenAI API. It only activates when images differ, conserving resources. Additionally, manual AI assertion is available, allowing users to leverage local language models without external dependencies. We don't include Gemini or OpenAI dependencies in the roborazzi module. To use these models, you can add either roborazzi-ai-gemini or roborazzi-ai-openai as dependencies.

  onView(ViewMatchers.isRoot())
    .captureRoboImage(
      roborazziOptions = provideRoborazziContext().options.addedAiAssertion(
        assertionPrompt = "The screen should have a PREVIOUS button",
      )
   )

For more information, please check out this documentation page: https://takahirom.github.io/roborazzi/ai-powered-image-assertion.html

Roborazzi Compose Preview Support now supports the device parameter@Preview(device = "") 📱

Roborazzi Compose Preview Support uses ComposablePreviewScanner and ComposablePreviewScanner now supports parsing device parameter. It is introduced to Compose Preview Support. Thank you, @​sergio-sastre, for developing this adapter and integrating it with Roborazzi. If you are using Roborazzi Compose Preview Support with device parameters, you need to update your ComposablePreviewScanner to version 0.4.0.

Remove Context Receiver from roborazzi-desktop ♻️

The Context Receiver in Kotlin is now deprecated, so we need to remove it. The context(DesktopComposeUiTest) requirement existed because the file compose/ui/ui-test/src/skikoMain/kotlin/androidx/compose/ui/test/SkikoImageHelpers.kt was previously unavailable, necessitating the use of DesktopComposeUiTest. Now that SkikoImageHelpers is available, we can eliminate the context(DesktopComposeUiTest) requirement.

This functionality was introduced in the Compose Multiplatform core repository (commit 1664fba: https://github.com/JetBrains/compose-multiplatform-core/commit/1664fba611ae965a7815c6432485da8bcbb0f47f) and has been supported since Compose Multiplatform version 1.5.12 (https://github.com/JetBrains/compose-multiplatform-core/releases/tag/v1.5.12). Please note that this may be a breaking change if you are using Compose Multiplatform version 1.5.12 or earlier.

Changes from 1.30.0

  • Breaking changes to 1.30.0: Renamed parameter assertPrompt to assertionPrompt.

  • Use max_tokens instead of max_completion_tokens for the OpenAI API: Although max_tokens has been deprecated, we still need to use it in certain environments.

What's Changed

... (truncated)

Commits
  • a278527 1.30.1
  • c908cf3 Merge pull request #536 from takahirom/takahirom/use-max-token-instead-of-max...
  • 7d1b417 Merge pull request #535 from takahirom/takahirom/fix-naming-of-assertPrompt-t...
  • c807eb7 Use max_tokens instead of max_completion_tokens
  • bd582a4 Fix the naming of assertPrompt to assertionPrompt
  • 094b6b4 Add roborazzi-ai-gemini roborazzi-ai-openai to dependency diff
  • f3bf08e 1.30.0
  • e4387b5 Remove gemini test from ManualTest.kt
  • 03e2baf Make libs.ktor.client.core api in roborazzi-ai-openai
  • c11a271 Remove unneeded json object
  • Additional commits viewable in compare view


Updates io.github.takahirom.roborazzi from 1.29.0 to 1.30.1

Release notes

Sourced from io.github.takahirom.roborazzi's releases.

1.30.1

Roborazzi AI-Powered Image Assertion 🤖 ✨

Roborazzi introduces an experimental AI-powered image assertion feature to simplify and scale the process of verifying screenshot test content. This feature helps automate tedious visual checks by comparing images based on customizable AI prompts, utilizing either the Gemini API or OpenAI API. It only activates when images differ, conserving resources. Additionally, manual AI assertion is available, allowing users to leverage local language models without external dependencies. We don't include Gemini or OpenAI dependencies in the roborazzi module. To use these models, you can add either roborazzi-ai-gemini or roborazzi-ai-openai as dependencies.

  onView(ViewMatchers.isRoot())
    .captureRoboImage(
      roborazziOptions = provideRoborazziContext().options.addedAiAssertion(
        assertionPrompt = "The screen should have a PREVIOUS button",
      )
   )

For more information, please check out this documentation page: https://takahirom.github.io/roborazzi/ai-powered-image-assertion.html

Roborazzi Compose Preview Support now supports the device parameter@Preview(device = "") 📱

Roborazzi Compose Preview Support uses ComposablePreviewScanner and ComposablePreviewScanner now supports parsing device parameter. It is introduced to Compose Preview Support. Thank you, @​sergio-sastre, for developing this adapter and integrating it with Roborazzi. If you are using Roborazzi Compose Preview Support with device parameters, you need to update your ComposablePreviewScanner to version 0.4.0.

Remove Context Receiver from roborazzi-desktop ♻️

The Context Receiver in Kotlin is now deprecated, so we need to remove it. The context(DesktopComposeUiTest) requirement existed because the file compose/ui/ui-test/src/skikoMain/kotlin/androidx/compose/ui/test/SkikoImageHelpers.kt was previously unavailable, necessitating the use of DesktopComposeUiTest. Now that SkikoImageHelpers is available, we can eliminate the context(DesktopComposeUiTest) requirement.

This functionality was introduced in the Compose Multiplatform core repository (commit 1664fba: https://github.com/JetBrains/compose-multiplatform-core/commit/1664fba611ae965a7815c6432485da8bcbb0f47f) and has been supported since Compose Multiplatform version 1.5.12 (https://github.com/JetBrains/compose-multiplatform-core/releases/tag/v1.5.12). Please note that this may be a breaking change if you are using Compose Multiplatform version 1.5.12 or earlier.

Changes from 1.30.0

  • Breaking changes to 1.30.0: Renamed parameter assertPrompt to assertionPrompt.

  • Use max_tokens instead of max_completion_tokens for the OpenAI API: Although max_tokens has been deprecated, we still need to use it in certain environments.

What's Changed

... (truncated)

Commits
  • a278527 1.30.1
  • c908cf3 Merge pull request #536 from takahirom/takahirom/use-max-token-instead-of-max...
  • 7d1b417 Merge pull request #535 from takahirom/takahirom/fix-naming-of-assertPrompt-t...
  • c807eb7 Use max_tokens instead of max_completion_tokens
  • bd582a4 Fix the naming of assertPrompt to assertionPrompt
  • 094b6b4 Add roborazzi-ai-gemini roborazzi-ai-openai to dependency diff
  • f3bf08e 1.30.0
  • e4387b5 Remove gemini test from ManualTest.kt
  • 03e2baf Make libs.ktor.client.core api in roborazzi-ai-openai
  • c11a271 Remove unneeded json object
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)