Skip to content

2.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Nov 07:55
· 711 commits to main since this release
channel source
head ruby/ruby@e1978a905a32af2d48b6e9efb6d0fe1656fddc5b
3_2 ruby/ruby@a528908271c678360d2d8ca232c178e7cdd340b4

What's Changed

  • JS::Object#to_a added to js library:
# Before 2.2.0
collection = JS.global[:document].querySelectorAll("p")
collection[:length].to_i.times do |i|
  element = collection[i]
  # ...
end

# New
JS.global[:document].querySelectorAll("p").to_a.each do |element|
  # ...
end
  • Performance improved: Array#to_js
  • Improved stack size related crashes (Only applied to head channel) #302
  • Update dependencies
    • zlib: 1.2.13 -> 1.3

Pull Requests

New Contributors

  • @gifvex made their first contribution in #270
  • @krmbn0576 made their first contribution in #281
  • @ahogappa0613 made their first contribution in #283

Full Changelog: 2.1.0...2.2.0