Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Node and Yarn default versions #986

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Master (unreleased)

* Default node version now 12.16.2, yarn is 1.22.4 (https://github.com/heroku/heroku-buildpack-ruby/pull/986)
* Gracefully handle unrecognised stacks ([#982](https://github.com/heroku/heroku-buildpack-ruby/pull/982))

## v215 (4/9/2020)
Expand Down
8 changes: 8 additions & 0 deletions changelogs/v216/node_yarn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Ruby apps now default to Node version 12.16.2 and Yarn version 1.22.4

Applications using the `heroku/ruby` buildpack that do not have a version of Node installed by another buildpack (such as the `heroku/nodejs` buildpack) will now receive:

- Node version 12.16.2 (was previously 10.15.3)
- Yarn version 1.22.4 (was previously 1.16.0)

These versions and instructions on how to specify a specific version of these binaries can be found on the [installed binaries section of the Heroku Ruby Support page](https://devcenter.heroku.com/articles/ruby-support#installed-binaries).
4 changes: 2 additions & 2 deletions lib/language_pack/helpers/nodebin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class LanguagePack::Helpers::Nodebin
def self.hardcoded_node_lts
version = "10.15.3"
version = "12.16.2"
{
"number" => version,
"url" => "https://s3.amazonaws.com/heroku-nodebin/node/release/linux-x64/node-v#{version}-linux-x64.tar.gz"
}
end

def self.hardcoded_yarn
version = "1.16.0"
version = "1.22.4"
{
"number" => version,
"url" => "https://s3.amazonaws.com/heroku-nodebin/yarn/release/yarn-v#{version}.tar.gz"
Expand Down