npm xterm 4.9.0

latest releases: 5.0.0, 5.0.0-beta.60, 5.0.0-beta.59...
3 years ago

📦 API

  • Add number support to fontWeight and fontWeightBold options (#3062) via @IllusionMH, this now matches the types that the CSS style supports.
  • Support optional dispose function on ILink (#3073) via @Tyriar, this allows consumers to be notified when links are no longer needed which was difficult to observe before.

🐞 Bug fixes

  • Fix renderer pausing when Terminal.open is called during an animation (#3008) via @andrew-schlackman
  • Use document role instead of list for the terminal (#3020) via @Tyriar
  • Constructor options are now validated just like when using setOption (#3064) via @IllusionMH
  • Fix rendering of multi-line selection when only top row is visible (#3081) via @Tyriar
  • Fix first/last line of selection sometimes not rendering with the canvas renderer (#3082) via @Tyriar

📝 Documentation and internal improvements

  • Remove the no longer supported Dockerfile from the repo (#3026) via @Tyriar
  • Update to TypeScript 4 (#3059) via @Tyriar

🛑 Breaking changes

  • getOption('fontWeight') and getOption('fontWeightBold') now returns string | number instead of string:
    // before 4.9.0
    const weight: string = term.getOption('fontWeight');
    
    // after 4.9.0
    const weight: string | number = term.getOption('fontWeight');
    This change accepted as the impact on consumers should be minimal due to the low usage of the API.

🎉 New real-world use cases


📥 Addons

xterm-addon-serialize

xterm-addon-webgl

  • Expose WebglAddon.clearTextureAtlas API (#3075) via @Tyriar, this is useful to completely clear the atlas when corruption may have happened (eg. when canvas textures are lost after system sleep/resume).
  • Fix rendering of multi-line selection when only top row is visible (#3081) via @Tyriar

🤝 Compatible addon versions

  • xterm-addon-attach@0.6.0
  • xterm-addon-fit@0.4.0
  • xterm-addon-ligatures@0.3.0 (this addon may have issues)
  • xterm-addon-search@0.7.0
  • xterm-addon-serialize@0.4.0
  • xterm-addon-unicode11@0.2.0
  • xterm-addon-web-links@0.4.0
  • xterm-addon-webgl@0.9.0

Don't miss a new xterm release

NewReleases is sending notifications on new releases.