From 29d66252449ef922b72bb48e4b0d62361feafed3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 21:26:50 +0000 Subject: [PATCH 1/2] Bump @github/relative-time-element from 4.4.8 to 5.0.0 Bumps [@github/relative-time-element](https://github.com/github/relative-time-element) from 4.4.8 to 5.0.0. - [Release notes](https://github.com/github/relative-time-element/releases) - [Commits](https://github.com/github/relative-time-element/compare/v4.4.8...v5.0.0) --- updated-dependencies: - dependency-name: "@github/relative-time-element" dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7725c3455c..1fdefc4253 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@github/details-menu-element": "^1.0.12", "@github/image-crop-element": "^5.0.0", "@github/include-fragment-element": "^6.3.0", - "@github/relative-time-element": "^4.0.0", + "@github/relative-time-element": "^5.0.0", "@github/remote-input-element": "^0.4.0", "@github/tab-container-element": "^3.1.2", "@oddbird/popover-polyfill": "^0.5.2", @@ -4389,9 +4389,9 @@ "dev": true }, "node_modules/@github/relative-time-element": { - "version": "4.4.8", - "resolved": "https://registry.npmjs.org/@github/relative-time-element/-/relative-time-element-4.4.8.tgz", - "integrity": "sha512-FSLYm6F3TSQnqHE1EMQUVVgi2XjbCvsESwwXfugHFpBnhyF1uhJOtu0Psp/BB/qqazfdkk7f5fVcu7WuXl3t8Q==" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@github/relative-time-element/-/relative-time-element-5.0.0.tgz", + "integrity": "sha512-L/2r0DNR/rMbmHWcsdmhtOiy2gESoGOhItNFD4zJ3nZfHl79Dx3N18Vfx/pYr2lruMOdk1cJZb4wEumm+Dxm1w==" }, "node_modules/@github/remote-input-element": { "version": "0.4.0", @@ -17632,9 +17632,9 @@ "dev": true }, "@github/relative-time-element": { - "version": "4.4.8", - "resolved": "https://registry.npmjs.org/@github/relative-time-element/-/relative-time-element-4.4.8.tgz", - "integrity": "sha512-FSLYm6F3TSQnqHE1EMQUVVgi2XjbCvsESwwXfugHFpBnhyF1uhJOtu0Psp/BB/qqazfdkk7f5fVcu7WuXl3t8Q==" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@github/relative-time-element/-/relative-time-element-5.0.0.tgz", + "integrity": "sha512-L/2r0DNR/rMbmHWcsdmhtOiy2gESoGOhItNFD4zJ3nZfHl79Dx3N18Vfx/pYr2lruMOdk1cJZb4wEumm+Dxm1w==" }, "@github/remote-input-element": { "version": "0.4.0", diff --git a/package.json b/package.json index a197190082..2813d44134 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@github/details-menu-element": "^1.0.12", "@github/image-crop-element": "^5.0.0", "@github/include-fragment-element": "^6.3.0", - "@github/relative-time-element": "^4.0.0", + "@github/relative-time-element": "^5.0.0", "@github/remote-input-element": "^0.4.0", "@github/tab-container-element": "^3.1.2", "@oddbird/popover-polyfill": "^0.5.2", From 9c03064c906ec1c7293d3e1a4482cbda1f82ede1 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 16:46:51 -0800 Subject: [PATCH 2/2] Bump @github/relative-time-element from 4.4.8 to 5.0.0 (#3979) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com> Co-authored-by: primer-css --- app/components/primer/beta/relative_time.rb | 3 +++ static/arguments.json | 6 ++++++ static/info_arch.json | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/app/components/primer/beta/relative_time.rb b/app/components/primer/beta/relative_time.rb index c4ff815ca8..27c1ae9ba2 100644 --- a/app/components/primer/beta/relative_time.rb +++ b/app/components/primer/beta/relative_time.rb @@ -95,6 +95,7 @@ class RelativeTime < Primer::Component # @param month [Symbol] What format months should take. <%= one_of(Primer::Beta::RelativeTime::MONTH_OPTIONS) %> # @param year [Symbol] What format years should take. <%= one_of(Primer::Beta::RelativeTime::YEAR_OPTIONS) %> # @param time_zone_name [Symbol] What format the time zone should take. <%= one_of(Primer::Beta::RelativeTime::TIMEZONENAME_OPTIONS) %> + # @param time_zone [String] The IANA time zone identifier to use for formatting (e.g., "America/New_York"). # @param threshold [String] The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute. # @param precision [Symbol] The precision elapsed time should display. <%= one_of(Primer::Beta::RelativeTime::PRECISION_OPTIONS) %> # @param format [Symbol] The format the display should take. <%= one_of(Primer::Beta::RelativeTime::FORMAT_OPTIONS) %> @@ -116,6 +117,7 @@ def initialize( month: MONTH_DEFAULT, year: YEAR_DEFAULT, time_zone_name: TIMEZONENAME_DEFAULT, + time_zone: nil, threshold: nil, precision: PRECISION_DEFAULT, format: nil, @@ -138,6 +140,7 @@ def initialize( @system_arguments[:month] = fetch_or_fallback(MONTH_OPTIONS, month, MONTH_DEFAULT) if month.present? @system_arguments[:year] = fetch_or_fallback(YEAR_OPTIONS, year, YEAR_DEFAULT) if year.present? @system_arguments[:"time-zone-name"] = fetch_or_fallback(TIMEZONENAME_OPTIONS, time_zone_name, TIMEZONENAME_DEFAULT) if time_zone_name.present? + @system_arguments[:"time-zone"] = time_zone if time_zone.present? @system_arguments[:threshold] = threshold if threshold.present? @system_arguments[:precision] = precision if precision.present? @system_arguments[:title] = title if title.present? diff --git a/static/arguments.json b/static/arguments.json index 50578c739c..9a61839648 100644 --- a/static/arguments.json +++ b/static/arguments.json @@ -5009,6 +5009,12 @@ "default": "`TIMEZONENAME_DEFAULT`", "description": "What format the time zone should take. One of `nil`, `:long`, `:long_generic`, `:long_offset`, `:short`, `:short_generic`, or `:short_offset`." }, + { + "name": "time_zone", + "type": "String", + "default": "`nil`", + "description": "The IANA time zone identifier to use for formatting (e.g., \"America/New_York\")." + }, { "name": "threshold", "type": "String", diff --git a/static/info_arch.json b/static/info_arch.json index f24bce9465..6d9027e12b 100644 --- a/static/info_arch.json +++ b/static/info_arch.json @@ -16716,6 +16716,12 @@ "default": "`TIMEZONENAME_DEFAULT`", "description": "What format the time zone should take. One of `nil`, `:long`, `:long_generic`, `:long_offset`, `:short`, `:short_generic`, or `:short_offset`." }, + { + "name": "time_zone", + "type": "String", + "default": "`nil`", + "description": "The IANA time zone identifier to use for formatting (e.g., \"America/New_York\")." + }, { "name": "threshold", "type": "String",