Skip to content

0.4.0 Release

Compare
Choose a tag to compare
@billchurch billchurch released this 19 May 14:59

BREAKING

  • Disabled ssh.serverlog.client option, this disables the POC which allowed for logging of the data sent between the client/server to the console.log.
  • Dropping support for node versions under 14

Changes

  • Removed HTML menu code from ./app/server/socket.js, the menu is now fully laid out in the ./app/client/src/index.html and the option elements are hidden by default. Not sure why it wasn't done this way from the start, but there it is.
  • Updated socket.io to v4.1.1
  • Client javascript ./app/client/src/js/index.ts is now built on TypeScript (npm run build will generate javascript for client and place into app/client/public/webssh2.bundle.js as before)
  • Build environment changes
    • removed unused xterm-addon-search, xterm-addon-weblinks, standard, postcss-discard-comments
    • added prettier 2.3.0, typescript modules, socket.io-client 4.1.1, airbnb linting tools

Added

  • Lookup ip address for hostname in URL, fixes #199 thanks to @zwiy
  • Ability to override Authorization: Basic header and replace with credentials specified in config.json fixes #243. New config.json option user.overridebasic

CONTRIBUTING

In this release, we're trying our best to conform to the Airbnb Javascript Style Guide. I'm hoping this will make contributions easier and keep the code readable. I love shortcuts more than anyone but I've found when making changes to code I've not looked at in a while, it can take me a few momements to deconstruct what was being done due to readbility issues. While I don't agree with every decision in the style guide (semi-colons, yuk), it is a good base to keep the code consistent.

If you've not used it before, I recommend installing the vscode extensions for that and Prettier and getting familiar. The autocorrections are great (especially if you hate dealing with semi-colons...)

As of 0.4.0-testing-0, the client code is written in TypeScript. It's not that much different from JavaScript, and the introduction strong typing will ultimately help to produce better code. Eventually we want to move the whole project to TypeScript but that make take a bit more time. Take a moment to look at ./app/client/src/js/index.ts to see what TypeScript looks like.