Skip to content

2.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Dec 17:41
· 590 commits to main since this release
channel source
head ruby/ruby@157e6c8a512968dc9f82d7f81606eeb3266cf6bb
3.2 https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz

What's Changed

npm packages are now moved under @ruby organization.

Old name New name
ruby-3_2-wasm-wasi @ruby/3.2-wasm-wasi
ruby-head-wasm-wasi @ruby/head-wasm-wasi
ruby-head-wasm-emscripten @ruby/head-wasm-emscripten

Also npm package structure is updated as follows:

  1. Files are now organized as follows to fix ESM imports1:
    • dist/*.cjs.js -> dist/cjs/*.js
    • dist/*.esm.js -> dist/esm/*.js
    • Note that UMD files are kept in the root of dist/ to avoid breaking existing code that loads them from CDN instead of package.json's exports field.
  2. dist/{cjs,esm}/**/*.js are now not bundled with rollup to avoid duplicated bundling.

Bundled WASI for browser is changed: @wasmer/wasi -> @bjorn3/browser_wasi_shim

The size of browser.umd.min.js got much smaller: 491K -> 32K

Pull Requests

Full Changelog: 2.3.0...2.4.0

  1. ESM imports were broken with Node.js because files are not suffixed with mjs nor type: module is not specified in root package.json. Now dist/esm/package.json specifies type: module.