Sha256: 6fc96543e79f4814f78e9b147e496749e79c7c83f739b09690011af8e83c9213

Contents?: true

Size: 503 Bytes

Versions: 69

Compression:

Stored size: 503 Bytes

Contents

# Upgrading from v0.8 to v0.9

## `Opal::Processor.load_asset_code` deprecated

`Opal::Processor.load_asset_code(sprockets, name)` has been deprecated in favor of `Opal::Sprockets.load_asset(name, sprockets)`.

## `$console.log` instead of `pp`

Previously `pp` would have forwarded the object to JS own `console.log` but now just prints calling `.inspect` on it similarly to what `p` does.

```ruby
require 'pp'
pp a: 1, b: {c: 3}
```

Now:

```ruby
require 'console'
$console.log a: 1, b: {c: 3}
```

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 docs/upgrading.md
opal-1.8.2 docs/upgrading.md
opal-1.8.1 docs/upgrading.md
opal-1.8.0 docs/upgrading.md
opal-1.8.0.beta1 docs/upgrading.md
opal-1.7.4 docs/upgrading.md
opal-1.8.0.alpha1 docs/upgrading.md
opal-1.7.3 docs/upgrading.md
opal-1.7.2 docs/upgrading.md
opal-1.7.1 docs/upgrading.md
opal-1.7.0 docs/upgrading.md
opal-1.7.0.rc1 docs/upgrading.md
opal-1.6.1 docs/upgrading.md
opal-1.6.0 docs/upgrading.md
opal-1.6.0.rc1 docs/upgrading.md
opal-1.6.0.alpha1 docs/upgrading.md
opal-1.5.1 docs/upgrading.md
opal-1.5.0 docs/upgrading.md
opal-1.5.0.rc1 docs/upgrading.md
opal-1.4.1 docs/upgrading.md