Skip to content

chore(deps): update dependency imposter to 0.2.7 - #7016

Merged
thomhurst merged 1 commit into
mainfrom
renovate/imposter-0.x
Oct 9, 2026
Merged

thomhurst merged 1 commit into
mainfrom
renovate/imposter-0.x

Conversation

@thomhurst

@thomhurst thomhurst commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Type Update Change
Imposter nuget patch 0.2.6 → 0.2.7

Release Notes

themidnightgospel/Imposter (Imposter)

v0.2.7: Span properties, indexers and events, IMP011 and IMP012, and generator fixes

Compare Source

Features

  • Spans in properties, indexers and events (part of #​201). These no longer report IMP009:

    • Properties of type Span<T> or ReadOnlySpan<T> (#​224). The imposter keeps the value as the array of its elements, and Returns takes that array.
    • Indexers whose keys or value are spans (#​248). Keys are matched with SpanArg<T>/ReadOnlySpanArg<T>.
    • Events whose delegate takes a span by value (#​260). Raising one copies the span's elements into the history, and Raised matches them with SpanArg<T>/ReadOnlySpanArg<T>.

    Still IMP009 (see Limitations):

    • custom ref structs;
    • spans returned by reference;
    • a span an async event's delegate takes, or one an event's delegate takes by ref or out;
    • the scoped cases;
    • type parameters that allow ref structs.

New diagnostics

Each of these targets used to get an imposter that didn't compile, with no diagnostic. Now it reports an error and gets no imposter:

  • IMP011: a method, property or indexer that returns by ref or ref readonly (#​244, closes #​216).
  • IMP012: an interface with a static abstract member that the interface doesn't implement (#​223, closes #​217).
  • IMP009: a method whose type parameter has the C# 13 allows ref struct anti-constraint (#​222, closes #​218).

Fixes

  • Classes with required members (#​219, closes #​215). Their imposters now compile and leave the required members at their defaults.
  • Static members of interface targets (#​221, closes #​220). They're no longer impersonated. A static member is always called through the interface, so its setup never took effect.
  • Event raise methods and Raised keep the delegate's nullable annotations (#​265, closes #​258). For an EventHandler, Raise(null, EventArgs.Empty) no longer warns CS8625.
  • A generic method parameter named it (#​245, closes #​241). Its arguments criteria no longer fail with CS1061.
  • Same-named targets of different arity on C# 14, such as IFoo and IFoo<T> (#​246, closes #​242). Their Imposter() extension classes no longer collide.
  • A target type parameter named TException (#​268, closes #​264). The builders' Throws<TException>() no longer shadows it (CS0693).

Changes to be aware of

  • Arg<object> for an object? event parameter now warns. With nullable reference types enabled, passing Arg<object> where the delegate's parameter is object? (an EventHandler's sender, for example) warns CS8620, as it already did for methods. Use Arg<object?>. The same applies to handler criteria for delegates such as Func<object?, EventArgs, Task>.
  • Setups for an interface's static members are gone (see #​221). They compiled but never had an effect.

Internal

The generator's code was reorganised without changing what it generates. The snapshot tests confirm the output is byte-identical:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@thomhurst thomhurst added dependencies Pull requests that update a dependency file PATCH renovate-bot labels Oct 9, 2026
@thomhurst
thomhurst enabled auto-merge (squash) October 9, 2026 22:19
@thomhurst
thomhurst deployed to Pull Requests October 9, 2026 22:20 — with GitHub Actions Active
@thomhurst
thomhurst deployed to Pull Requests October 9, 2026 22:20 — with GitHub Actions Active
@thomhurst
thomhurst deployed to Pull Requests October 9, 2026 22:20 — with GitHub Actions Active
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T22:21:19.617902Z 460bf2f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51fc246a-7d35-4219-ba3e-4f7caff2e4e4

📥 Commits

Reviewing files that changed from the base of the PR and between 957b42f and 460bf2f.


📒 Files selected for processing (1)
  • Directory.Packages.props

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.



📝 Walkthrough

Walkthrough

The centrally managed Imposter package version changed from 0.2.6 to 0.2.7.

Changes

Imposter Package Version

Layer / File(s) Summary
Update package version
Directory.Packages.props
The centrally managed Imposter package version changed from 0.2.6 to 0.2.7.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: quattordici


Merge Risk: ⚪ Minimal · up to 460bf

No actionable issue is established for this dependency update. It is mergeable after normal checks.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating the Imposter dependency from 0.2.6 to 0.2.7.


✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the version line
From six to seven, neat and fine
One package hops ahead
No carrots left unread
Then rests beneath the build sign

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High impact] This dependency update appears safe to merge.

Summary

Updates Imposter from 0.2.6 to 0.2.7 in Directory.Packages.props.

  • Imposter consumers now use version 0.2.7.

Reviews (1) · Last reviewed commit: "chore(deps): update dependency imposter ..." · Reviewed by Greptile

intellitect-bot pushed a commit to IntelliTect/EssentialCSharp.Web that referenced this pull request Oct 13, 2026
Updated [TUnit](https://github.com/thomhurst/TUnit) from 1.73.19 to
1.74.0.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.74.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.74.0 -->

## What's Changed
### Other Changes
* fix(mocks): eliminate trim/AOT warnings on Native AOT publish by
@​thomhurst in thomhurst/TUnit#7029
* feat(engine): raise thread pool minimum when blocking tests starve the
pool by @​thomhurst in thomhurst/TUnit#7030
* feat(mocks): add ClearCalls, PassThrough toggle and
string/type/reference matchers by @​Quattordici in
thomhurst/TUnit#7018
### Dependencies
* chore(deps): update tunit to 1.73.19 by @​thomhurst in
thomhurst/TUnit#7008
* chore(deps): update dependency imposter to 0.2.5 by @​thomhurst in
thomhurst/TUnit#7010
* chore(deps): update dependency mockolate to 3.6.0 by @​thomhurst in
thomhurst/TUnit#7011
* chore(deps): update dependency imposter to 0.2.6 by @​thomhurst in
thomhurst/TUnit#7012
* chore(deps): update dependency stackexchange.redis to 3.4.0 by
@​thomhurst in thomhurst/TUnit#7013
* chore(deps): update xunit by @​thomhurst in
thomhurst/TUnit#7014
* chore(deps): update dependency imposter to 0.2.7 by @​thomhurst in
thomhurst/TUnit#7016
* chore(deps): update dependency nunit3testadapter to 6.3.1 by
@​thomhurst in thomhurst/TUnit#7015
* chore(deps): update verify to 33.3.3 by @​thomhurst in
thomhurst/TUnit#7019
* chore(deps): update dependency imposter to 0.2.8 by @​thomhurst in
thomhurst/TUnit#7020
* chore(deps): update dependency imposter to 0.2.10 by @​thomhurst in
thomhurst/TUnit#7021
* chore(deps): update dependency
fluentvalidation.dependencyinjectionextensions to 12.2.0 by @​thomhurst
in thomhurst/TUnit#7022
* chore(deps): update dependency imposter to 0.2.11 by @​thomhurst in
thomhurst/TUnit#7023
* chore(deps): update dependency imposter to 0.2.12 by @​thomhurst in
thomhurst/TUnit#7024
* chore(deps): update dependency imposter to 0.2.14 by @​thomhurst in
thomhurst/TUnit#7025
* chore(deps): update dependency imposter to 0.2.17 by @​thomhurst in
thomhurst/TUnit#7031


**Full Changelog**:
thomhurst/TUnit@v1.73.19...v1.74.0

Commits viewable in [compare
view](thomhurst/TUnit@v1.73.19...v1.74.0).
</details>

Updated [TUnit.AspNetCore](https://github.com/thomhurst/TUnit) from
1.73.19 to 1.74.0.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit.AspNetCore's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.74.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.74.0 -->

## What's Changed
### Other Changes
* fix(mocks): eliminate trim/AOT warnings on Native AOT publish by
@​thomhurst in thomhurst/TUnit#7029
* feat(engine): raise thread pool minimum when blocking tests starve the
pool by @​thomhurst in thomhurst/TUnit#7030
* feat(mocks): add ClearCalls, PassThrough toggle and
string/type/reference matchers by @​Quattordici in
thomhurst/TUnit#7018
### Dependencies
* chore(deps): update tunit to 1.73.19 by @​thomhurst in
thomhurst/TUnit#7008
* chore(deps): update dependency imposter to 0.2.5 by @​thomhurst in
thomhurst/TUnit#7010
* chore(deps): update dependency mockolate to 3.6.0 by @​thomhurst in
thomhurst/TUnit#7011
* chore(deps): update dependency imposter to 0.2.6 by @​thomhurst in
thomhurst/TUnit#7012
* chore(deps): update dependency stackexchange.redis to 3.4.0 by
@​thomhurst in thomhurst/TUnit#7013
* chore(deps): update xunit by @​thomhurst in
thomhurst/TUnit#7014
* chore(deps): update dependency imposter to 0.2.7 by @​thomhurst in
thomhurst/TUnit#7016
* chore(deps): update dependency nunit3testadapter to 6.3.1 by
@​thomhurst in thomhurst/TUnit#7015
* chore(deps): update verify to 33.3.3 by @​thomhurst in
thomhurst/TUnit#7019
* chore(deps): update dependency imposter to 0.2.8 by @​thomhurst in
thomhurst/TUnit#7020
* chore(deps): update dependency imposter to 0.2.10 by @​thomhurst in
thomhurst/TUnit#7021
* chore(deps): update dependency
fluentvalidation.dependencyinjectionextensions to 12.2.0 by @​thomhurst
in thomhurst/TUnit#7022
* chore(deps): update dependency imposter to 0.2.11 by @​thomhurst in
thomhurst/TUnit#7023
* chore(deps): update dependency imposter to 0.2.12 by @​thomhurst in
thomhurst/TUnit#7024
* chore(deps): update dependency imposter to 0.2.14 by @​thomhurst in
thomhurst/TUnit#7025
* chore(deps): update dependency imposter to 0.2.17 by @​thomhurst in
thomhurst/TUnit#7031


**Full Changelog**:
thomhurst/TUnit@v1.73.19...v1.74.0

Commits viewable in [compare
view](thomhurst/TUnit@v1.73.19...v1.74.0).
</details>

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 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Oct 13, 2026

This branch was successfully deployed

1 active deployment
Pull Requests — 460bf2f9 Deployed Oct 9, 2026 by thomhurst via modularpipeline (macos-latest) #19792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file PATCH renovate-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants