Skip to content

2.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 May 17:37
· 33 commits to main since this release
channel source
3.3 https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.gz
3.2 https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.gz
head ruby/ruby@6747fbe77dcac26a457bb1386f55f3c27321040a

Breaking Changes

Predication JS method calls now follows JavaScript's Truthy and Falsy semantics instead of just comparing with true.

Those predication JS method calls that return Truthy values returned Ruby false in 2.5.2 and earlier but returns true in 2.6.0 and later.

obj = JS.eval(<<~JS)
return {
  returnTrue: () => true,
  returnFalse: () => false,
  returnZero: () => 0,
  returnOne: () => 1,
}
JS

obj.returnTrue? # => true
obj.returnFalse? # => false
obj.returnZero? # => false
obj.returnOne?
# (v2.6.0) => true
# (v2.5.2) => false

Pull Requests

Full Changelog: 2.5.2...2.6.0