Releases: lomirus/live-server
Releases · lomirus/live-server
v0.11.1
Fixes
- Panic when something is already listening on the port (#183)
Tests
- chore(test): end-to-end (#191)
- fix(test): browser launch timeout
Dependencies
- Use rustls for reqwest dev-dep
- Bump clap from 4.5.49 to 4.6.0
- Bump ignore from 0.4.24 to 0.4.25
- Bump open from 5.3.2 to 5.3.3
- Bump log from 0.4.28 to 0.4.29
- Bump local-ip-address from 0.6.5 to 0.6.10
- Bump reqwest from 0.12.4 to 0.12.9
- Bump axum from 0.8.7 to 0.8.8
- Bump tempfile from 3.23.0 to 3.27.0
- Bump tokio from 1.48.0 to 1.50.0
- Bump notify-debouncer-full from 0.6.0 to 0.7.0
- Bump futures from 0.3.31 to 0.3.32
- Bump serial_test from 3.3.1 to 3.4.0
- Bump chromiumoxide from 0.8.0 to 0.9.1
- Bump env_logger from 0.10.2 to 0.11.9
v0.11.0
Features
- Add
--browseroption (#176) by @georgefst- Specify a particular browser to open the page with
- Add
--polloption (#178) @lomirus- Create listener using
PollWatcher PollWatcheris a fallback that manually checks file paths for changes at a regular interval. It is useful for cases where real-time OS notifications fail, such as when a symbolic link is atomically replaced, or when the monitored directory itself is moved or renamed.
- Create listener using
Chores
- Update Rust edition to 2024
- (Workflow) Run check workflow also on windows and macos
- (Workflow) Update
ubuntuandactions/checkoutin check workflow
Dependencies
- Bump clap from 4.5.39 to 4.5.49
- Bump notify from 8.0.0 to 8.2.0
- Bump tokio from 1.45.1 to 1.48.0
- Bump notify-debouncer-full from 0.5.0 to 0.6.0
- Bump log from 0.4.27 to 0.4.28
- Bump ignore from 0.4.23 to 0.4.24
v0.10.1
Bug Fixes
Dependencies
- log: 0.4.25 -> 0.4.27 (@dependabot)
- clap: 4.5.28 -> 4.5.39 (@dependabot)
- tokio: 1.43.0 -> 1.45.1 (@dependabot)
- local-ip-address 0.6.3 -> 0.6.5 (@dependabot)
v0.10.0
Features
Improvements
- Clean some useless logs by @lomirus in #141.
- All text assets will respond with
charset=utf-8@lomirus in #142. - Error responses of non-html assets will respond with error message by @lomirus in #142.
Fixes
- Fixes directory traversal attack by @lomirus in #140.
- Fixes that the script was not injected into the error page of failing to read file as utf-8 by @lomirus in #142.
Dependencies
- Bump log from 0.4.22 to 0.4.25.
- Bump local-ip-address from 0.6.2 to 0.6.3.
- Bump clap from 4.5.26 to 4.5.28.
v0.9.1
Bug Fixes
- Browser extension conflict (#122 by @lomirus)
- Fails to connect with websocket when using https (#124 by @lomirus)
Performance
- Replace
StringandPathBufwith&strand&Path(#120 by @Integral-Tech)
Bump Dependencies
- Bump notify from 6.1.1 to 8.0.0
- Bump notify-debouncer from 0.3.2 to 0.5.0
- Bump tokio from 1.41.0 to 1.43.0
- Bump open from 5.3.0 to 5.3.2
- Bump clap from 4.5.20 to 4.5.26
v0.9.0
Features
- Add option for opening specific file via a CLI argument (#105) by @wentasah.
- Add option for automatic indexing directory files if index.html does not exist (#110) by @sjml.
- Collect all options into the
Optionsstruct (#114) by @lomirus
Update Dependencies
- bump clap from 4.5.11 to 4.5.20
- bump tokio from 1.39.2 to 1.41.0
- bump local-ip-address from 0.6.1 to 0.6.2
- bump axum from 0.7.5 to 0.7.6
- bump futures from 0.3.30 to 0.3.31
- bump notify-debouncer-full from 0.3.1 to 0.3.2
v0.8.0
Highlight
- Support hot reload by @Pistonight in #83
Chores
- docs: Add document for
link()method by @lomirus - test: Remove extra sleeping time when testing request by @lomirus
- deps: bump tokio from 1.35.0 to 1.39.2 by @dependabot
- deps: bump futures from 0.3.29 to 0.3.30 by @dependabot
- deps: bump clap from 4.4.11 to 4.5.11 by @dependabot
- deps: bump axum from 0.7.2 to 0.7.5 by @dependabot
- deps: bump env_logger from 0.10.1 to 0.10.2 by @dependabot
- deps: bump local-ip-address from 0.5.6 to 0.6.1 by @dependabot
- deps: bump reqwest from 0.11.23 to 0.12.4 by @dependabot
- deps: bump open from 5.0.1 to 5.3.0 by @dependabot
- deps: bump log from 0.4.17 to 0.4.22 by @dependabot
- deps: bump mime_guess from 2.0.3 to 2.0.5 by @lomirus
v0.7.0
Features
- Add
--open/-ooption, 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
--hostoption was renamed to-Hin order to avoid conflict with-h(--help) - The default value of
--host/-Hwas changed to0.0.0.0 - The default value of
--port/-pwas changed to0
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-stdwithtokio - Replace
tide&tide-websockets&uuidwithaxum - Bump
env_loggerfrom0.10.0to0.10.1 - Bump
clapfrom4.4.6to4.4.11 - Add
futures,openas dependency - Add
reqwestas dev dependency