Skip to content

Releases: trunk-rs/trunk

v0.9.1 | Bug Fix

08 Mar 17:50
Compare
Choose a tag to compare

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

06 Mar 22:30
Compare
Choose a tag to compare

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 the Trunk.toml [[proxy]] sections which will enable WebSocket proxying for proxies defined in the Trunk.toml.
  • WASM files are now automatically optimized with wasm-opt to reduce the binary size. The optimization level can be set with the new data-wasm-opt argument of the rust 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

  • Closed #81: this is no longer needed as we now have support for WebSockets. HTTP2 is still outstanding, but that will not be a blocker for use from the web.
  • Closed #95: fixed via a few small changes to precendce in routing.
  • Closed #53: we've now implemented support for proxying WebSockets.

v0.8.3 | Bug Squashing

03 Mar 03:06
Compare
Choose a tag to compare

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

16 Feb 03:42
6dc36e7
Compare
Choose a tag to compare

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

04 Feb 15:35
9031177
Compare
Choose a tag to compare

fixed

  • Fixed #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.0 | Asset inlining, watch enhancements & bug fixes

02 Feb 04:23
ed00c5a
Compare
Choose a tag to compare

added

  • Closed #93: The watch and serve 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 new inline asset. There are three content types that can be inlined: html, css, and js. The type can be specified with the type 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

23 Oct 18:13
Compare
Choose a tag to compare

fixed

  • Fixed a regression in Trunk CLI help output, where incorrect help info was being displayed.

v0.7.3 | Fix Windows Path Issues

16 Oct 18:21
Compare
Choose a tag to compare

fixed

  • Closed #82: Remove the hardcoded Unix (/) path separator from the code and convert Windows NT UNC path to its simplified alternative before passing to cargo metadata command to prevent issues with Rust package collisions and writing index.html file.
  • Updated the WatchSystem to use {:?} debug formatting for errors to ensure that full error chains are reported. This impacts the watch & serve subcommands. The build command was already behaving as needed.

v0.7.2 | Bug Fixes

11 Oct 03:10
ad19190
Compare
Choose a tag to compare

0.7.2

fixed

  • Closed #78: Ensure all asset pipelines are properly rooted to the configured public-url, which defaults to /.

v0.7.1 | Bug Fixes

10 Oct 16:51
Compare
Choose a tag to compare

0.7.1

fixed

  • Closed [#76]((#76): Ensure canonical paths are used for pertinent paths in the runtime config to ensure watch config is able to properly ignore the dist dir and such.