Skip to content

Releases: BattlefieldDuck/XtermBlazor

v2.1.2

18 Sep 06:37
Compare
Choose a tag to compare

What's Changed

  • Change customKeyEventHandler.call to pass the terminal as thisArgs by @Hastaroth1 in #59
  • Bump esbuild-loader from 4.2.0 to 4.2.2 in /XtermBlazor/src by @dependabot in #52
  • Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 8.0.3 to 8.0.7 in /XtermBlazor by @dependabot in #53
  • Bump typescript from 5.5.3 to 5.6.2 in /XtermBlazor/src by @dependabot in #60
  • Bump mini-css-extract-plugin from 2.9.0 to 2.9.1 in /XtermBlazor/src by @dependabot in #56

New Contributors

Full Changelog: v2.1.1...v2.1.2

v2.1.1

10 Jul 21:08
Compare
Choose a tag to compare

What's Changed

  • Bump mini-css-extract-plugin from 2.8.1 to 2.9.0 in /XtermBlazor/src by @dependabot in #38
  • Bump css-minimizer-webpack-plugin from 6.0.0 to 7.0.0 in /XtermBlazor/src by @dependabot in #39
  • Bump css-loader from 7.1.1 to 7.1.2 in /XtermBlazor/src by @dependabot in #40
  • Bump webpack from 5.91.0 to 5.92.1 in /XtermBlazor/src by @dependabot in #43
  • Bump esbuild-loader from 4.1.0 to 4.2.0 in /XtermBlazor/src by @dependabot in #42
  • Fix AttachCustomWheelEventHandler error in frontend. by @aaasoft in #48
  • Bump webpack-merge from 5.10.0 to 6.0.1 in /XtermBlazor/src by @dependabot in #46
  • Bump typescript from 5.4.5 to 5.5.3 in /XtermBlazor/src by @dependabot in #45
  • Bump braces from 3.0.2 to 3.0.3 in /XtermBlazor/src in the npm_and_yarn group by @dependabot in #49

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

16 Apr 07:05
Compare
Choose a tag to compare

Overview

  • Update xterm.js to 5.5.0
  • Add new opt-in RescaleOverlappingGlyphs option
  • Update dependencies

What's Changed

  • Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 8.0.2 to 8.0.3 in /XtermBlazor by @dependabot in #28
  • Bump Microsoft.AspNetCore.Components.WebAssembly and Microsoft.AspNetCore.Components.Web in /XtermBlazor by @dependabot in #27
  • Bump webpack from 5.90.3 to 5.91.0 in /XtermBlazor/src by @dependabot in #30
  • Bump typescript from 5.4.2 to 5.4.4 in /XtermBlazor/src by @dependabot in #32
  • Bump typescript from 5.4.4 to 5.4.5 in /XtermBlazor/src by @dependabot in #37
  • Bump css-loader from 6.10.0 to 7.1.1 in /XtermBlazor/src by @dependabot in #36
  • Bump @xterm/xterm from 5.4.0 to 5.5.0 in /XtermBlazor/src by @dependabot in #34

Full Changelog: v2.0.0...v2.1.0

v2.0.0

08 Mar 13:39
eaa3615
Compare
Choose a tag to compare

Overview

  • Update @xterm/xterm to v5.4.0
  • Support Input, AttachCustomWheelEventHandler and SetCustomWheelEventHandler
  • Rename AttachCustomKeyEventHandlerEvaluate to SetCustomKeyEventHandler

Improvements

  • Optimized XtermBlazor.min.css and XtermBlazor.min.js, significantly reducing their file sizes.
  • Enhanced the way addons are invoked, making it more efficient and user-friendly.

Upgrade to v2.0.0

This document provides instructions on how to upgrade your code to version 2.0.0.

Changes in HTML

Replace the stylesheet link in your HTML file as follows:

<!-- Before v2.0.0 -->
<link href="_content/XtermBlazor/XtermBlazor.css" rel="stylesheet" />

<!-- After v2.0.0 -->
<link href="_content/XtermBlazor/XtermBlazor.min.css" rel="stylesheet" />

