Skip to content

webR 0.4.1

Compare
Choose a tag to compare
@georgestagg georgestagg released this 06 Aug 09:52
· 16 commits to main since this release

New features

  • When mounting Emscripten VFS images, filesystem .data files may be optionally gzip compressed. Compressed VFS filesystem data must have the file extension .data.gz, and the metadata JSON stored in the .js.metadata file must include the property gzip: true (#460).

Breaking changes

  • R package dependencies listed only in the LinkingTo field are no longer downloaded by webr::install(). Such packages are required for building an R package, but not at runtime. This saves time and network resources when installing R packages from a WebAssembly CRAN-like repository (#463).

  • Unrecoverable WebAssembly.RuntimeError errors are now handled by emitting an error message, closing the communication channel, and terminating the webR worker thread.

  • When the communication channel has been closed, reject any attempts to to write to the channel (e.g. webR.evalR(), webR.writeConsole()) with a relevant error message, rather than not resolving the returned Promise at all.

Bug Fixes

  • Partially revert 7c624f7, returning HTML Canvas scaling to the behaviour in webR 0.3.3.