Releases: trunk-rs/trunk
Releases · trunk-rs/trunk
v0.9.1 | Bug Fix
fixed
- Fixed a bug releated to the watch system, which would cause build loops if there was an error on the initial build.
v0.9.0 | WebSocket proxy & wasm-opt integration
added
Added support for proxying WebSockets. This was a long-standing feature request. Due to changes upstream in the async-std/tide ecosystem, we are now able to properly support this. This will also unlock some nice features such as HMR via WebSockets, and other such niceties.
- Added the
--proxy-ws
CLI option for enabling WebSocket proxying on a CLI defined proxy. - Added the
ws = true
field to theTrunk.toml
[[proxy]]
sections which will enable WebSocket proxying for proxies defined in theTrunk.toml
. - WASM files are now automatically optimized with
wasm-opt
to reduce the binary size. The optimization level can be set with the newdata-wasm-opt
argument of therust
asset link andwasm-opt
binary is now required to be globally installed on the system when being used. E.G.,<link data-trunk rel="rust" [...] data-wasm-opt="4"/>
.
fixed
v0.8.3 | Bug Squashing
fixed
- Fixed #133 where
watch
was infinitely looping on Windows because the canonicalization path didn't match the un-canonicalized ignore list. Windows likes to use a?
prefix on paths sometimes ... ???
v0.8.2 | Bug Fix
fixed
- Round two of fixing #124 where path canonicalization was being performed on a path which did not yet exist, and as it turns out was already in canonical form.
v0.8.1
v0.8.0 | Asset inlining, watch enhancements & bug fixes
added
- Closed #93: The
watch
andserve
subcommands can now watch specific folder(s) or file(s) through the new--watch <path>...
option. Thanks to @malobre for all of the work on this one. - Inline the content of files directly into
index.html
with the newinline
asset. There are three content types that can be inlined:html
,css
, andjs
. The type can be specified with thetype
attribute or is inferred by the file extension. Thanks to @DzenanJupic for all of the work on this one.
fixed
- Closed #49: old artifacts in the dist dir are now being cleaned-up as new builds successfully complete. Thanks @philip-peterson & @hamza1311 for their work on this one.
- Fixed infinite rebuild loop on Windows started by
watch
command by path canonicalizing in the ignored paths resolver.
v0.7.4 | Fix Regression in CLI --help Output
fixed
- Fixed a regression in Trunk CLI help output, where incorrect help info was being displayed.
v0.7.3 | Fix Windows Path Issues
fixed
- Closed #82: Remove the hardcoded Unix (
/
) path separator from the code and convert Windows NT UNC path to its simplified alternative before passing tocargo metadata
command to prevent issues with Rust package collisions and writingindex.html
file. - Updated the
WatchSystem
to use{:?}
debug formatting for errors to ensure that full error chains are reported. This impacts thewatch
&serve
subcommands. Thebuild
command was already behaving as needed.
v0.7.2 | Bug Fixes
0.7.2
fixed
- Closed #78: Ensure all asset pipelines are properly rooted to the configured
public-url
, which defaults to/
.