Skip to content

Commit de625c0

Browse files
committed
Updated CHANGELOG.md for 1.3.42 release
1 parent b1b3e63 commit de625c0

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

CHANGELOG.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,61 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
## [1.3.42] - 2021-11-09
10+
911
This release includes support for .NET 6, with support for all new features in Blazor with that release. There are also a number of additions and fixes, all listed below.
1012

1113
Big shout out to **bUnit's sponsors** who helped make this release happen.
1214

1315
**The higher tier sponsors are:**
1416

15-
- [Progress Telerik](https://github.com/Progress-Telerik)
16-
- [Syncfusion](https://github.com/syncfusion)
17+
- [Progress Telerik](https://github.com/Progress-Telerik)
18+
- [Syncfusion](https://github.com/syncfusion)
1719

1820
**Other sponsors are:**
1921

20-
- [Hassan Rezk Habib (@Garderoben)](https://github.com/hassanhabib)
21-
- [Jonny Larsson (@Garderoben)](https://github.com/Garderoben)
22-
- [Domn Werner (@domn1995)](https://github.com/domn1995)
23-
- [Mladen Macanović (@stsrki)](https://github.com/stsrki)
24-
- [@ChristopheDEBOVE](https://github.com/ChristopheDEBOVE)
22+
- [Hassan Rezk Habib (@Garderoben)](https://github.com/hassanhabib)
23+
- [Jonny Larsson (@Garderoben)](https://github.com/Garderoben)
24+
- [Domn Werner (@domn1995)](https://github.com/domn1995)
25+
- [Mladen Macanović (@stsrki)](https://github.com/stsrki)
26+
- [@ChristopheDEBOVE](https://github.com/ChristopheDEBOVE)
2527

2628
### Added
2729

2830
List of added functionality in this release.
2931

30-
- Added support for writing tests of components that use the `<FocusOnNavigate>` component included in .NET 6. This includes an assertion helper method `VerifyFocusOnNavigateInvoke` on bUnit's `JSInterop` that allow you to verify that `<FocusOnNavigate>` has set focus on an element during render. For example, to verify that `h1` selector was used to pick an element to focus on, do:
31-
32-
```csharp
33-
// <App /> component uses <FocusOnNavigate>
34-
var cut = RenderComponent<App>();
32+
- Added support for writing tests of components that use the `<FocusOnNavigate>` component included in .NET 6. This includes an assertion helper method `VerifyFocusOnNavigateInvoke` on bUnit's `JSInterop` that allow you to verify that `<FocusOnNavigate>` has set focus on an element during render. For example, to verify that `h1` selector was used to pick an element to focus on, do:
3533

36-
// Verifies that <FocusOnNavigate> called it's JavaScript function
37-
var invocation = JSInterop.VerifyFocusOnNavigateInvoke();
34+
```csharp
35+
// <App /> component uses <FocusOnNavigate>
36+
var cut = RenderComponent<App>();
3837

39-
// Verify that the invocation of <FocusOnNavigate> JavaScript function included the "h1" as the selector
40-
Assert.Equal("h1", invocation.Arguments[0]);
41-
```
38+
// Verifies that <FocusOnNavigate> called it's JavaScript function
39+
var invocation = JSInterop.VerifyFocusOnNavigateInvoke();
4240

43-
By [@egil](https://github.com/egil).
41+
// Verify that the invocation of <FocusOnNavigate> JavaScript function included the "h1" as the selector
42+
Assert.Equal("h1", invocation.Arguments[0]);
43+
```
4444

45-
- Added fake version of the `PersistentComponentState` type in Blazor that makes it possible to test components that use the type. By [@egil](https://github.com/egil).
45+
By [@egil](https://github.com/egil).
4646
47-
- Added `TriggerEvent` method to make it easier to trigger custom events. By [@egil](https://github.com/egil).
47+
- Added fake version of the `PersistentComponentState` type in Blazor that makes it possible to test components that use the type. By [@egil](https://github.com/egil).
4848
49-
- Added `History` capture in the `FakeNavigationManager`. By [@egil](https://github.com/egil).
49+
- Added `TriggerEvent` method to make it easier to trigger custom events. By [@egil](https://github.com/egil).
5050
51-
- Added new bUnit component mocking library, available via NuGet as `bunit.web.mock`. It is currently in preview and the features/APIs of it will change!
51+
- Added `History` capture in the `FakeNavigationManager`. By [@egil](https://github.com/egil).
52+
53+
- Added new bUnit component mocking library, available via NuGet as `bunit.web.mock`. It is currently in preview and the features/APIs of it will change!
5254

5355
### Fixed
5456

55-
- The `Click` and `DoubleClick` extension methods now set the `MouseEventArgs.Detail` property to `1` and `2` respectively by default, unless the user specifies something else. This makes the methods more correctly emulate how Blazor reports single or double clicks on an element in the browser. Thanks to [@David-Moreira](https://github.com/David-Moreira) for the help troubleshooting this issue. By [@egil](https://github.com/egil).
57+
- The `Click` and `DoubleClick` extension methods now set the `MouseEventArgs.Detail` property to `1` and `2` respectively by default, unless the user specifies something else. This makes the methods more correctly emulate how Blazor reports single or double clicks on an element in the browser. Thanks to [@David-Moreira](https://github.com/David-Moreira) for the help troubleshooting this issue. By [@egil](https://github.com/egil).
5658
57-
- `FocusAsync()` method handler on `ElementReference` and `<FocusOnNavigate>` js handler return completed `Task`. By [@anddrzejb](https://github.com/anddrzejb).
59+
- `FocusAsync()` method handler on `ElementReference` and `<FocusOnNavigate>` js handler return completed `Task`. By [@anddrzejb](https://github.com/anddrzejb).
5860
59-
- Fixes handling of disposed event handlers of bubbling events. See issue [#518](https://github.com/bUnit-dev/bUnit/issues/518) for details. Thanks to [@David-Moreira](https://github.com/David-Moreira) for helping debug this issue.
61+
- Fixes handling of disposed event handlers of bubbling events. See issue [#518](https://github.com/bUnit-dev/bUnit/issues/518) for details. Thanks to [@David-Moreira](https://github.com/David-Moreira) for helping debug this issue.
6062
61-
- Async event trigger methods are not public. In most circumstances you do not need to use them, but if you have a scenario where you want to check that something has not happened after an event handler was triggered, then you can use the async methods and await them to know when they are completed. See [#552](https://github.com/bUnit-dev/bUnit/discussions/552) for details. By [@egil](https://github.com/egil).
63+
- Async event trigger methods are not public. In most circumstances you do not need to use them, but if you have a scenario where you want to check that something has not happened after an event handler was triggered, then you can use the async methods and await them to know when they are completed. See [#552](https://github.com/bUnit-dev/bUnit/discussions/552) for details. By [@egil](https://github.com/egil).
6264
6365
## [1.2.49] - 2021-08-09
6466

@@ -1044,7 +1046,9 @@ The latest version of the library is availble on NuGet:
10441046
- **Wrong casing on keyboard event dispatch helpers.**
10451047
The helper methods for the keyboard events was not probably cased, so that has been updated. E.g. from `Keypress(...)` to `KeyPress(...)`.
10461048

1047-
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.2.49...HEAD
1049+
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.3.42...HEAD
1050+
1051+
[1.3.42]: https://github.com/bUnit-dev/bUnit/compare/v1.2.49...v1.3.42
10481052
10491053
[1.2.49]: https://github.com/bUnit-dev/bUnit/compare/v1.1.5...v1.2.49
10501054

0 commit comments

Comments
 (0)