app v6.2.0 Release Notes

Release Date: 2020-03-19 // about 4 years ago
  • Hello there, this is Maxence.

    ๐Ÿš€ I'm glad to release the v6.2.0 of the go-app package.

    Customizable root directory

    ๐ŸŒ Previously, the app.wasm file and the web directory had to be located in the same directory as the server binary in order to be served.

    This version allows changing this behavior by introducing the root directory.

    ๐ŸŒ The root directory is where app.wasm and the web directory are located:

    CUSTOM\_LOCATION โ”œโ”€โ”€ app.wasm โ””โ”€โ”€ web โ””โ”€โ”€ Static resources...
    

    0๏ธโƒฃ By default located in the same directory as the server binary, it can be changed to:

    • Another local location.
    • ๐Ÿš€ A cloud storage bucket such as Amazon S3 or Google Cloud Storage, which is very useful in a scenario where a PWA is deployed on a cloud function to reduce function counter.

      h := app.Handler{ RootDir: "CUSTOM_LOCATION", }

    syscall/js wrapper

    โœ… Wrappers for CopyBytesToGo and CopyBytesToJS have been added.

    Misc

    ๐Ÿ”จ Some refactoring to improve overall code quality.

    Thanks

    ๐Ÿš€ Thanks to @sg0hsmt, @gabstv, and @ruanwenfeng for their contributions to this release.