2.2.0
channel | source |
---|---|
head | ruby/ruby@e1978a905a32af2d48b6e9efb6d0fe1656fddc5b |
3_2 | ruby/ruby@a528908271c678360d2d8ca232c178e7cdd340b4 |
What's Changed
JS::Object#to_a
added tojs
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
- Update zlib version to resolve build errors. by @ledsun in #274
- Add
JS::Object#to_a
by @gifvex in #270 - Use WebAssembly.compileStreaming by @ledsun in #267
- Improve
Array#to_js
speed by @krmbn0576 in #281 - Improve READMEs for ext directory by @Forthoney by @kateinoigakukun in #293
- Fix doc example for JS::Object#call by @kateinoigakukun in #294
- Fix build error on mac by @ahogappa0613 in #283
- Fix
rb_vm_bugreport
signature for head by @kateinoigakukun in #303 - Mitigate stack-overflow issue take 2 by @kateinoigakukun in #302
- Remove upstreamed patch by @kateinoigakukun in #304
- packaging: Remove deprecated warning for browser.{esm,umd}.js by @kateinoigakukun in #305
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