The old xterm and xterm-* packages are now deprecated and will no longer be maintained.
Please use the new scoped @xterm/* packages instead.

<!-- Before v2.0.0 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm-addon-fit.min.js"></script>

<!-- After v2.0.0 (Blazor Server) -->
<script src="https://cdn.jsdelivr.net/npm/@@xterm/[email protected]/lib/addon-fit.min.js"></script>

<!-- After v2.0.0 (Blazor WebAssembly) -->
<script src="https://cdn.jsdelivr.net/npm/@xterm/[email protected]/lib/addon-fit.min.js"></script>
<!-- Before v2.0.0 -->
<script>XtermBlazor.registerAddons({"xterm-addon-fit": new FitAddon.FitAddon()});</script>

<!-- After v2.0.0 -->
<script>XtermBlazor.registerAddons({"addon-fit": new FitAddon.FitAddon()});</script>

Changes in Razor

Update your Razor file to reflect the following changes:

  <!-- Before v2.0.0 -->
- <Xterm @ref="_terminal" Options="_options" AddonIds="_addonIds" OnFirstRender="@OnFirstRender" />

  @code {
      private Xterm _terminal;
  
      private TerminalOptions _options = new TerminalOptions
      {
          CursorBlink = true,
          CursorStyle = CursorStyle.Bar,
      };
      
-     private string[] _addonIds = new string[]
      {
-         "xterm-addon-fit",
      };
      
      private async Task OnFirstRender()
      {
          // Invoke fit() function
-         await _terminal.InvokeAddonFunctionVoidAsync("xterm-addon-fit", "fit");
      }
  }

  <!-- After v2.0.0 -->
+ <Xterm @ref="_terminal" Options="_options" Addons="_addons" OnFirstRender="@OnFirstRender" />

  @code {
      private Xterm _terminal;
  
      private TerminalOptions _options = new TerminalOptions
      {
          CursorBlink = true,
          CursorStyle = CursorStyle.Bar,
      };

+     private HashSet<string> _addons = new HashSet<string>()
      {
+         "addon-fit",
      };

      private async Task OnFirstRender()
      {
          // Invoke fit() function
+         await _terminal.Addon("addon-fit").InvokeVoidAsync("fit");
      }
  }

Changes in C#

Update your C# code to reflect the following changes: (#22)

// Before v2.0.0
private async Task OnKey(KeyboardEventArgs args)
{
    
}

// After v2.0.0
private async Task OnKey(KeyEventArgs args)
{
    
}

What's Changed

  • Bump Microsoft.AspNetCore.Components.WebAssembly and Microsoft.AspNetCore.Components.Web in /XtermBlazor by @dependabot in #18
  • Add EventCallback with Key from Xterm by @PetterRein in #22
  • Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 8.0.1 to 8.0.2 in /XtermBlazor by @dependabot in #19
  • Bump typescript from 5.3.3 to 5.4.2 in /XtermBlazor/src by @dependabot in #24
  • Bump webpack from 5.90.1 to 5.90.3 in /XtermBlazor/src by @dependabot in #23
  • Bump Microsoft.AspNetCore.Components.WebAssembly and Microsoft.AspNetCore.Components.Web in /XtermBlazor by @dependabot in #25
  • Bump esbuild-loader from 4.0.3 to 4.1.0 in /XtermBlazor/src by @dependabot in #26

New Contributors

Full Changelog: v1.10.2...v2.0.0

v1.10.2

05 Feb 00:02
Compare
Choose a tag to compare

The main updates in the new version include adding Source Link, ContinuousIntegrationBuild, and webpack, as well as fixing some bugs and improving the performance of the terminal object and the addon function.

What's Changed

  • Bump webpack from 5.90.0 to 5.90.1 in /XtermBlazor by @dependabot in #17

Full Changelog: v1.10.1...v1.10.2

v1.10.1

29 Jan 17:28
d2c1700
Compare
Choose a tag to compare

Overview

In this release, we have expanded the compatibility of our project. Previously, our project was targeted for .NET 6.0. Now, we have updated our project to support multiple target frameworks.

The project now supports .NET 6.0, .NET 7.0, and .NET 8.0. This means that our project can now be run on any of these .NET versions, enhancing its versatility and reach.

What's Changed

  • Bump ts-loader from 9.4.4 to 9.5.1 in /XtermBlazor by @dependabot in #8
  • Bump webpack from 5.88.2 to 5.90.0 in /XtermBlazor by @dependabot in #10
  • Bump copy-webpack-plugin from 11.0.0 to 12.0.2 in /XtermBlazor by @dependabot in #13
  • Bump System.Net.Http.Json from 6.0.0 to 8.0.0 in /XtermBlazor by @dependabot in #9
  • Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 6.0.9 to 8.0.1 in /XtermBlazor by @dependabot in #11
  • Bump typescript from 5.1.5 to 5.3.3 in /XtermBlazor by @dependabot in #12
  • Bump ts-node from 10.9.1 to 10.9.2 in /XtermBlazor by @dependabot in #14
  • Bump Microsoft.AspNetCore.Components.WebAssembly from 6.0.9 to 6.0.26 in /XtermBlazor by @dependabot in #16

New Contributors

Full Changelog: v1.10.0...v1.10.1

v1.10.0

27 Sep 23:14
e4ba5d3
Compare
Choose a tag to compare
  • Update dependencies

Full Changelog: v1.9.0...v1.10.0

v1.9.0

28 Jun 19:34
Compare
Choose a tag to compare
  • Update dependencies

Full Changelog: v1.8.1...v1.9.0

v1.8.1

22 Mar 20:38
Compare
Choose a tag to compare
  • Fix OnFirstRender early invoked issue (#7)

Full Changelog: v1.8.0...v1.8.1

v1.8.0

22 Mar 13:57
Compare
Choose a tag to compare
  • Add Class and Style on Xterm element (#7)
  • Update dependencies

Full Changelog: v1.7.0...v1.8.0