It's been almost a year from our 0.6.0 release and has been an awesome time for the Opal community. Today I'm proud to announce we have released v0.7.0, which comes packed with lots of good stuff and uncountable bug fixes.
#require #require_relative and #require_tree
The require system has been completely overhauled in Opal 0.7. The previous version was a rather smart wrapper around sprockets directives but had some limitations, especially when it came to interleaving require calls and code. Some gems couldn't be compiled with Opal just for that reason.
The new require system now relies on a module repository where each "module" actually corresponds to a Ruby file compiled with Opal. This means that #require
calls aren't no-ops anymore.
In addition to that #require_relative
support has been added and for feature parity with sprockets directives we're also introducing #require_tree
. The latter will be particularly useful to require templates.
Keyword Arguments
This has been a super requested feature, and thanks to Adam Beynon they're now a reality. They still have some rough edges (as they did in their first CRuby/MRI incarnation) but the core is there for you all to enjoy.
continue reading…