From 96e657a95442b37bd845157711cf19efeb05c3e0 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 16 Mar 2023 11:40:55 -0700 Subject: [PATCH] install-node: Upgrade Node.js from 18.14.1 to 18.15.0. Signed-off-by: Anders Kaseorg --- scripts/lib/install-node | 6 ++--- version.py | 2 +- web/tests/drafts.test.js | 4 ++-- web/tests/rendered_markdown.test.js | 6 ++--- web/tests/timerender.test.js | 36 ++++++++++++++--------------- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/scripts/lib/install-node b/scripts/lib/install-node index a7b6510891..0fa34a80e5 100755 --- a/scripts/lib/install-node +++ b/scripts/lib/install-node @@ -1,18 +1,18 @@ #!/usr/bin/env bash set -euo pipefail -version=18.14.1 +version=18.15.0 arch="$(uname -m)" case $arch in x86_64) tarball="node-v$version-linux-x64.tar.xz" - sha256=ea3bd72ad5ccaa1d9bcb40da69a60f249d29672d41740fe8f3e976d0e9078f65 + sha256=c8c5fa53ce0c0f248e45983e86368e0b1daf84b77e88b310f769c3cfc12682ef ;; aarch64) tarball="node-v$version-linux-arm64.tar.xz" - sha256=52f33439dcca865bbb70194091f6ce0c02b2a32d5a744901f175fff1ca6d0c86 + sha256=98ea6ed0a1ae55334ab2c03c34d5e52c6dc3dee8f236c0afc08ab1c964506633 ;; esac diff --git a/version.py b/version.py index a253f22ff0..b9df4c0fc0 100644 --- a/version.py +++ b/version.py @@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 168 # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = (224, 2) +PROVISION_VERSION = (224, 3) diff --git a/web/tests/drafts.test.js b/web/tests/drafts.test.js index 393fdbdf33..cb9f6f312d 100644 --- a/web/tests/drafts.test.js +++ b/web/tests/drafts.test.js @@ -520,7 +520,7 @@ test("format_drafts", ({override_rewire, mock_template}) => { dark_background: "", topic: "topic", raw_content: "Test stream message", - time_stamp: "7:55 AM", + time_stamp: "7:55 AM", }, { draft_id: "id2", @@ -685,7 +685,7 @@ test("filter_drafts", ({override_rewire, mock_template}) => { dark_background: "", topic: "topic", raw_content: "Test stream message", - time_stamp: "7:55 AM", + time_stamp: "7:55 AM", }, { draft_id: "id3", diff --git a/web/tests/rendered_markdown.test.js b/web/tests/rendered_markdown.test.js index 7d1a540246..7a8d8ba77c 100644 --- a/web/tests/rendered_markdown.test.js +++ b/web/tests/rendered_markdown.test.js @@ -251,7 +251,7 @@ run_test("timestamp without time", () => { run_test("timestamp", ({mock_template}) => { mock_template("markdown_timestamp.hbs", true, (data, html) => { - assert.deepEqual(data, {text: "Thu, Jan 1, 1970, 12:00 AM"}); + assert.deepEqual(data, {text: "Thu, Jan 1, 1970, 12:00 AM"}); return html; }); @@ -271,7 +271,7 @@ run_test("timestamp", ({mock_template}) => { rm.update_elements($content); // Final asserts - assert.equal($timestamp.html(), '\nThu, Jan 1, 1970, 12:00 AM\n'); + assert.equal($timestamp.html(), '\nThu, Jan 1, 1970, 12:00 AM\n'); assert.equal($timestamp_invalid.text(), "never-been-set"); }); @@ -294,7 +294,7 @@ run_test("timestamp-twenty-four-hour-time", ({mock_template, override}) => { override(user_settings, "twenty_four_hour_time", false); rm.update_elements($content); - assert.equal($timestamp.html(), '\nWed, Jul 15, 2020, 8:40 PM\n'); + assert.equal($timestamp.html(), '\nWed, Jul 15, 2020, 8:40 PM\n'); }); run_test("timestamp-error", () => { diff --git a/web/tests/timerender.test.js b/web/tests/timerender.test.js index 68ce73d993..4e915f007c 100644 --- a/web/tests/timerender.test.js +++ b/web/tests/timerender.test.js @@ -54,13 +54,13 @@ run_test("get_localized_date_or_time_for_format returns correct format", () => { { format: "time", expected: { - date: "1:53 AM", + date: "1:53 AM", }, }, { format: "time_sec", expected: { - date: "1:53:08 AM", + date: "1:53:08 AM", }, }, { @@ -78,7 +78,7 @@ run_test("get_localized_date_or_time_for_format returns correct format", () => { { format: "dayofyear_time", expected: { - date: "Jan 27, 1:53 AM", + date: "Jan 27, 1:53 AM", }, }, { @@ -90,7 +90,7 @@ run_test("get_localized_date_or_time_for_format returns correct format", () => { { format: "dayofyear_year_time", expected: { - date: "Jan 27, 2021, 1:53 AM", + date: "Jan 27, 2021, 1:53 AM", }, }, { @@ -102,7 +102,7 @@ run_test("get_localized_date_or_time_for_format returns correct format", () => { { format: "weekday_dayofyear_year_time", expected: { - date: "Wed, Jan 27, 2021, 1:53 AM", + date: "Wed, Jan 27, 2021, 1:53 AM", }, }, ]; @@ -125,7 +125,7 @@ run_test("get_localized_date_or_time_for_format returns correct localized date", { language: "ru", expected: { - date: "четверг, 12 апреля 2018 г.", + date: "четверг, 12 апреля 2018 г.", }, }, { @@ -259,7 +259,7 @@ run_test("format_time_modern", () => { assert.equal(timerender.format_time_modern(few_minutes_in_future, today), "Jan 27, 2021"); assert.equal(timerender.format_time_modern(weeks_in_future, today), "Feb 16, 2021"); - assert.equal(timerender.format_time_modern(less_than_24_hours_ago, today), "2:53 AM"); + assert.equal(timerender.format_time_modern(less_than_24_hours_ago, today), "2:53 AM"); assert.equal( timerender.format_time_modern(twenty_four_hours_ago, today), "translated: Yesterday", @@ -287,7 +287,7 @@ run_test("format_time_modern_different_timezones", () => { assert.equal(timerender.format_time_modern(yesterday, today), "translated: Yesterday"); process.env.TZ = "America/Juneau"; - let expected = "translated: 5/16/2017 at 11:12:53 PM AKDT (UTC-08:00)"; + let expected = "translated: 5/16/2017 at 11:12:53 PM AKDT (UTC-08:00)"; assert.equal(timerender.get_full_datetime(yesterday), expected); assert.equal(timerender.format_time_modern(yesterday, today), "Tuesday"); process.env.TZ = utc_tz; @@ -298,7 +298,7 @@ run_test("format_time_modern_different_timezones", () => { assert.equal(timerender.format_time_modern(yesterday, today), "Tuesday"); process.env.TZ = "Asia/Brunei"; - expected = "translated: 5/17/2017 at 5:12:53 AM (UTC+08:00)"; + expected = "translated: 5/17/2017 at 5:12:53 AM (UTC+08:00)"; assert.equal(timerender.get_full_datetime(yesterday), expected); assert.equal(timerender.format_time_modern(yesterday, today), "translated: Yesterday"); process.env.TZ = utc_tz; @@ -309,7 +309,7 @@ run_test("format_time_modern_different_timezones", () => { assert.equal(timerender.format_time_modern(yesterday, today), "Friday"); process.env.TZ = "America/Juneau"; - expected = "translated: 5/11/2017 at 11:12:53 PM AKDT (UTC-08:00)"; + expected = "translated: 5/11/2017 at 11:12:53 PM AKDT (UTC-08:00)"; assert.equal(timerender.get_full_datetime(yesterday), expected); assert.equal(timerender.format_time_modern(yesterday, today), "May 11"); process.env.TZ = utc_tz; @@ -386,13 +386,13 @@ run_test("absolute_time_12_hour", () => { let timestamp = date_2019.getTime(); let today = date_2019; - let expected = "Apr 12, 5:52 PM"; + let expected = "Apr 12, 5:52 PM"; let actual = timerender.absolute_time(timestamp, today); assert.equal(actual, expected); // timestamp with hour > 12, different year let next_year = add(today, {years: 1}); - expected = "Apr 12, 2019, 5:52 PM"; + expected = "Apr 12, 2019, 5:52 PM"; actual = timerender.absolute_time(timestamp, next_year); assert.equal(actual, expected); @@ -400,13 +400,13 @@ run_test("absolute_time_12_hour", () => { timestamp = date_2017.getTime(); today = date_2017; - expected = "May 18, 7:12 AM"; + expected = "May 18, 7:12 AM"; actual = timerender.absolute_time(timestamp, today); assert.equal(actual, expected); // timestamp with hour < 12, different year next_year = add(today, {years: 1}); - expected = "May 18, 2017, 7:12 AM"; + expected = "May 18, 2017, 7:12 AM"; actual = timerender.absolute_time(timestamp, next_year); assert.equal(actual, expected); }); @@ -443,7 +443,7 @@ run_test("absolute_time_24_hour", () => { run_test("get_full_datetime", () => { const time = date_2017_PM; - let expected = "translated: 5/18/2017 at 9:12:53 PM UTC"; + let expected = "translated: 5/18/2017 at 9:12:53 PM UTC"; assert.equal(timerender.get_full_datetime(time), expected); // test 24 hour time setting. @@ -456,7 +456,7 @@ run_test("get_full_datetime", () => { // Test the GMT[+-]x:y logic. const previous_env_tz = process.env.TZ; process.env.TZ = "Asia/Kolkata"; - expected = "translated: 5/19/2017 at 2:42:53 AM (UTC+05:30)"; + expected = "translated: 5/19/2017 at 2:42:53 AM (UTC+05:30)"; assert.equal(timerender.get_full_datetime(time), expected); process.env.TZ = previous_env_tz; }); @@ -526,12 +526,12 @@ run_test("set_full_datetime", () => { user_settings.twenty_four_hour_time = false; time_str = timerender.stringify_time(time); - expected = "5:52 PM"; + expected = "5:52 PM"; assert.equal(time_str, expected); time = add(time, {hours: -7}); // time between 1 to 12 o'clock time. user_settings.twenty_four_hour_time = false; time_str = timerender.stringify_time(time); - expected = "10:52 AM"; + expected = "10:52 AM"; assert.equal(time_str, expected); });