- Notifications
You must be signed in to change notification settings - Fork1k
chore: update to node 20.19.4#19188
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
ea6c4b1
d2f4a58
7f654f6
b6273be
fcc2af1
def2ebe
66bafa3
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 👍 | ||
* Ideally the version of tzdata should correspond to the version of the | ||
* timezone database used by the version of Node we're running our tests | ||
* against. For example, Node v20.19.4 and tzdata@1.0.44 both correspond to | ||
* version 2025b of the ICU timezone: | ||
* https://github.com/nodejs/node/blob/v20.19.4/test/fixtures/tz-version.txt | ||
* https://github.com/rogierschouten/tzdata-generate/releases/tag/v1.0.44 | ||
* | ||
* For some reason though, the timezones allowed by `Intl.DateTimeFormat` in | ||
* Node diverged slightly from the timezones present in the tzdata package, | ||
* despite being derived from the same data. Notably, the timezones that we | ||
* filter out below are not allowed by Node as of v20.18.1 and onward–which is | ||
* the version that updated the 20 release line from 2024a to 2024b. | ||
*/ | ||
importtzDatafrom"tzdata"; | ||
exportconsttimeZones=Object.keys(tzData.zones) | ||
.filter((it)=>it!=="Factory"&&it!=="null") | ||
.sort(); | ||
exportconstgetPreferredTimezone=()=> | ||
Intl.DateTimeFormat().resolvedOptions().timeZone; |
Uh oh!
There was an error while loading.Please reload this page.