2.6.0
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
- Matches the return value of a JavaScript method with ? with a true/false decision in a JavaScript if statement by @ledsun in #443
- Skip building the native extension of js gem except for wasm platforms by @kateinoigakukun in #448
- Allow using
CXX
in extconf.rb by @kateinoigakukun in #449 - PIC support in js gem by @kateinoigakukun in #450
Full Changelog: 2.5.2...2.6.0