Blazor.BrowserExtension

Build browser extensions easily with Blazor.

MIT License

Stars
330
Committers
6

Bot releases are hidden (Show)

Blazor.BrowserExtension - v2.0.0

Published by mingyaulee about 1 month ago

Breaking changes

WebExtensions.Net updated to v3.0.0

  • APIs are now synchronous whenever possible

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.5.4...v2.0.0

Blazor.BrowserExtension - v1.5.4

Published by mingyaulee 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.5.3...v1.5.4

Blazor.BrowserExtension - v1.5.3

Published by mingyaulee 2 months ago

  • Fixed background worker not running in Firefox background page (#168)

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.5.2...v1.5.3

Blazor.BrowserExtension - v1.5.2

Published by mingyaulee 4 months ago

  • Allow explicit inclusion of statically imported scripts from RCL packages

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.5.1...v1.5.2

Blazor.BrowserExtension - v1.5.1

Published by mingyaulee 4 months ago

  • Fixed build failure when generated background worker file does not exist.
  • Logging methods are now supported in source generator.

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.5.0...v1.5.1

Blazor.BrowserExtension - v1.5.0

Published by mingyaulee 4 months ago

Feature

Initial support for generating BackgroundWorker.js from C# code is here! Refer to the documentation page for more details.

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.4.3...v1.5.0

Blazor.BrowserExtension - v1.4.3

Published by mingyaulee 4 months ago

  • Fixed #147 for import paths starting with '/'

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.4.2...v1.4.3

Blazor.BrowserExtension - v1.4.2

Published by mingyaulee 4 months ago

  • Fixed #147 to use extension base URL when running import in content script mode

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.4.1...v1.4.2

Blazor.BrowserExtension - v1.4.1

Published by mingyaulee 5 months ago

  • Fixed static web assets not found when debugging app (#145)

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.4.0...v1.4.1

Blazor.BrowserExtension - v1.4.0

Published by mingyaulee 5 months ago

  • Updated JsBind.Net from v1.0.1 to v1.0.2 and WebExtensions.Net from v2.0.0 to v2.1.0
  • Updated webextension browser polyfill from v0.10.0 to v0.12.0
  • Updated Brotli decode JS
  • New package icon
  • Read from .Net 8 CompressionEnabled build flag apart from older BlazorEnableCompression
  • Improved publish to remove unnecessary files

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.3.0...v1.4.0

Blazor.BrowserExtension - v1.3.0 Latest Release

Published by mingyaulee 6 months ago

  • 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: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.2.4...v1.3.0

Blazor.BrowserExtension - v1.2.4

Published by mingyaulee 7 months ago

Refactored build targets to improve build and publish time.

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.2.3...v1.2.4

Blazor.BrowserExtension - v1.2.3

Published by mingyaulee 7 months ago

  • _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: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.2.2...v1.2.3

Blazor.BrowserExtension - v1.2.2

Published by mingyaulee 8 months ago

  • Fixed build target ProcessBlazorToBrowserExtensionPublishFiles skipped in .Net 8 when publishing
  • Fixed resources cannot be loaded when published with compression enabled

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.2.1...v1.2.2

Blazor.BrowserExtension - v1.2.1

Published by mingyaulee 8 months ago

  • Fixed build error if scoped css does not exist

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.2.0...v1.2.1

Blazor.BrowserExtension - v1.2.0

Published by mingyaulee 8 months ago

  • Added new UseBrowserExtension extension method for registration of root components
  • Updated build package dependencies

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/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");
        }
    });
    
Blazor.BrowserExtension - v1.1.3

Published by mingyaulee 8 months ago

  • Fixed JavaScript library module initializer static web assets traits

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.1.2...v1.1.3

Blazor.BrowserExtension - v1.1.2

Published by mingyaulee 8 months ago

  • Updated dependencies for build tasks
  • Fixed NuGet package to have the correct paths for JavaScript libraries

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.1.0...v1.1.2

Blazor.BrowserExtension - v1.1.0

Published by mingyaulee 9 months ago

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: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v1.0.1...v1.1.0

Blazor.BrowserExtension - v1.0.1

Published by mingyaulee 9 months ago

Breaking changes

Full Changelog: https://github.com/mingyaulee/Blazor.BrowserExtension/compare/v0.12.2...v1.0.1

Package Rankings
Top 9.63% on Proxy.golang.org
Badges
Extracted from project README
Nuget GitHub Workflow Status Sonar Quality Gate
Related Projects