Skip to content

Bump Alba from 8.5.3 to 9.0.0 - #444

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/Alba-9.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/Alba-9.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updated Alba from 8.5.3 to 9.0.0.

Release notes

Sourced from Alba's releases.

9.0.0

This is a significant release, we recommend reading through the release notes and check out the new docs: https://jasperfx.github.io/alba/

Blog posts:
https://hawx.dev/blog/everything-new-in-alba-v9/
https://jasperfx.net/news/alba-9

Breaking changes

.NET 10 is required

Alba now targets net10.0 and net11.0; support for .NET 8 and .NET 9 is dropped. Applications
under test must run on .NET 10 or later.

BeforeEachAsync now receives the Scenario and runs before the request

IAlbaHost.BeforeEachAsync changed from Func<HttpContext, Task> to Func<Scenario, Task>. In
Alba 8 the hook received the HttpContext and was executed by blocking a thread inside the test
server; it is now properly awaited before the HTTP request executes.

If your hook touched the HttpContext, do the asynchronous work first, then apply the result to
the outgoing request:

// Alba 8
host.BeforeEachAsync(async context =>
{
    var token = await FetchTokenAsync();
    context.SetBearerToken(token);
});

// Alba 9
host.BeforeEachAsync(async scenario =>
{
    var token = await FetchTokenAsync();
    scenario.WithBearerToken(token);
});

For arbitrary context mutations, register a callback with scenario.ConfigureHttpContext(...).

Ordering: all asynchronous BeforeEachAsync actions run first (in registration order), then all
synchronous BeforeEach actions (in registration order). In Alba 8 the two kinds interleaved in
registration order.

Synchronous bootstrapping removed

The new AlbaHost(IHostBuilder) constructor, the StartAlba() extension method, and the
synchronous AlbaHost.For(Action<IWebHostBuilder>) overload are removed. Bootstrapping is
asynchronous only:

... (truncated)

9.0.0-rc.3

What's Changed

Full Changelog: https://github.com/JasperFx/alba/blob/master/v9_CHANGELOG.md

9.0.0-rc.2

What's Changed

New Contributors

Full Changelog: https://github.com/JasperFx/alba/blob/master/v9_CHANGELOG.md

9.0.0-beta.1

This is the first beta release of the v9 branch with the majority of intended breaking changes.

See the v9_CHANGELOG for the current WIP release notes.

Please open an issue if something is broken/missing.

Commits viewable in compare view.

Dependabot compatibility score

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

---
updated-dependencies:
- dependency-name: Alba
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added chore Maintenance tasks, cleanup, refactoring, or non-functional repository upkeep dependencies Items related to project dependencies or dependency updates. labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks, cleanup, refactoring, or non-functional repository upkeep dependencies Items related to project dependencies or dependency updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants