KubeUI
KubeUI copied to clipboard
chore(deps): update dependency xtermblazor to v2
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
XtermBlazor | 1.10.2 -> 2.1.0 |
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
- Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 8.0.2 to 8.0.3 in /XtermBlazor by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/28
- Bump Microsoft.AspNetCore.Components.WebAssembly and Microsoft.AspNetCore.Components.Web in /XtermBlazor by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/27
- Bump webpack from 5.90.3 to 5.91.0 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/30
- Bump typescript from 5.4.2 to 5.4.4 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/32
- Bump typescript from 5.4.4 to 5.4.5 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/37
- Bump css-loader from 6.10.0 to 7.1.1 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/36
- Bump @xterm/xterm from 5.4.0 to 5.5.0 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/34
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
andSetCustomWheelEventHandler
- Rename
AttachCustomKeyEventHandlerEvaluate
toSetCustomKeyEventHandler
Improvements
- Optimized
XtermBlazor.min.css
andXtermBlazor.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 https://github.com/BattlefieldDuck/XtermBlazor/pull/18
- Add EventCallback with Key from Xterm by @PetterRein in https://github.com/BattlefieldDuck/XtermBlazor/pull/22
- Bump Microsoft.AspNetCore.Components.WebAssembly.DevServer from 8.0.1 to 8.0.2 in /XtermBlazor by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/19
- Bump typescript from 5.3.3 to 5.4.2 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/24
- Bump webpack from 5.90.1 to 5.90.3 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/23
- Bump Microsoft.AspNetCore.Components.WebAssembly and Microsoft.AspNetCore.Components.Web in /XtermBlazor by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/25
- Bump esbuild-loader from 4.0.3 to 4.1.0 in /XtermBlazor/src by @dependabot in https://github.com/BattlefieldDuck/XtermBlazor/pull/26
New Contributors
- @PetterRein made their first contribution in https://github.com/BattlefieldDuck/XtermBlazor/pull/22
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.