Skip to content

2.5.1

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Apr 06:54
· 399 commits to main since this release
channel source
3.3 https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
3.2 https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz
head ruby/ruby@381ce130aec150098e5e3418eb435ec7ce46820d

What's Changed

  • Tarball files are renamed: ruby-<channel>-wasm32-unknown-wasi.tar.gz -> ruby-<channel>-wasm32-unknown-wasip1.tar.gz.
  • JS::Object#== now returns false when comparing with non-JS::Object instead of raising exception.
    JS.eval("return 42;") != Object.new
    # (v2.5.1) => false
    # (v2.5.0) => `==': wrong argument type Integer (expected jsvalue) (TypeError) 
  • JS::Object#apply method is added to call JS function without receiver
    floor = JS.global[:Math][:floor]
    floor.apply(3.14) # => 3
  • Results of to_jsed Proc are now returned to caller side in JS
    JS.eval("return [1, 2]").map { _1.to_i * 2 }
    # (v2.5.1) => [2, 4]
    # (v2.5.0) => [undefined, undefined]
  • JS::Object.new now accepts trailing block
    JS.global[:Promise].new do |resolve, reject|
      resolve.apply(42)
    end.await # => 42

Pull Requests

Full Changelog: 2.5.0...2.5.1