Releases: mingyaulee/Blazor.BrowserExtension
Releases · mingyaulee/Blazor.BrowserExtension
v1.3.0
- Refactored content replacement to include all
.css
,.js
,.json
and.html
files from consuming project and RCLs automatically. - Implemented a proxy for IJSRuntime courtesy of Blazor.JsRuntimeRedirect to intercept calls to
import
from RCL.
The two improvements above should fully resolve #43.
The first point above now allows theindex.html
to revert back to<script src="_framework/blazor.webassembly.js"></script>
. New projects do not need to change any code in theindex.html
file, and thus it is removed from the bootstrap process.
- Optimized compression for build and publish. The GZip compression is now completely skipped.
Full Changelog: v1.2.4...v1.3.0
v1.2.4
Refactored build targets to improve build and publish time.
Full Changelog: v1.2.3...v1.2.4
v1.2.3
_Imports.razor
is now bootstrapped to include@using Blazor.BrowserExtension.Pages
-
is now included automatically and can be removed from the
<ItemGroup> <None Include="wwwroot\**\*" CopyToOutputDirectory="Always" /> </ItemGroup>
.csproj
project file
Full Changelog: v1.2.2...v1.2.3
v1.2.2
- Fixed build target ProcessBlazorToBrowserExtensionPublishFiles skipped in .Net 8 when publishing
- Fixed resources cannot be loaded when published with compression enabled
Full Changelog: v1.2.1...v1.2.2
v1.2.1
- Fixed build error if scoped css does not exist
Full Changelog: v1.2.0...v1.2.1
v1.2.0
- Added new
UseBrowserExtension
extension method for registration of root components - Updated build package dependencies
Full Changelog: v1.1.3...v1.2.0
Upgrade guide for project without content scripts
Program.cs
can be changed fromtobuilder.RootComponents.Add<App>("#app"); builder.RootComponents.Add<HeadOutlet>("head::after"); builder.Services.AddBrowserExtensionServices();
builder.UseBrowserExtension(browserExtension => { builder.RootComponents.Add<App>("#app"); builder.RootComponents.Add<HeadOutlet>("head::after"); });
Upgrade guide for project with content scripts
index.html
div container ID can be changed back to#app
App.razor
can be changed back to just the router component without the condition check for content scripts.Program.cs
can be changed fromtobuilder.RootComponents.Add<App>("#My_Unique_Extension_App_Id"); builder.Services.AddBrowserExtensionServices();
builder.UseBrowserExtension(browserExtension => { if (browserExtension.Mode == BrowserExtensionMode.ContentScript) { builder.RootComponents.Add<ContentScript>("#My_Unique_Extension_App_Id"); } else { builder.RootComponents.Add<App>("#app"); builder.RootComponents.Add<HeadOutlet>("head::after"); } });
v1.1.3
- Fixed JavaScript library module initializer static web assets traits
Full Changelog: v1.1.2...v1.1.3
v1.1.2
- Updated dependencies for build tasks
- Fixed NuGet package to have the correct paths for JavaScript libraries
Full Changelog: v1.1.0...v1.1.2
v1.1.0
- Migrated Core.Js to JavaScript Module Initializer
How to upgrade to this version
- Migrate your
app.js
to JS module initializers, refer to README. BlazorBrowserExtension.StartBlazorBrowserExtension
andBlazorBrowserExtension.BrowserExtension.InitializeAsync
is deprecated and will be removed in the future major version bump. Implement inapp.js
JS module initializer instead.- Core.js is deprecated and will be removed in the future major version bump. Change it back to 'framework/blazor.webassembly.js' in the script tag.
Full Changelog: v1.0.1...v1.1.0
v1.0.1
Breaking changes
- Dependencies updated to stable .Net 8 versions
- WebExtensions.Net updated to stable version with breaking changes
- JsBind.Net updated to stable version
- Brotli decode JS updated to latest version
- Fixed dotnet template .Net 8 support
Full Changelog: v0.12.2...v1.0.1