KubeUI icon indicating copy to clipboard operation
KubeUI copied to clipboard

chore(deps): update dependency xtermblazor to v2

Open renovate[bot] opened this issue 3 months ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
XtermBlazor 1.10.2 -> 2.1.0 age adoption passing confidence

Release Notes

BattlefieldDuck/XtermBlazor (XtermBlazor)

v2.1.0

Overview

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

What's Changed

Full Changelog: https://github.com/BattlefieldDuck/XtermBlazor/compare/v2.0.0...v2.1.0

v2.0.0

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/@&#8203;@&#8203;xterm/[email protected]/lib/addon-fit.min.js"></script>

<!-- After v2.0.0 (Blazor WebAssembly) -->
<script src="https://cdn.jsdelivr.net/npm/@&#8203;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 @&#8203;ref="_terminal" Options="_options" AddonIds="_addonIds" OnFirstRender="@&#8203;OnFirstRender" />

  @&#8203;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 @&#8203;ref="_terminal" Options="_options" Addons="_addons" OnFirstRender="@&#8203;OnFirstRender" />

  @&#8203;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

New Contributors

Full Changelog: https://github.com/BattlefieldDuck/XtermBlazor/compare/v1.10.2...v2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Mar 08 '24 16:03 renovate[bot]