Opal v0.8.0 Release Notes
Release Date: 2015-07-16 // almost 9 years ago-
โ Added
๐
Hash[]
implementation fully compliant with rubyspec๐ Newly compliant with the Ruby Spec Suite:
Array#bsearch
Array#combination
Array#permutation
Array#product
Array#rotate!
Array#rotate
Array#sample
Array#to_h
Array#values_at
Array#zip
Enumerator#with_index
Kernel#===
Kernel#Array
Kernel#Float
Kernel#Hash
Kernel#Integer
Kernel#String
Kernel#format
Kernel#sprintf
MatchData#==
MatchData#eql?
MatchData#values_at
Module#instance_methods
Regexp#match
String#%
String#===
String#==
String#[]
String#each_line
String#eql?
String#index
String#inspect
String#lines
String#match
String#next
String#oct
String#scan
String#slice
String#split
String#succ
String#to_i
String#try_convert
๐ Changed
- โก๏ธ Updated to Sprockets v3.0.
- 0๏ธโฃ Enable operator inlining by default in the compiler.
โ Removed
- โ Removed
minitest
from stdlib. It's not part of MRI and it never belonged there, checkout theopal-minitest
gem instead.
๐ Fixed
- Delegate dependency management directly to Sprockets (when used) making sourcemaps swift again.
This means code generated by sprockets will always need to be bootstrapped via
Opal.load
orOpal.require
. LuckilyOpal::Processor.load_asset_code(sprockets, name)
does just that in the right way. - ๐ Fix
Promise#always
. - ๐ Fix
String#split
when no match is found and a limit is provided - ๐ Fix
require_tree(".")
when used from file at the root of the assets paths - ๐ Parser: Allow trailing comma in paren arglists, after normal args as well as assoc args.
- ๐ Parser: Fix parsing of parens following divide operator without a space.
- ๐ Parser: Fix bug where keyword arguments could not be parsed if method definition did not have parens around arguments.
-
Module#const_get
now accepts a scoped constant name -
Regexp#===
sets global match data vars