Skip to content

Commit

Permalink
Merge branch 'releases/v0.23'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Nov 6, 2023
2 parents d47a7d6 + a8a866a commit f58fc0a
Show file tree
Hide file tree
Showing 17 changed files with 306 additions and 139 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"nbgv": {
"version": "3.4.231",
"version": "3.6.133",
"commands": [
"nbgv"
]
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100-preview.7.23376.3'
dotnet-version: '8.0.100-rc.2.23502.2'

- name: NuGet cache
uses: actions/cache@v1
Expand All @@ -32,6 +32,9 @@ jobs:
if echo "${{github.ref}}" | grep -q "^refs/heads/"; then
git checkout "$(echo ${{github.ref}} | sed -E 's|^refs/heads/||')";
fi
# .NET 8 RC2 has a bug where it restores the wrong version of tools...
dotnet tool update paket --version 8.0.0-alpha002
dotnet tool update nbgv --version 3.6.133
# Ensure that the selenium chrome driver matches the installed chrome
./build.ps1 -t update-chromedriver
# Build
Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100-preview.7.23376.3'
dotnet-version: '8.0.100-rc.2.23502.2'

- name: Download nupkg
uses: actions/download-artifact@v1
Expand All @@ -83,7 +86,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100-preview.7.23376.3'
dotnet-version: '8.0.100-rc.2.23502.2'

- name: Prepare
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.100'
dotnet-version: '8.0.100-rc.2.23502.2'

- name: Download nupkg
uses: dawidd6/action-download-artifact@v2
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Changelog

## 0.23

* [#308](https://github.com/fsbolero/Bolero/issues/308) Add router functions to decide what to do when the URL is invalid.

* `Router.withNotFound` takes an endpoint to redirect to, and applies to a `Router<_, _, _>` (ie. an inferred router).

* `Router.withNotFoundMsg` takes an Elmish message to send, and applies to any `IRouter<_, _>` (including manual routers).

These functions apply when the initial URL is invalid, or when the URL is programmatically changed to be invalid.
They do not apply when the user clicks a link to an invalid URL, in order to allow external links.

* [#309](https://github.com/fsbolero/Bolero/issues/309) Add support for query parameters in inferred routing with `EndPointAttribute`.

* `?paramName={fieldName}` adds query parameter `paramName` corresponding to the union field named `fieldName`. This parameter is mandatory if `fieldName` is a string, boolean or number, and optional if it is an option or voption of these types.

* `?{paramName}` is short for `?paramName={paramName}`.

* [#313](https://github.com/fsbolero/Bolero/issues/313) Improve C# compatibility of server-side APIs.
For the following extension methods:

* `IServiceCollection.AddBoleroHost`
* `IServiceCollection.AddBoleroRouting`
* `IEndpointRouteBuilder.MapFallbackToBolero`

The following changes are applied:

* Optional arguments are changed from F#-style to C#-style. This is a source breaking change for callers who use explicit syntax `?argument = optionValue`.
* Function arguments are changed from F#-style functions to C#-style `Func` or `Action`.

* [#315](https://github.com/fsbolero/Bolero/issues/315) Support adding hash component to routing URLs:

* Manually adding `+ "#foo"` to a routed URL will correctly scroll to the element named `foo` in the target page.

* Methods `IRouter.Link` and `IRouter.HRef` take a new optional argument `hash: string` to link to the corresponding `#hash` in the target page.

* [#316](https://github.com/fsbolero/Bolero/issues/316) Fix `on.stopPropagation` and `on.preventDefault` to take event names without the `on` prefix, for consistency with `on.event`.

* [#317](https://github.com/fsbolero/Bolero/issues/317) Fix .NET 8 compatibility of the MSBuild task for scoped CSS.

* [#317](https://github.com/fsbolero/Bolero/issues/317) Fix .NET 8 compatibility of the server-side rendering of nodes.

* [#323](https://github.com/fsbolero/Bolero/issues/323) Use `WheelEventArgs` for wheel events and `ErrorEventArgs` for `on.error`.

## 0.22

* [#289](https://github.com/fsbolero/Bolero/issues/289) Add endpoint routing for remote services.
Expand Down
5 changes: 3 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"version": "8.0.100-preview.7.23376.3",
"rollForward": "latestFeature"
"version": "8.0.100-rc.2.23502.2",
"rollForward": "feature",
"allowPrerelease": true
}
}
20 changes: 13 additions & 7 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ source https://api.nuget.org/v3/index.json
storage: none
framework: net8.0

nuget Microsoft.AspNetCore.Components.Web >= 8.0 preview
nuget Elmish >= 4.0.1 < 5.0 lowest_matching: true
nuget Microsoft.AspNetCore.Components.WebAssembly >= 8.0.0-rc.2.23480.2
nuget Microsoft.JSInterop.WebAssembly >= 8.0.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.Web >= 8.0.0-rc.2.23480.2
nuget Microsoft.Extensions.Http >= 8.0.0-rc.2.23479.6
nuget FSharp.SystemTextJson >= 0.19.13
nuget System.Text.Json >= 8.0.0-rc.2.23479.6

group build
source https://api.nuget.org/v3/index.json
Expand Down Expand Up @@ -84,9 +90,9 @@ source https://api.nuget.org/v3/index.json
storage: none
framework: net8.0

nuget Microsoft.AspNetCore.OpenApi ~> 8.0 preview
nuget Microsoft.AspNetCore.Components.Authorization ~> 8.0 preview
nuget Microsoft.AspNetCore.Components.WebAssembly ~> 8.0 preview
nuget Microsoft.AspNetCore.Components.WebAssembly.Authentication ~> 8.0 preview
nuget Microsoft.AspNetCore.Components.WebAssembly.DevServer ~> 8.0 preview
nuget Microsoft.AspNetCore.Components.WebAssembly.Server ~> 8.0 preview
nuget Microsoft.AspNetCore.OpenApi ~> 8.0.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.Authorization ~> 8.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.WebAssembly ~> 8.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.WebAssembly.Authentication ~> 8.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.WebAssembly.DevServer ~> 8.0-rc.2.23480.2
nuget Microsoft.AspNetCore.Components.WebAssembly.Server ~> 8.0-rc.2.23480.2
Loading

0 comments on commit f58fc0a

Please sign in to comment.