chore(*): Update dependency @simonsmith/cypress-image-snapshot to v8 [SECURITY] - autoclosed #3001
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 contains the following updates:
6.1.1
->8.0.2
GitHub Vulnerability Alerts
CVE-2023-38695
Impact
It's possible for a user to pass a relative file path for the snapshot name and reach outside of the project directory into the machine running the test. Example:
The above will create an
ignore-relative-dirs.png
three levels upPatches
Fixed in
8.0.2
Workarounds
Validate all the existing uses of
matchImageSnapshot
to ensure correct use of the filename argument. Example:References
https://github.com/simonsmith/cypress-image-snapshot/issues/15
Release Notes
simonsmith/cypress-image-snapshot (@simonsmith/cypress-image-snapshot)
v8.0.2
Compare Source
Bug Fixes
v8.0.1
Compare Source
Bug Fixes
v8.0.0
Compare Source
Bug Fixes
Features
BREAKING CHANGES
Cypress.spec.relative
option togenerate the snapshot directory and changes the folder structure.
It should now match the directory structure found in the
cypress/e2e/
directory
Updating to this change may mean committing new snapshot paths and
removing old ones in your project (especially with component testing)
See the section "Snapshot paths" in the README for more information
v7.0.0
Compare Source
Bug Fixes
Features
BREAKING CHANGES
This is a rewrite of the original library, now with full support for
TypeScript and improved testing.
Notes:
matchImageSnapshot
remains the same, as well as all theimport paths
options
TypeScript types are exported under
@simonsmith/cypress-image-snapshot/types
.These should be used instead of the package on DefinitelyTyped
Removed:
reporter
is not supported in this version.Configuration
📅 Schedule: Branch creation - "" (UTC), 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.