Skip to content

Replace therubyracer with mini_racer#29285

Merged
guilleiguaran merged 1 commit into
rails:masterfrom
SamSaffron:remove_therubyracer
May 30, 2017
Merged

Replace therubyracer with mini_racer#29285
guilleiguaran merged 1 commit into
rails:masterfrom
SamSaffron:remove_therubyracer

Conversation

@SamSaffron

Copy link
Copy Markdown
Contributor

therubyracer is a relic, it depends on an ancient version of v8 that has multiple known security vulnerabilities

https://github.com/cowboyd/therubyracer/blob/master/therubyracer.gemspec#L20

In particular this is the equivalent of shipping a dependency to Chrome version 31.

Chrome 31 was released 2013-11-12

All places that talk about therubyracer or include it in templates should be replaced with mini_racer that depends on the most recent version of v8.

per: #29276 (comment)

@rails-bot

Copy link
Copy Markdown

r? @rafaelfranca

(@rails-bot has picked a reviewer for you, use r? to override)

@schneems schneems left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much faster & quite stable.

@vipulnsward

Copy link
Copy Markdown
Member

I assume this is already compatible with rails maintained sprockets-dependent libs?

@SamSaffron

Copy link
Copy Markdown
Contributor Author

Yeah it has been execjs compatible for a very long time.

@guilleiguaran guilleiguaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@guilleiguaran guilleiguaran merged commit 53c8dff into rails:master May 30, 2017
jcoyne added a commit to sul-dlss-deprecated/was-thumbnail-service that referenced this pull request Sep 6, 2018
therubyracer has been abandoned by Rails: rails/rails#29285
It is no longer compatible with the latest version of
autoprefixer-rails: ai/autoprefixer-rails#137
jcoyne added a commit to sul-dlss/sul_pub that referenced this pull request Sep 6, 2018
therubyracer has been abandoned by Rails: rails/rails#29285
It is no longer compatible with the latest version of
autoprefixer-rails: ai/autoprefixer-rails#137
peetucket pushed a commit to sul-dlss/sul_pub that referenced this pull request Sep 7, 2018
therubyracer has been abandoned by Rails: rails/rails#29285
It is no longer compatible with the latest version of
autoprefixer-rails: ai/autoprefixer-rails#137
@jparrish62

Copy link
Copy Markdown

I've upgraded from 4.1 to 5.2. I've replaced therubyracer with mini_racer, as a result I'm getting an error "Can't load file v8" I've also tried adding the libv8 gem. Its doesn't help. Any suggestions?

pixeltrix added a commit to pixeltrix/govuk-coronavirus-vulnerable-people-form that referenced this pull request Mar 28, 2020
The gem 'therubyracer' is dependent on an old version of libv8 with
multiple security vulnerabilities and doesn't build easily on the
latest version of macOS. Rails replaced it with the 'mini_racer' gem
in the PR rails/rails#29285.
gbp added a commit to mysociety/alaveteli that referenced this pull request Dec 21, 2020
Use mini_racer which uses a up to date version of libv8 which has
security fixes and recommended upstream in Rails for new applications
which don't have pre-existing JavaScript runtimes in production.

See rails/rails#29285
ansonhoyt added a commit to TIU11/rails-application-template that referenced this pull request Dec 16, 2025
- group "Application Management" gems together
- replace stale 'therubyracer' with 'mini_racer'. Follows the new rails defaults, rails/rails#29285.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants