opal breaking changes
opal 1.0.0 (May 12, 2019) is its newest release with breaking changes, 14 of them. The first: Parser migrated to 2.5 and RUBY_VERSION bumped to 2.5.0 in opal 1.0.0. Every breaking API change we have recorded in opal on RubyGems: 64 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.8.3. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 0.11.0 to 1.0.0: 14 breaking changes in 1 version.
- From 0.4.0 to 1.0.0: 60 breaking changes in 8 versions.
opal 1.0.0 breaking changes
- Removed
The parser was migrated to Ruby 2.5 and RUBY_VERSION was bumped to 2.5.0. github.com - Removed
hike
The hike gem is no longer an external dependency; it is available internally as Opal::Hike. github.com - Removed
Marshal.BinaryString
The internal Opal class Marshal::BinaryString has been removed. github.com - Removed
NODE_OPT
The node CLI runner no longer supports extra node options via NODE_OPT; use Node.js's NODE_OPTIONS env var instead. github.com - Removed
Racc
Racc has been removed and replaced by the parser gem. github.com - Behavior changed
--map
The --map CLI option now works only together with --compile or --runner compiler. github.com - Behavior changed
Filename extensions
Filename extensions are no longer stripped from filenames internally, which can change error reporting output. github.com - Behavior changed
Kernel.format
Kernel#format and its sprintf alias are now available exclusively in opal and no longer in opal/mini. github.com - Behavior changed
NODE_PATH
The node CLI runner now adds its NODE_PATH entry instead of replacing the environment variable. github.com - Behavior changed
Opal.config.missing_require_severity
Source-maps are now inlined and already contain sources, which may change how generated maps are consumed. github.com - Behavior changed
Regexp.match
The dot character is no longer replaced with [\s\S] in multiline regexps passed to Regexp#match and Regexp#match?. Use [\s\S] instead of . for portability. github.com - Behavior changed
Regexp.match?
The dot character is no longer replaced with [\s\S] in multiline regexps passed to Regexp#match?. Use [\s\S] instead of . for portability. github.com - Configuration changed
Opal.Config.dynamic_require_severity
Builder behavior for missing required files is now controlled by the new missing_require_severity option, not dynamic_require_severity. github.com - Signature changed
CLI runners
The internal API for CLI runners changed; runners are now callable objects. github.com
opal 0.11.0 breaking changes
- Removed
Browser support for IE8 and older was removed, and Safari and Opera are now supported only for their last two versions. github.com - Removed
PhantomJS is no longer supported because it was abandoned upstream. github.com - Removed
Sprockets support was extracted into opal-sprockets, so apps using it must add that gem. github.com - Removed
yaml
The built-in yaml library was removed; require 'nodejs/yaml' instead. github.com - Behavior changed
Regexp flags unsupported by browsers are now stripped, and most unknown flags now raise an error instead of being ignored. github.com - Behavior changed
Enumerable.slice_before
Enumerable#slice_before now raises proper argument errors for invalid arguments, which code relying on the old behavior may hit. github.com - Behavior changed
Number.positive?
Number#positive? returns false for zero to match Ruby 2.3, which changes results for code that relied on the previous value. github.com - Behavior changed
Process.clock_gettime
Process.clock_gettime(Process::CLOCK_MONOTONIC) now returns true monotonic values or raises Errno::EINVAL when no monotonic clock is available. github.com - Default changed
By default a missing dynamic require now raises LoadError at runtime instead of at compile time; set dynamic_require_severity to keep the old behavior. github.com - Signature changed
Enumerable.chunk
Enumerable#chunk accepts only a block to match Ruby 2.3 behavior, so callers passing other arguments must change their code. github.com
opal 0.10.0 breaking changes
- Removed
Opal.Fragment.to_code
The previously deprecated Opal::Fragment#to_code method is gone. Code that calls it must be updated before upgrading. github.com - Removed
Opal.process
Opal.process, which was an alias to Sprockets::Environment#[], has been removed. github.com - Removed
Opal.Processor
Opal can no longer be configured via Opal::Processor. Move that configuration to Opal::Config. github.com - Removed
Opal.Processor.load_asset_code
The previously deprecated Opal::Processor.load_asset_code method has been removed. github.com - Removed
Opal.Server.new
Opal::Server.new no longer accepts a boolean as its only argument. Pass the current supported arguments instead. github.com - Renamed
Opal.dynamic_require_severity
Opal.dynamic_require_severity and OPAL_CONFIG are merged into Opal.config.missing_require_severity and Opal.config.unsupported_features_severity. Setting Opal::Config no longer changes Opal.dynamic_require_severity. github.com - Default changed
Opal.Config.dynamic_require_severity
The default for Opal::Config.dynamic_require_severity is now :warning. Set it explicitly if you relied on the old value. github.com
opal 0.9.0 breaking changes
- Renamed
Hash.keys
Hash.keys was renamed to Hash.$$keys. Code calling the old name must switch to the new one. github.com - Renamed
Hash.map
Hash.map was renamed to Hash.$$map. Code calling the old name must switch to the new one. github.com - Renamed
Hash.smap
Hash.smap was renamed to Hash.$$smap. Code calling the old name must switch to the new one. github.com - Behavior changed
Kernel.pp
Kernel#pp no longer passes its arguments directly to console.log; output now goes through the stdlib console.rb wrapper. github.com - Behavior changed
Module.instance_eval
Method definitions made inside Module#instance_eval and Class#instance_eval (and exec) now create class methods instead of instance methods. github.com - Signature changed
With arity checks enabled, calling a method with more arguments than its signature supports now raises ArgumentError. github.com
opal 0.8.0 breaking changes
- Removed
minitest is no longer bundled in stdlib. Use the opal-minitest gem instead. github.com - Behavior changed
Dependency management is now delegated to Sprockets. Code generated by Sprockets must be loaded with Opal.load or Opal.require, or Opal::Processor.load_asset_code. github.com - Default changed
The compiler inlines operators by default now. Code relying on the previous default may generate different output. github.com
opal 0.7.0 breaking changes
- Behavior changed
Class.native_class
Class#native_class now also exposes MyClass.new as Opal.global.MyClass.new() in JavaScript. github.com - Behavior changed
require_relative
require_relative with strings is now preprocessed and expanded, and requires are emitted at their position in the file rather than all at the top. github.com - Behavior changed
String.to_proc
String#to_proc uses __send__ instead of send to call methods on receivers, so code relying on send being used there may behave differently. github.com - Configuration changed
const_missing
The const_missing compiler option is removed and all constant lookups are now strict, so missing constants no longer dispatch to const_missing. github.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
opal 0.6.0 breaking changes
- Removed
as_json
All core #as_json methods were removed; they are now provided externally by opal-activesupport. github.com - Removed
Native
Code treating Native as a top-level class will need updating. github.com
And 12 more in this version.
opal 0.5.0 breaking changes
- Removed
Opal.bridge_class
Ruby code should use the class Foo < `bar` syntax instead of calling Opal.bridge_class(). github.com - Removed
Optimized_operators
The Optimized_operators option is no longer available in the compiler, so code that passes it must drop it. github.com
opal 0.4.0 breaking changes
- Removed
Hash.from_native
Hash.from_native was merged into Hash.new; call Hash.new instead. github.com - Behavior changed
Instance variables are no longer initialized to nil; code that expects them to be nil before assignment may change behavior. github.com
And 2 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.