Skip to content

Commit 06a3ef3

Browse files
committed
Merge branch 'stable'
2 parents f19e38c + 88c4a73 commit 06a3ef3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/site/docs/migrations/1to2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ title: Migrating from 1.x to 2.x
44
---
55

66
# Migrating from bUnit 1.x to 2.x
7-
This document describes the changes made in bUnit 2.x that may affect existing tests written for bUnit 1.x. The old documentation for bUnit 1.x is available at: https://v1.bunit.dev.
7+
This document describes the changes made in bUnit 2.x that may affect existing tests written for bUnit 1.x. The old documentation for bUnit 1.x is available at: https://v1.bunit.dev.
88

99
## One package to rule them all
10-
`bunit.core` and `bunit.web` have be merged into a single package called `bunit`. The seperation was used to allow for extensibitlity, which isn't used anymore. Therefore `bunit.core` and `bunit.web` will stay on version 1.x, while `bunit` will be the only package going forward. To migrate, simply remove the `bunit.core` and `bunit.web` packages and add the `bunit` package. We don't expect many users to have used the `bunit.core` or `bunit.web` package directly, but may hit 3rd party packages that depend on them.
10+
`bunit.core` and `bunit.web` have been merged into a single package called `bunit`. The separation was used to allow for extensibility, which isn't used anymore. Therefore `bunit.core` and `bunit.web` will stay on version 1.x, while `bunit` will be the only package going forward. To migrate, simply remove the `bunit.core` and `bunit.web` packages and add the `bunit` package. We don't expect many users to have used the `bunit.core` or `bunit.web` package directly, but may hit 3rd party packages that depend on them.
1111

1212
## `TestContext` renamed to `BunitContext`
1313

@@ -26,8 +26,8 @@ The `Fake` prefix used for various fake implementations has been renamed to `Bun
2626
* `FakeNavigationManager` to `BunitNavigationManager`
2727
* `FakeJSRuntime` to `BunitJSRuntime`
2828
* `FakeAuthenticationStateProvider` to `BunitAuthenticationStateProvider`
29-
* `FakeAuthrozitationContext` to `BunitAuthorizationContext`
30-
* `FakeuthorizationPolicyProvider` to `BunitAuthorizationPolicyProvider`
29+
* `FakeAuthorizationContext` to `BunitAuthorizationContext`
30+
* `FakeAuthorizationPolicyProvider` to `BunitAuthorizationPolicyProvider`
3131

3232
## Unified the `Render` methods
3333
In v1 there were multiple `RenderXXX`methods (like `RenderComponent`, `Render` and `SetParametersAndRender`) that were used to render components and markup. In v2, these methods have been unified into a single `Render` method that can handle both components and markup) via the simple `Render` method:
@@ -89,7 +89,7 @@ The `DisposeComponents` method has been renamed to `DisposeComponentsAsync` and
8989
+ await DisposeComponentsAsync();
9090
```
9191

92-
## The `ComponentParameterFactory` and `ComponentParameter` has been removed
92+
## The `ComponentParameterFactory` and `ComponentParameter` has been removed
9393
The `ComponentParameterFactory` class has been removed (and therefore the usage of `ComponentParameter`).
9494
Instead, use the `Render` method (and its overloads) to pass parameters to components.
9595

0 commit comments

Comments
 (0)