Skip to content

Releases: mingyaulee/Blazor.BrowserExtension

v1.3.0

14 Apr 20:37
Compare
Choose a tag to compare
  • 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 the index.html to revert back to <script src="_framework/blazor.webassembly.js"></script>. New projects do not need to change any code in the index.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

09 Apr 22:50
26f463d
Compare
Choose a tag to compare

Refactored build targets to improve build and publish time.

Full Changelog: v1.2.3...v1.2.4

v1.2.3

20 Mar 09:41
Compare
Choose a tag to compare
  • _Imports.razor is now bootstrapped to include @using Blazor.BrowserExtension.Pages
  • <ItemGroup>
     <None Include="wwwroot\**\*" CopyToOutputDirectory="Always" />
    </ItemGroup>
    is now included automatically and can be removed from the .csproj project file

Full Changelog: v1.2.2...v1.2.3

v1.2.2

05 Mar 15:39
Compare
Choose a tag to compare
  • 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

02 Mar 13:52
Compare
Choose a tag to compare
  • Fixed build error if scoped css does not exist

Full Changelog: v1.2.0...v1.2.1

v1.2.0

22 Feb 19:55
Compare
Choose a tag to compare
  • 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 from
    builder.RootComponents.Add<App>("#app");
    builder.RootComponents.Add<HeadOutlet>("head::after");
    builder.Services.AddBrowserExtensionServices();
    to
    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 from
    builder.RootComponents.Add<App>("#My_Unique_Extension_App_Id");
    builder.Services.AddBrowserExtensionServices();
    to
    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

13 Feb 15:13
Compare
Choose a tag to compare
  • Fixed JavaScript library module initializer static web assets traits

Full Changelog: v1.1.2...v1.1.3

v1.1.2

13 Feb 09:45
Compare
Choose a tag to compare
  • 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

01 Feb 09:00
Compare
Choose a tag to compare

How to upgrade to this version

  • Migrate your app.js to JS module initializers, refer to README.
  • BlazorBrowserExtension.StartBlazorBrowserExtension and BlazorBrowserExtension.BrowserExtension.InitializeAsync is deprecated and will be removed in the future major version bump. Implement in app.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

30 Jan 22:32
Compare
Choose a tag to compare

Breaking changes

Full Changelog: v0.12.2...v1.0.1