diff --git a/layouts/partials/primary-download-matrix.hbs b/layouts/partials/primary-download-matrix.hbs
index 7a7c918c6ddc5..aa99321469e11 100644
--- a/layouts/partials/primary-download-matrix.hbs
+++ b/layouts/partials/primary-download-matrix.hbs
@@ -70,9 +70,14 @@
{{downloads.LinuxBinaries}} (ARM) |
- ARMv6 |
- ARMv7 |
- ARMv8 |
+ {{#semver-gte version.node "12.0.0"}}
+ ARMv7 |
+ ARMv8 |
+ {{else}}
+ ARMv6 |
+ ARMv7 |
+ ARMv8 |
+ {{/semver-gte}}
diff --git a/scripts/helpers/downloads.js b/scripts/helpers/downloads.js
index 52fffa2cdc2fa..3090de56adeb3 100644
--- a/scripts/helpers/downloads.js
+++ b/scripts/helpers/downloads.js
@@ -147,6 +147,11 @@ module.exports = (version) => {
downloads = downloads.filter(ver =>
ver.title !== 'Linux 32-bit Binary' &&
ver.title !== 'SmartOS 32-bit Binary')
+ } else if (semver.satisfies(version, '>= 12.0.0')) {
+ downloads = downloads.filter(ver =>
+ ver.title !== 'Linux 32-bit Binary' &&
+ ver.title !== 'SmartOS 32-bit Binary' &&
+ ver.title !== 'ARMv6 32-bit Binary')
}
return downloads.map((item) => resolveUrl(item, version))
}
diff --git a/scripts/helpers/semver-gte.js b/scripts/helpers/semver-gte.js
new file mode 100644
index 0000000000000..6b28b5d159c23
--- /dev/null
+++ b/scripts/helpers/semver-gte.js
@@ -0,0 +1,11 @@
+'use strict'
+
+const semver = require('semver')
+
+module.exports = function (a, b, options) {
+ if (arguments.length === 2) {
+ options = b
+ b = options.hash.compare
+ }
+ return semver.gte(a, b) ? options.fn(this) : options.inverse(this)
+}