From aff8a19944128bc54439cacfd294162269ae3e7a Mon Sep 17 00:00:00 2001 From: Leask Wong Date: Fri, 8 May 2026 13:30:09 -0400 Subject: [PATCH] node: enable temporal support Co-authored-by: Leon Adomaitis <47161699+GunniBusch@users.noreply.github.com> --- Formula/n/node.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/n/node.rb b/Formula/n/node.rb index ab79605fdd54..192f20df2538 100644 --- a/Formula/n/node.rb +++ b/Formula/n/node.rb @@ -23,6 +23,7 @@ class Node < Formula depends_on "pkgconf" => :build depends_on "python@3.14" => :build + depends_on "rust" => :build depends_on "ada-url" depends_on "brotli" depends_on "c-ares" @@ -243,6 +244,9 @@ def post_install output = shell_output("#{bin}/node -e 'console.log(new Intl.NumberFormat(\"de-DE\").format(1234.56))'").strip assert_equal "1.234,56", output + output = shell_output("#{bin}/node -p 'typeof globalThis.Temporal?.Now?.zonedDateTimeISO'").strip + assert_equal "function", output + # make sure npm can find node ENV.prepend_path "PATH", opt_bin ENV.delete "NVM_NODEJS_ORG_MIRROR"