Hello, this release is mostly small and contains two adjustments and one new feature.
Wasm.ready()is now required when using Popcorn: we needed a signal from the running app when Elixir finalized init, and sending that signal directly is actually the most robust approach. Please make sure you use that function in Elixir code to avoid startup issues.bundlePathis renamed tobundlePaths, which now allows loading multiple bundles when running AtomVM.- New events API – now it's possible to send fire-and-forget events from Elixir to JS without resorting to
Wasm.run_js(). JS gets newonMessage()callback that can be used to receive those messages. It can be called only after Popcorn instance creation, so make sure your app doesn't lose events on startup.
Other than that, there are a lot of new things coming from Phoenix LocalLiveView integration and one secret project in the works. They're not ready yet, but we're actively developing them.
—Popcorn team