Skip to content

Commit

Permalink
Updated CHANGELOG.md for 1.8.15 release
Browse files Browse the repository at this point in the history
  • Loading branch information
bUnitBot committed May 19, 2022
1 parent 1f807f0 commit 604c96f
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@ All notable changes to **bUnit** will be documented in this file. The project ad

## [Unreleased]

## [1.8.15] - 2022-05-19

### Added
- Added test helpers that make it much easier to pass files to the `InputFile` component. Learn more [in the documentation](https://bunit.dev/docs/test-doubles/input-file). By [@egil](https://github.com/egil) and [@linkdotnet](https://github.com/linkdotnet).

- Added test helpers that make it much easier to pass files to the `InputFile` component. Learn more [in the documentation](https://bunit.dev/docs/test-doubles/input-file). By [@egil](https://github.com/egil) and [@linkdotnet](https://github.com/linkdotnet).

### Changed

- `Htmlizer` uses `StringBuilder` instead of `List<string>` to reduce allocations and improve render speed. By [@linkdotnet](https://github.com/linkdotnet).
- `Htmlizer` uses `StringBuilder` instead of `List<string>` to reduce allocations and improve render speed. By [@linkdotnet](https://github.com/linkdotnet).

### Fixes

- `TestServiceProvider` now implements `IAsyncDisposable`. This means `TestContext.Dispose()` now calls the async disposable method as well as the non-async version on the service provider. It does however not block or await the task returned, since that can lead to deadlocks.

To await the disposal of async services registered in the `TestContext.Services` container, do the following:
- `TestServiceProvider` now implements `IAsyncDisposable`. This means `TestContext.Dispose()` now calls the async disposable method as well as the non-async version on the service provider. It does however not block or await the task returned, since that can lead to deadlocks.

1. Create a new type that derives from `TestContext` and which implement `IAsyncDisposable`.
2. In the `DisposeAsync()` method, call `Services.DisposeAsync()`.
3. Override the `Dispose` and have it only call `Services.Dispose()`.
To await the disposal of async services registered in the `TestContext.Services` container, do the following:

Reported by [@vedion](https://github.com/vedion) and fixed by [@egil](https://github.com/egil).
1. Create a new type that derives from `TestContext` and which implement `IAsyncDisposable`.
2. In the `DisposeAsync()` method, call `Services.DisposeAsync()`.
3. Override the `Dispose` and have it only call `Services.Dispose()`.

Reported by [@vedion](https://github.com/vedion) and fixed by [@egil](https://github.com/egil).

## [1.7.7] - 2022-04-29

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

[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.7.7...HEAD
[Unreleased]: https://github.com/bUnit-dev/bUnit/compare/v1.8.15...HEAD
[1.8.15]: https://github.com/bUnit-dev/bUnit/compare/v1.7.7...v1.8.15
[1.7.7]: https://github.com/bUnit-dev/bUnit/compare/v1.6.4...v1.7.7
Expand Down

0 comments on commit 604c96f

Please sign in to comment.