Version Packages#1183
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@wdio/image-comparison-core@2.1.0
Minor Changes
b194642: fix: ignore* option parity with resemble (pixelmatch)
After v10 switched to pixelmatch, the public
ignore*API did not fully match resemble.js preset behaviour. Combined modes such asignoreLesswith the defaultignoreAntialiasing: truestill inherited AA forgiveness, andignoreColorsused BT.601 grayscale instead of resemble brightness-only comparison.This release also adds
compareOptions.pixelmatchso you can pass pixelmatch settings directly instead of usingignore*presets.What changed
ignore*flags now follow resemble last-wins ordering (ignoreAlpha→ignoreAntialiasing→ignoreColors→ignoreLess→ignoreNothing) instead of composing independentlyignoreLess,ignoreAlpha,ignoreColors, andignoreNothingnow apply their own threshold and AA rules when active; they no longer inherit defaultignoreAntialiasing: trueforgivenessignoreColorsnow compares brightness only using resemble luma weights (0.3/0.59/0.11), matching resemble v9 behaviourignore*flags are enabled, naming which preset winscompareOptions.pixelmatchobject for direct pixelmatch control (threshold,includeAA,diffColor,aaColor,diffColorAlt,alpha,diffMask,checkerboard)Preset reference
ignoreNothingignoreLessignoreColorsignoreAlphaignoreAntialiasing(default)Using
compareOptions.pixelmatchSet it in your service config or on a single
check*call. Do not putignore*keys andpixelmatchon the same options object; that throws, even when anignore*flag isfalse. Service config and method options are separate objects, so a method call can override the service compare mode for that check (a warning is logged when the mode switches).Service config:
Method override when the service uses
ignore*presets:Method override when the service uses
pixelmatch:Invalid (throws):
See pixelmatch for option details.
What you need to do
ignore*flag or rely on defaults (ignoreAntialiasing: true)ignoreAntialiasing: falsewhen anti-aliased pixels should count as differencesignore*flags, review your tests; last-wins ordering now matches resemble v9ignoreColors, results may differ slightly from early v10 but align with resemble v9compareOptions.pixelmatchin your service config or passpixelmatchon individualcheck*calls@wdio/visual-service@10.1.0
Minor Changes
b194642: fix: ignore* option parity with resemble (pixelmatch)
After v10 switched to pixelmatch, the public
ignore*API did not fully match resemble.js preset behaviour. Combined modes such asignoreLesswith the defaultignoreAntialiasing: truestill inherited AA forgiveness, andignoreColorsused BT.601 grayscale instead of resemble brightness-only comparison.This release also adds
compareOptions.pixelmatchso you can pass pixelmatch settings directly instead of usingignore*presets.What changed
ignore*flags now follow resemble last-wins ordering (ignoreAlpha→ignoreAntialiasing→ignoreColors→ignoreLess→ignoreNothing) instead of composing independentlyignoreLess,ignoreAlpha,ignoreColors, andignoreNothingnow apply their own threshold and AA rules when active; they no longer inherit defaultignoreAntialiasing: trueforgivenessignoreColorsnow compares brightness only using resemble luma weights (0.3/0.59/0.11), matching resemble v9 behaviourignore*flags are enabled, naming which preset winscompareOptions.pixelmatchobject for direct pixelmatch control (threshold,includeAA,diffColor,aaColor,diffColorAlt,alpha,diffMask,checkerboard)Preset reference
ignoreNothingignoreLessignoreColorsignoreAlphaignoreAntialiasing(default)Using
compareOptions.pixelmatchSet it in your service config or on a single
check*call. Do not putignore*keys andpixelmatchon the same options object; that throws, even when anignore*flag isfalse. Service config and method options are separate objects, so a method call can override the service compare mode for that check (a warning is logged when the mode switches).Service config:
Method override when the service uses
ignore*presets:Method override when the service uses
pixelmatch:Invalid (throws):
See pixelmatch for option details.
What you need to do
ignore*flag or rely on defaults (ignoreAntialiasing: true)ignoreAntialiasing: falsewhen anti-aliased pixels should count as differencesignore*flags, review your tests; last-wins ordering now matches resemble v9ignoreColors, results may differ slightly from early v10 but align with resemble v9compareOptions.pixelmatchin your service config or passpixelmatchon individualcheck*callsPatch Changes
b194642: chore: dependency updates
Updated dependencies to their latest compatible versions:
@wdio/visual-service:expect-webdriverioto^5.7.0@wdio/visual-reporter:sharpto^0.35.3@typescript-eslint/*to^8.63.0,vitestto^3.2.7,eslintto^9.39.5, plus minor bumps forpostcss,react-icons, andisbotin the reporter packageNo functional or API changes.
Committers: 1
Updated dependencies [b194642]
@wdio/visual-reporter@0.4.15
Patch Changes
b194642: chore: dependency updates
Updated dependencies to their latest compatible versions:
@wdio/visual-service:expect-webdriverioto^5.7.0@wdio/visual-reporter:sharpto^0.35.3@typescript-eslint/*to^8.63.0,vitestto^3.2.7,eslintto^9.39.5, plus minor bumps forpostcss,react-icons, andisbotin the reporter packageNo functional or API changes.
Committers: 1