Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency xtermblazor to v2 - autoclosed #597

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 8, 2024

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: BattlefieldDuck/XtermBlazor@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: BattlefieldDuck/XtermBlazor@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 renovate bot force-pushed the renovate/xtermblazor-2.x branch from 77749bc to 0af7dc1 Compare April 16, 2024 08:16
@IvanJosipovic IvanJosipovic deleted the branch alpha-old June 2, 2024 19:36
@renovate renovate bot changed the title chore(deps): update dependency xtermblazor to v2 chore(deps): update dependency xtermblazor to v2 - autoclosed Jun 2, 2024
@renovate renovate bot deleted the renovate/xtermblazor-2.x branch June 2, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant