Skip to content

Releases: lomirus/live-server

v0.7.0

23 Dec 04:44
Compare
Choose a tag to compare

Features

  • Add --open/-o option, which will open the page in browser automatically
  • Return an error page which supports live-reload when failing to access any page, in order to make sure that live-reload won't be interrupted. For example, when attempting to access a page that does not exist, the server would response a blank page in the previous version, and even when this file was modified, the page wouldn't be refreshed.

Refactor

  • The short name of --host option was renamed to -H in order to avoid conflict with -h (--help)
  • The default value of --host/-H was changed to 0.0.0.0
  • The default value of --port/-p was changed to 0

API

  • Revamp the API

Before:

listen("127.0.0.1", 8080, "./").await?;

After:

listen("127.0.0.1:8080", "./").await?.start().await?;

CI

  • Add test case to reduce potential mistakes

Dependencies

  • Replace async-std with tokio
  • Replace tide & tide-websockets & uuid with axum
  • Bump env_logger from 0.10.0 to 0.10.1
  • Bump clap from 4.4.6 to 4.4.11
  • Add futures, open as dependency
  • Add reqwest as dev dependency

v0.6.2

24 Oct 09:12
Compare
Choose a tag to compare
  • Remove debug output

v0.6.1

10 Oct 01:37
Compare
Choose a tag to compare
  • Update dependencies.
  • Make sure there's only 1 broadcast at most every 200 ms by @lomirus.

v0.6.0

01 Mar 06:17
Compare
Choose a tag to compare

Main Changes

  • Export the listen() function;
  • Use env_logger to manage logs.

Dependencies

  • bump uuid from 0.8.2 to 1.3.0;
  • bump clap from 3.2.8 to 3.2.23 ;
  • bump local-ip-address from 0.4.7 to 0.5.1 .

v0.5.0

13 Sep 05:57
Compare
Choose a tag to compare
  • Improve the responding speed of HTML file by removing the extra parsing step by @lomirus
  • Fix multilingual support for windows on local-ip-address crate by @EstebanBorai

v0.4.2

17 Aug 09:47
Compare
Choose a tag to compare

Improvements

  • Add \n to the inserted script and thus make it more readable by @lomirus
  • Simplify the some error logs by @lomirus

Fix

  • #5 Cannot response local binary files by @lomirus

Chore

  • Create VSCode debug configurations by @lomirus

v0.4.1

07 Jul 09:47
Compare
Choose a tag to compare

Fix

Cannot serve static assets if target path is not the current directory by @lomirus for #3

v0.4.0

07 Jul 07:58
Compare
Choose a tag to compare

Feature

Fix

  • Cannot connect to web socket as expect when the port is occupied by other programs by @lomirus

Chores

  • Bump html-editor to v0.5.1 by @lomirus
  • Add CI script for checking format and clippy by @lomirus

v0.3.0

12 Mar 09:24
Compare
Choose a tag to compare

Feature

  • Customize the host of server by option -h/--host.

Fix

  • Panic on some Chinese Language OS because it cannot get the local IP address. Now live-server can run on them but will just listen on localhost by default and show the error message.

Improvement

  • Some other error message refinements.

v0.2.1

28 Jan 11:08
Compare
Choose a tag to compare

Feature

  • Print version information by -v/--version option

Fix

  • The port in the script inserted to the HTML would not be updated automatically even if the server port has switched from the default one;
  • Failed to parse some HTML file because of the upstream(html_editor) bugs

Improvement

  • Improve the error log when failing to read or parse a file;