Skip to content

Commit

Permalink
Bump insta from 1.41.1 to 1.42.0 (#1400)
Browse files Browse the repository at this point in the history
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.41.1 to 1.42.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mitsuhiko/insta/releases">insta's
releases</a>.</em></p>
<blockquote>
<h2>1.42.0</h2>
<h2>Release Notes</h2>
<ul>
<li>Text snapshots no longer contain <code>snapshot_type: text</code> in
their metadata. For context, we originally added this in the prior
release (1.41.0) to support binary snapshots, but some folks disliked
the diff noise on any snapshot changes, and the maintainers' weighted
votes favored reverting. I apologize that this will cause some
additional churn for those who used <code>cargo test
--force-update-snapshots</code> to update their snapshots to the 1.41
format; running this again with 1.42 will remove those metadata entries.
To confirm: this doesn't affect whether snapshot tests pass or fail —
the worst impact is some additional diffs in metadata. <a
href="https://redirect.github.com/mitsuhiko/insta/issues/690">#690</a></li>
<li>Pending snapshots are no longer removed throughout the workspace by
<code>cargo-insta</code> before running tests. Instead, running a test
will overwrite or remove its own pending snapshot. To remove all pending
snapshots, use <code>cargo insta reject</code> or run tests with
<code>--unreferenced=delete</code>. <a
href="https://redirect.github.com/mitsuhiko/insta/issues/651">#651</a></li>
<li><code>insta::internals::SettingsBindDropGuard</code> (returned from
<code>Settings::bind_to_scope</code>) no longer implements
<code>Send</code>. This was incorrect and any tests relying on this
behavior where not working properly. Fixes <a
href="https://redirect.github.com/mitsuhiko/insta/issues/694">#694</a>
in <a
href="https://redirect.github.com/mitsuhiko/insta/issues/695">#695</a>
by <a
href="https://github.com/jalil-salame"><code>@​jalil-salame</code></a></li>
</ul>
<h2>Install cargo-insta 1.42.0</h2>
<h3>Install prebuilt binaries via shell script</h3>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-installer.sh
| sh
</code></pre>
<h3>Install prebuilt binaries via powershell script</h3>
<pre lang="sh"><code>powershell -ExecutionPolicy ByPass -c &quot;irm
https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-installer.ps1
| iex&quot;
</code></pre>
<h2>Download cargo-insta 1.42.0</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-aarch64-apple-darwin.tar.xz">cargo-insta-aarch64-apple-darwin.tar.xz</a></td>
<td>Apple Silicon macOS</td>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-aarch64-apple-darwin.tar.xz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-apple-darwin.tar.xz">cargo-insta-x86_64-apple-darwin.tar.xz</a></td>
<td>Intel macOS</td>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-apple-darwin.tar.xz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-pc-windows-msvc.zip">cargo-insta-x86_64-pc-windows-msvc.zip</a></td>
<td>x64 Windows</td>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-unknown-linux-gnu.tar.xz">cargo-insta-x86_64-unknown-linux-gnu.tar.xz</a></td>
<td>x64 Linux</td>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-unknown-linux-gnu.tar.xz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz">cargo-insta-x86_64-unknown-linux-musl.tar.xz</a></td>
<td>x64 MUSL Linux</td>
<td><a
href="https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-x86_64-unknown-linux-musl.tar.xz.sha256">checksum</a></td>
</tr>
</tbody>
</table>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md">insta's
changelog</a>.</em></p>
<blockquote>
<h2>1.42.0</h2>
<ul>
<li>Text snapshots no longer contain <code>snapshot_type: text</code> in
their metadata. For
context, we originally added this in the prior release (1.41.0) to
support
binary snapshots, but some folks disliked the diff noise on any snapshot
changes, and the maintainers' weighted votes favored reverting. I
apologize
that this will cause some additional churn for those who used
<code>cargo test --force-update-snapshots</code> to update their
snapshots to the 1.41 format;
running this again with 1.42 will remove those metadata entries. To
confirm:
this doesn't affect whether snapshot tests pass or fail — the worst
impact is
some additional diffs in metadata. <a
href="https://redirect.github.com/mitsuhiko/insta/issues/690">#690</a></li>
<li>Pending snapshots are no longer removed throughout the workspace by
<code>cargo-insta</code> before running tests. Instead, running a test
will overwrite or
remove its own pending snapshot. To remove all pending snapshots, use
<code>cargo insta reject</code> or run tests with
<code>--unreferenced=delete</code>. <a
href="https://redirect.github.com/mitsuhiko/insta/issues/651">#651</a></li>
<li><code>insta::internals::SettingsBindDropGuard</code> (returned from
<code>Settings::bind_to_scope</code>) no longer implements
<code>Send</code>. This was incorrect and
any tests relying on this behavior where not working properly. Fixes <a
href="https://redirect.github.com/mitsuhiko/insta/issues/694">#694</a>
in
<a
href="https://redirect.github.com/mitsuhiko/insta/issues/695">#695</a>
by <a
href="https://github.com/jalil-salame"><code>@​jalil-salame</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/mitsuhiko/insta/commit/c20f566d29d6ca1b1b5a852066b0d5ef5ab36ce5"><code>c20f566</code></a>
Bump version to 1.42.0 (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/703">#703</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/aca7fe4d040b412686e6952d834576a16417bd90"><code>aca7fe4</code></a>
Update changelog for 1.42; add <code>snapshot_kind</code> explanation
(<a
href="https://redirect.github.com/mitsuhiko/insta/issues/702">#702</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/3f1e9a1e26a78808e17afb85d9f034a226e9b470"><code>3f1e9a1</code></a>
Fix clippy error &amp; run <code>--all-features</code> in CI (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/701">#701</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/f750c5b62ba61459758a930ea9bd00affba8bd09"><code>f750c5b</code></a>
Update <code>dist</code> config (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/700">#700</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/60638c2902886498a6dc28f3b4ca8ca7d93a9947"><code>60638c2</code></a>
Defer to <code>cargo metadata</code> to evaluate the workspace root (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/660">#660</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/1d9ddeaf3b8fda5e0c3417072b23b59e9d976603"><code>1d9ddea</code></a>
Don't clear unrelated pending snapshots (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/651">#651</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/966746a1f800fe3d07fc8ae8645b159a242ce398"><code>966746a</code></a>
Replace <code>lazy_static</code> with <code>once_cell</code> (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/698">#698</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/0caaaca2cbe8f17fafab30c402b5475358fe5f67"><code>0caaaca</code></a>
fix(settings): mark drop guard as !Send (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/695">#695</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/02837742793bd797c94b05c5415fd3e558978683"><code>0283774</code></a>
Don't add <code>snapshot_kind: text</code> to snapshots (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/690">#690</a>)</li>
<li><a
href="https://github.com/mitsuhiko/insta/commit/f2783e5339eb22bb87086154de2f870cc69fd74a"><code>f2783e5</code></a>
Fix warning, make them errors in CI (<a
href="https://redirect.github.com/mitsuhiko/insta/issues/693">#693</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/mitsuhiko/insta/compare/1.41.1...1.42.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=insta&package-manager=cargo&previous-version=1.41.1&new-version=1.42.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> 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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 6, 2025
1 parent 2637640 commit df44a05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ http = "1.2.0"
ignore = "0.4.22"
indicatif = "0.17.8"
indoc = "2.0.5"
insta = { version = "1.41.1", features = ["yaml", "redactions"] }
insta = { version = "1.42.0", features = ["yaml", "redactions"] }
itertools = "0.13.0"
keyring = { version = "3.6.1", features = [
"apple-native",
Expand Down

0 comments on commit df44a05

Please sign in to comment.