Skip to content

Update to Node 24 - #23

Open
carlansley wants to merge 3 commits into
mainfrom
node24
Open

Update to Node 24#23
carlansley wants to merge 3 commits into
mainfrom
node24

Conversation

@carlansley

@carlansley carlansley commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #22. Note the vast majority of these changes are simply prettier reformatting. The actual changes are in the GitHub actions, and files at the top level like package.json and eslint.config.mjs.

@carlansley carlansley self-assigned this Aug 28, 2026
Copilot AI lite review requested due to automatic review settings August 28, 2026 19:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository to target newer Node runtimes (per Issue #22: require Node 24) and applies a broad set of formatting/style updates across the codebase, plus some CI/workflow and lint configuration adjustments.

Changes:

  • Update CI/workflows (Node versions, action versions, CodeQL action major bump; remove publish-beta workflow).
  • Reformat and wrap many TypeScript type signatures/expressions (primarily in vendored/ported date-fns and date-fns-tz sources).
  • Refresh repository metadata/docs (SECURITY, README, LICENSE).

Reviewed changes

Copilot reviewed 297 out of 298 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/holidays/united-states/federal-reserve-bank/is-us-federal-reserve-bank-closed.ts Formatting/wrapping of Date construction and holiday predicate.
src/holidays/united-states/federal-reserve-bank/get-all-us-federal-reserve-bank-holidays.spec.ts Test data object formatting.
src/holidays/united-states/federal-reserve-bank/add-us-federal-reserve-bank-business-days.ts Formatting/wrapping of Date construction.
src/date-fns/types.ts Formatting of interface/type declarations (line wrapping).
src/date-fns/transpose/index.ts Formatting of function signature/body; wrap long expressions.
src/date-fns/toDate/index.ts Formatting of generic function signature.
src/date-fns/subYears/index.ts Formatting of options interface and generic function signature.
src/date-fns/subWeeks/index.ts Formatting of options interface and generic function signature.
src/date-fns/subSeconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/subQuarters/index.ts Formatting of options interface and generic function signature.
src/date-fns/subMonths/index.ts Formatting of options interface and generic function signature.
src/date-fns/subMinutes/index.ts Formatting of options interface and generic function signature.
src/date-fns/subMilliseconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/subISOWeekYears/index.ts Formatting of options interface and generic function signature.
src/date-fns/subHours/index.ts Formatting of options interface and generic function signature.
src/date-fns/subDays/index.ts Formatting of options interface and generic function signature.
src/date-fns/subBusinessDays/index.ts Formatting of options interface and generic function signature.
src/date-fns/sub/index.ts Formatting of options interface and duration destructuring.
src/date-fns/startOfYesterday/index.ts Formatting of options interface.
src/date-fns/startOfYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfWeekYear/index.ts Formatting of imports, interface inheritance layout, and signature.
src/date-fns/startOfWeek/index.ts Formatting of imports, interface inheritance layout, and signature.
src/date-fns/startOfTomorrow/index.ts Formatting of options interface.
src/date-fns/startOfToday/index.ts Formatting of options interface.
src/date-fns/startOfSecond/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfQuarter/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfMonth/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfMinute/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfISOWeekYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfISOWeek/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfHour/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfDecade/index.ts Formatting of options interface and generic function signature.
src/date-fns/startOfDay/index.ts Formatting of options interface and generic function signature.
src/date-fns/setYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/setWeekYear/index.ts Formatting of imports/interface layout, signature, and wrapped call.
src/date-fns/setWeek/index.ts Formatting of imports/interface layout and generic function signature.
src/date-fns/setSeconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/setQuarter/index.ts Formatting of options interface and generic function signature.
src/date-fns/setMonth/index.ts Formatting of options interface and generic function signature.
src/date-fns/setMinutes/index.ts Formatting of options interface and generic function signature.
src/date-fns/setMilliseconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/setISOWeekYear/index.ts Formatting of options interface, signature, and wrapped call.
src/date-fns/setISOWeek/index.ts Formatting of options interface and generic function signature.
src/date-fns/setISODay/index.ts Formatting of options interface and generic function signature.
src/date-fns/setHours/index.ts Formatting of options interface and generic function signature.
src/date-fns/setDefaultOptions/index.ts Formatting of imports and assignment wrapping.
src/date-fns/setDayOfYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/setDay/index.ts Formatting of imports/interface layout, signature, and ternary wrapping.
src/date-fns/setDate/index.ts Formatting of options interface and generic function signature.
src/date-fns/set/index.ts Formatting of options interface.
src/date-fns/roundToNearestMinutes/index.ts Formatting of imports/interface layout, signature, and wrapped math.
src/date-fns/previousWednesday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousTuesday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousThursday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousSunday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousSaturday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousMonday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousFriday/index.ts Formatting of options interface and generic function signature.
src/date-fns/previousDay/index.ts Formatting of options interface and generic function signature.
src/date-fns/parseJSON/index.ts Formatting of options interface.
src/date-fns/parse/_lib/types.ts Formatting of imports and type alias wrapping.
src/date-fns/parse/_lib/parsers/TimestampSecondsParser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/StandAloneQuarterParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/SecondParser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/QuarterParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/MinuteParser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/LocalWeekParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/ISOWeekYearParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/ISOWeekParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.ts Formatting of wrapped calls and method signature.
src/date-fns/parse/_lib/parsers/ISOTimezoneParser.ts Formatting of wrapped calls and method signature.
src/date-fns/parse/_lib/parsers/ISODayParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/Hour1To24Parser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/Hour1to12Parser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/Hour0to23Parser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/Hour0To11Parser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/FractionOfSecondParser.ts Formatting of callback/method signature.
src/date-fns/parse/_lib/parsers/ExtendedYearParser.ts Formatting of method signature and token list layout.
src/date-fns/parse/_lib/parsers/EraParser.ts Formatting of wrapped expressions and method signature.
src/date-fns/parse/_lib/parsers/DayPeriodParser.ts Formatting of parse/set method signatures.
src/date-fns/parse/_lib/parsers/DayParser.ts Formatting of method signature.
src/date-fns/parse/_lib/parsers/DayOfYearParser.ts Formatting of imports, method signature, and token list layout.
src/date-fns/parse/_lib/parsers/AMPMParser.ts Formatting of parse/set method signatures.
src/date-fns/parse/_lib/parsers/AMPMMidnightParser.ts Formatting of parse/set method signatures.
src/date-fns/parse/_lib/Parser.ts Formatting of constructor call and abstract method signatures.
src/date-fns/nextWednesday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextTuesday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextThursday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextSunday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextSaturday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextMonday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextFriday/index.ts Formatting of options interface and generic function signature.
src/date-fns/nextDay/index.ts Formatting of options interface and generic function signature.
src/date-fns/min/index.ts Formatting of options interface and wrapping a conditional assignment.
src/date-fns/milliseconds/index.ts Formatting of destructured Duration parameter.
src/date-fns/max/index.ts Formatting of options interface and wrapping a conditional assignment.
src/date-fns/locale/en-US/_lib/match/index.ts Formatting of regex array literals.
src/date-fns/locale/en-US/_lib/localize/index.ts Formatting of month/day value arrays.
src/date-fns/locale/en-US/_lib/formatRelative/index.ts Formatting of function parameters across lines.
src/date-fns/locale/_lib/buildMatchPatternFn/index.ts Formatting of function signature and wrapped ternary.
src/date-fns/locale/_lib/buildFormatLongFn/index.ts Formatting of generic args and wrapped conditional.
src/date-fns/lightFormat/index.ts Formatting of signature and wrapped error string construction.
src/date-fns/lastDayOfYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/lastDayOfWeek/index.ts Formatting of imports/interface layout and signature.
src/date-fns/lastDayOfQuarter/index.ts Formatting of options interface and generic function signature.
src/date-fns/lastDayOfMonth/index.ts Formatting of options interface and generic function signature.
src/date-fns/lastDayOfISOWeekYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/lastDayOfISOWeek/index.ts Formatting of options interface and generic function signature.
src/date-fns/lastDayOfDecade/index.ts Formatting of options interface and generic function signature.
src/date-fns/isYesterday/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isWithinInterval/index.ts Formatting of array literal/sort chaining.
src/date-fns/isWeekend/index.ts Formatting of function signature.
src/date-fns/isWednesday/index.ts Formatting of function signature.
src/date-fns/isTuesday/index.ts Formatting of function signature.
src/date-fns/isTomorrow/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isToday/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isThursday/index.ts Formatting of function signature.
src/date-fns/isThisYear/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isThisWeek/index.ts Formatting of imports/options interface and wrapped return expression.
src/date-fns/isThisQuarter/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isThisMonth/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isThisISOWeek/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isThisHour/index.ts Formatting of signature and wrapped return expression.
src/date-fns/isSunday/index.ts Formatting of function signature.
src/date-fns/isSaturday/index.ts Formatting of function signature.
src/date-fns/isSameYear/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/isSameWeek/index.ts Formatting of options interface and wrapped normalizeDates/return.
src/date-fns/isSameSecond/index.ts Formatting of function signature.
src/date-fns/isSameQuarter/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/isSameMonth/index.ts Formatting of wrapped normalizeDates call and return expression.
src/date-fns/isSameMinute/index.ts Formatting of function signature.
src/date-fns/isSameISOWeekYear/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/isSameHour/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/isSameDay/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/isMonday/index.ts Formatting of function signature.
src/date-fns/isMatch/index.ts Formatting of imports/options interface layout and signature.
src/date-fns/isLeapYear/index.ts Formatting of function signature.
src/date-fns/isLastDayOfMonth/index.ts Formatting of function signature.
src/date-fns/isFriday/index.ts Formatting of function signature.
src/date-fns/isFirstDayOfMonth/index.ts Formatting of function signature.
src/date-fns/isExists/index.ts Formatting of return expression.
src/date-fns/isEqual/index.ts Formatting of function signature.
src/date-fns/isDate/index.ts Formatting of return expression.
src/date-fns/isBefore/index.ts Formatting of function signature.
src/date-fns/isAfter/index.ts Formatting of function signature.
src/date-fns/intlFormatDistance/index.ts Formatting of interface/type alias and wrapped normalizeDates call.
src/date-fns/intlFormat/index.ts Formatting of overload signatures and wrapped formatter call.
src/date-fns/intervalToDuration/index.ts Formatting of function signature.
src/date-fns/interval/index.ts Formatting of options interface/signature and wrapped throws/return.
src/date-fns/getYear/index.ts Formatting of function signature.
src/date-fns/getWeekYear/index.ts Formatting of imports/interface layout and signature.
src/date-fns/getWeeksInMonth/index.ts Formatting of imports/interface layout, signature, and wrapped return.
src/date-fns/getWeekOfMonth/index.ts Formatting of imports/interface layout and signature.
src/date-fns/getWeek/index.ts Formatting of imports/interface layout and signature.
src/date-fns/getQuarter/index.ts Formatting of function signature.
src/date-fns/getOverlappingDaysInIntervals/index.ts Formatting of signature and wrapped array/sort expressions.
src/date-fns/getMonth/index.ts Formatting of function signature.
src/date-fns/getMinutes/index.ts Formatting of function signature.
src/date-fns/getISOWeekYear/index.ts Formatting of function signature.
src/date-fns/getISOWeeksInYear/index.ts Formatting of function signature.
src/date-fns/getISOWeek/index.ts Formatting of function signature.
src/date-fns/getISODay/index.ts Formatting of function signature.
src/date-fns/getHours/index.ts Formatting of function signature.
src/date-fns/getDecade/index.ts Formatting of function signature.
src/date-fns/getDaysInYear/index.ts Formatting of function signature.
src/date-fns/getDaysInMonth/index.ts Formatting of function signature.
src/date-fns/getDayOfYear/index.ts Formatting of function signature.
src/date-fns/getDay/index.ts Formatting of function signature.
src/date-fns/getDate/index.ts Formatting of function signature.
src/date-fns/fromUnixTime/index.ts Formatting of options interface.
src/date-fns/formatRFC7231/index.ts Formatting of months array literal.
src/date-fns/formatRFC3339/index.ts Formatting of signature and wrapped math expression.
src/date-fns/formatRelative/index.ts Formatting of imports/options interface layout.
src/date-fns/formatISODuration/index.ts Formatting of duration destructuring.
src/date-fns/formatISO9075/index.ts Formatting of options interface and signature.
src/date-fns/formatISO/index.ts Formatting of options interface and signature.
src/date-fns/formatDuration/index.ts Formatting of defaults, signature, and wrapped token expression.
src/date-fns/formatDistanceToNowStrict/index.ts Formatting of options interface layout.
src/date-fns/formatDistanceToNow/index.ts Formatting of options interface layout and signature.
src/date-fns/formatDistance/index.ts Formatting of options interface layout and wrapped math expression.
src/date-fns/endOfYesterday/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfWeek/index.ts Formatting of imports/interface layout and generic function signature.
src/date-fns/endOfTomorrow/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfToday/index.ts Formatting of options interface and function signature.
src/date-fns/endOfSecond/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfQuarter/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfMonth/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfMinute/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfISOWeekYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfISOWeek/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfHour/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfDecade/index.ts Formatting of options interface and generic function signature.
src/date-fns/endOfDay/index.ts Formatting of options interface and generic function signature.
src/date-fns/eachYearOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/eachWeekOfInterval/index.ts Formatting of imports/options interface layout and signature.
src/date-fns/eachWeekendOfYear/index.ts Formatting of options interface and generic function signature.
src/date-fns/eachWeekendOfMonth/index.ts Formatting of options interface and generic function signature.
src/date-fns/eachWeekendOfInterval/index.ts Formatting of options interface and signature.
src/date-fns/eachQuarterOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/eachMonthOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/eachMinuteOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/eachHourOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/eachDayOfInterval/index.ts Formatting of options interface layout and signature.
src/date-fns/differenceInYears/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/differenceInWeeks/index.ts Formatting of options interface layout.
src/date-fns/differenceInQuarters/index.ts Formatting of options interface layout.
src/date-fns/differenceInMonths/index.ts Formatting of wrapped normalizeDates calls and conditionals.
src/date-fns/differenceInMinutes/index.ts Formatting of wrapped division expression.
src/date-fns/differenceInMilliseconds/index.ts Formatting of function signature.
src/date-fns/differenceInISOWeekYears/index.ts Formatting of wrapped normalizeDates call and wrapped expressions.
src/date-fns/differenceInHours/index.ts Formatting of options interface layout and wrapped normalizeDates call.
src/date-fns/differenceInDays/index.ts Formatting of wrapped normalizeDates call and wrapped expressions.
src/date-fns/differenceInCalendarYears/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/differenceInCalendarWeeks/index.ts Formatting of imports/options interface layout and wrapped expressions.
src/date-fns/differenceInCalendarQuarters/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/differenceInCalendarMonths/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/differenceInCalendarISOWeekYears/index.ts Formatting of wrapped normalizeDates call and wrapped return.
src/date-fns/differenceInCalendarISOWeeks/index.ts Formatting of wrapped normalizeDates call and wrapped expressions.
src/date-fns/differenceInCalendarDays/index.ts Formatting of wrapped normalizeDates call and wrapped expressions.
src/date-fns/differenceInBusinessDays/index.ts Formatting of wrapped normalizeDates call.
src/date-fns/constructNow/index.ts Formatting of generic function signature.
src/date-fns/constants/index.ts Formatting of constructFromSymbol constant declaration.
src/date-fns/compareDesc/index.ts Formatting of function signature.
src/date-fns/compareAsc/index.ts Formatting of function signature.
src/date-fns/closestTo/index.ts Formatting of options interface and wrapped normalizeDates/returns.
src/date-fns/clamp/index.ts Formatting of options interface, signature, and wrapped normalizeDates/return.
src/date-fns/areIntervalsOverlapping/index.ts Formatting of inclusive conditional.
src/date-fns/addYears/index.ts Formatting of options interface and generic function signature.
src/date-fns/addWeeks/index.ts Formatting of options interface and generic function signature.
src/date-fns/addSeconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/addQuarters/index.ts Formatting of options interface and generic function signature.
src/date-fns/addMonths/index.ts Formatting of options interface, signature, and wrapped setFullYear call.
src/date-fns/addMinutes/index.ts Formatting of options interface and generic function signature.
src/date-fns/addMilliseconds/index.ts Formatting of options interface and generic function signature.
src/date-fns/addISOWeekYears/index.ts Formatting of options interface and generic function signature.
src/date-fns/addHours/index.ts Formatting of options interface and generic function signature.
src/date-fns/addDays/index.ts Formatting of options interface and generic function signature.
src/date-fns/addBusinessDays/index.ts Formatting of options interface/signature and wrapped conditionals.
src/date-fns/add/index.ts Formatting of options interface, duration destructuring, and wrapped conditionals.
src/date-fns/_lib/protectedTokens/index.ts Formatting of function signature.
src/date-fns/_lib/normalizeInterval/index.ts Formatting of function signature.
src/date-fns/_lib/normalizeDates/index.ts Formatting of overloads/implementation and wrapped bind call.
src/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.ts Formatting of function signature.
src/date-fns/_lib/format/longFormatters/index.ts Formatting of formatter function signature.
src/date-fns/_lib/format/formatters/index.ts Formatting of formatter option type and helper signature.
src/date-fns/_lib/defaultOptions/index.ts Formatting of imports and DefaultOptions type alias.
src/date-fns-tz/toZonedTime/index.ts Formatting of signature and wrapped setHours call.
src/date-fns-tz/index.ts Formatting of type-only import.
src/date-fns-tz/getTimezoneOffset/index.ts Formatting of function signature.
src/date-fns-tz/fromZonedTime/index.ts Formatting of function signature.
src/date-fns-tz/formatInTimeZone/index.ts Formatting of wrapped format call.
src/date-fns-tz/format/index.ts Formatting of function signature and wrapped string replace logic.
src/date-fns-tz/format/formatters/index.ts Formatting of formatter type declaration.
src/date-fns-tz/_lib/tzTokenizeDate/index.ts Formatting of conditional expression and typeToPos declaration.
src/date-fns-tz/_lib/tzPattern/index.ts Formatting of regex constant declaration.
src/date-fns-tz/_lib/tzIntlTimeZoneName/index.ts Formatting of wrapped calls and helper signature.
src/date-fns-tz.spec.ts Formatting of test calls/arguments.
SECURITY.md Update supported-version table (>= 6.0).
README.md Update copyright year range.
LICENSE.txt Update copyright year range.
eslint.config.mjs Add eslint-comments plugin wiring/rules for date-fns folders.
.github/workflows/publish-beta.yml Remove beta publish workflow.
.github/workflows/codeql-analysis.yml Bump CodeQL action major version.
.github/workflows/ci.yml Update Node matrix and GitHub Actions versions/config.
.github/workflows/check-published-scheduled.yml Update checkout action version and environment variables.
Suppressed comments (1)

.github/workflows/ci.yml:43

  • Same as above: this job also tests Node 26.x even though the stated requirement is Node 24. Aligning both job matrices avoids inconsistent support signals and reduces CI variability.
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: ['24.x', '26.x']
    steps:

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/ci.yml
@carlansley
carlansley deployed to npm-publish August 28, 2026 19:57 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown

Coverage after merging node24 into main will be

74.16%▾ -1.46%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   date-fns-tz.spec.ts100%100%100%100%
   date-fns.spec.ts100%100%100%100%
   format-utc.spec.ts100%100%100%100%
   format-utc.ts100%100%100%100%
   index.ts100%100%100%100%
src/date-fns
   index.ts100%100%100%100%
src/date-fns-tz
   index.ts100%100%100%100%
src/date-fns-tz/_lib/getTimezoneOffsetInMilliseconds
   index.ts54.55%100%0%54.84%16–29
src/date-fns-tz/_lib/newDateUTC
   index.ts100%100%100%100%
src/date-fns-tz/_lib/tzIntlTimeZoneName
   index.ts30.30%100%0%31.15%13–26, 28–40, 42–46, 50–59
src/date-fns-tz/_lib/tzParseTimezone
   index.ts54.35%41.18%50%55.90%24–26, 30–32, 39–47, 51–62, 66–67, 73, 76–78, 81–91, 109, 113–138, 140–146, 156–158
src/date-fns-tz/_lib/tzPattern
   index.ts100%100%100%100%
src/date-fns-tz/_lib/tzTokenizeDate
   index.ts73.17%63.64%75%74.07%12, 38–43, 46–60, 78, 94–102
src/date-fns-tz/format
   index.ts96.69%66.67%100%97.18%337–348
src/date-fns-tz/format/formatters
   index.ts25.15%100%0%26.14%20–45, 50–71, 76–88, 93–103, 107–115, 117–124, 126–132, 134–140, 142–151
src/date-fns-tz/formatInTimeZone
   index.ts65.31%100%0%65.96%30–45
src/date-fns-tz/fromZonedTime
   index.ts59.02%100%0%59.32%34–57
src/date-fns-tz/getTimezoneOffset
   index.ts85.37%100%0%87.18%33–37
src/date-fns-tz/toDate
   index.ts26.51%18.18%9.09%27.09%93–97, 99–101, 106, 108–113, 117–119, 123–179, 182–216, 218–251, 253–340, 342–393, 395–408, 417–419, 421–441, 443–457, 459–469, 471–489
src/date-fns-tz/toZonedTime
   index.ts100%100%100%100%
src/date-fns/_lib/addLeadingZeros
   index.ts92.86%66.67%100%100%5
src/date-fns/_lib/defaultLocale
   index.ts100%100%100%100%
src/date-fns/_lib/defaultOptions
   index.ts89.66%100%50%92%22–23
src/date-fns/_lib/format/formatters
   index.ts33.18%42.86%22.22%33.42%91–105, 111–116, 123–139, 144–147, 160–161, 166–196, 201–231, 238, 242–243, 245–249, 251–255, 257–259, 265–292, 297–303, 308–314, 319–321, 328–334, 339–368, 373–409, 414–450, 455–492, 497–525, 530–565, 570–601, 606–610, 617–619, 626–632, 637–644, 649–651, 658–660, 672–697, 702–723, 728–740, 745–757, 762–763, 768, 772–781, 783–792, 794–800
src/date-fns/_lib/format/lightFormatters
   index.ts80.58%60%88.89%82.61%33–34, 40, 50–69, 76, 76, 87
src/date-fns/_lib/format/longFormatters
   index.ts28.75%100%0%28.95%9–19, 23–33, 37–68
src/date-fns/_lib/getRoundingMethod
   index.ts52.94%100%0%53.33%7–13
src/date-fns/_lib/getTimezoneOffsetInMilliseconds
   index.ts53.85%100%0%54.05%19–35
src/date-fns/_lib/normalizeDates
   index.ts71.43%100%0%72.73%23–31
src/date-fns/_lib/normalizeInterval
   index.ts58.82%100%0%60%8–13
src/date-fns/_lib/protectedTokens
   index.ts64.10%100%50%62.50%18–25, 27–30
src/date-fns/add
   index.ts93.18%25%100%100%63, 65, 65, 69, 69, 76
src/date-fns/addBusinessDays
   index.ts48.86%100%0%48.84%41–84
src/date-fns/addDays
   index.ts95.08%40%100%100%45–46, 49
src/date-fns/addHours
   index.ts80%100%0%81.25%38–46
src/date-fns/addISOWeekYears
   index.ts80.39%100%0%81.63%39–47
src/date-fns/addMilliseconds
   index.ts79.59%100%0%80.85%37–45
src/date-fns/addMinutes
   index.ts76.92%100%0%78%38–48
src/date-fns/addMonths
   index.ts88.66%28.57%100%93.26%49–54, 65, 68–71
src/date-fns/addQuarters
   index.ts79.59%100%0%80.85%37–45
src/date-fns/addSeconds
   index.ts79.59%100%0%80.85%37–45
src/date-fns/addWeeks
   index.ts79.59%100%0%80.85%37–45
src/date-fns/addYears
   index.ts79.59%100%0%80.85%37–45
src/date-fns/areIntervalsOverlapping
   index.ts77.38%100%0%78.05%63–80
src/date-fns/clamp
   index.ts76.34%100%0%76.92%69–89
src/date-fns/closestIndexTo
   index.ts52.31%100%0%52.38%32–61
src/date-fns/closestTo
   index.ts70.33%100%0%70.79%62–87
src/date-fns/compareAsc
   index.ts77.78%100%0%78.85%40–50
src/date-fns/compareDesc
   index.ts77.78%100%0%78.85%40–50
src/date-fns/constants
   index.ts100%100%100%100%
src/date-fns/constructFrom
   index.ts84.27%40%100%86.75%54, 56–65, 78–80
src/date-fns/constructNow
   index.ts86.36%100%0%88.10%36–40
src/date-fns/daysToWeeks
   index.ts86.11%100%0%88.24%29–32
src/date-fns/differenceInBusinessDays
   index.ts70%100%0%70.41%68–96
src/date-fns/differenceInCalendarDays
   index.ts67.12%100%0%67.61%47–69
src/date-fns/differenceInCalendarISOWeekYears
   index.ts74.07%100%0%75%38–50
src/date-fns/differenceInCalendarISOWeeks
   index.ts63.64%100%0%64.06%40–62
src/date-fns/differenceInCalendarMonths
   index.ts69.81%100%0%70.59%35–49
src/date-fns/differenceInCalendarQuarters
   index.ts70.37%100%0%71.15%36–50
src/date-fns/differenceInCalendarWeeks
   index.ts72.73%100%0%73.33%54–73
src/date-fns/differenceInCalendarYears
   index.ts75.51%100%0%76.60%35–45
src/date-fns/differenceInDays
   index.ts62.18%100%0%62.93%67–93, 99–114
src/date-fns/differenceInHours
   index.ts75.47%100%0%76.47%38–49
src/date-fns/differenceInISOWeekYears
   index.ts61.76%100%0%62.12%40–64
src/date-fns/differenceInMilliseconds
   index.ts84.21%100%0%86.11%30–34
src/date-fns/differenceInMinutes
   index.ts83.93%100%0%85.19%45–52
src/date-fns/differenceInMonths
   index.ts47.89%100%0%47.83%32–67
src/date-fns/differenceInQuarters
   index.ts81.82%100%0%83.33%34–40
src/date-fns/differenceInSeconds
   index.ts82.98%100%0%84.44%37–43
src/date-fns/differenceInWeeks
   index.ts87.69%100%0%88.89%55–61
src/date-fns/differenceInYears
   index.ts49.32%100%0%49.30%34–69
src/date-fns/eachDayOfInterval
   index.ts68.04%100%0%68.42%64–93
src/date-fns/eachHourOfInterval
   index.ts67.74%100%0%68.13%61–89
src/date-fns/eachMinuteOfInterval
   index.ts68.04%100%0%68.42%64–93
src/date-fns/eachMonthOfInterval
   index.ts67.71%100%0%68.09%63–92
src/date-fns/eachQuarterOfInterval
   index.ts69.47%100%0%69.89%64–91
src/date-fns/eachWeekOfInterval
   index.ts65.25%100%0%65.52%75–114
src/date-fns/eachWeekendOfInterval
   index.ts79.27%100%0%80%63–78
src/date-fns/eachWeekendOfMonth
   index.ts81.67%100%0%82.76%47–56
src/date-fns/eachWeekendOfYear
   index.ts80.70%100%0%81.82%44–53
src/date-fns/eachYearOfInterval
   index.ts67.71%100%0%68.09%63–92
src/date-fns/endOfDay
   index.ts78%100%0%79.17%37–46
src/date-fns/endOfDecade
   index.ts69.09%100%0%69.81%36–51
src/date-fns/endOfHour
   index.ts78%100%0%79.17%37–46
src/date-fns/endOfISOWeek
   index.ts82%100%0%83.33%39–46
src/date-fns/endOfISOWeekYear
   index.ts74.58%100%0%75.44%42–55
src/date-fns/endOfMinute
   index.ts78%100%0%79.17%37–46
src/date-fns/endOfMonth
   index.ts75%100%0%76%37–48
src/date-fns/endOfQuarter
   index.ts73.58%100%0%74.51%37–49
src/date-fns/endOfSecond
   index.ts78%100%0%79.17%37–46
src/date-fns/endOfToday
   index.ts88.37%100%0%90.24%36–39
src/date-fns/endOfTomorrow
   index.ts72.55%100%0%73.47%35–47
src/date-fns/endOfWeek
   index.ts71.01%100%0%71.64%47–65
src/date-fns/endOfYear
   index.ts79.59%100%0%80.85%37–45
src/date-fns/endOfYesterday
   index.ts78.72%100%0%80%35–43
src/date-fns/format
   index.ts93.87%59.26%100%95.84%359, 361, 366, 368, 373–375, 381–384, 391–393, 404–410, 416–418, 437–439, 450–452
src/date-fns/formatDistance
   index.ts49.30%100%0%49.30%104–211
src/date-fns/formatDistanceStrict
   index.ts57.67%100%0%57.75%122–211
src/date-fns/formatDistanceToNow
   index.ts94.29%100%0%95.15%97–101
src/date-fns/formatDistanceToNowStrict
   index.ts93.68%100%0%94.62%87–91
src/date-fns/formatDuration
   index.ts76.67%100%0%77.12%90–116
src/date-fns/formatISO
   index.ts45.61%100%0%45.54%50–110
src/date-fns/formatISO9075
   index.ts55.21%100%0%55.32%51–92
src/date-fns/formatISODuration
   index.ts73.33%100%0%74.42%31–41
src/date-fns/formatRFC3339
   index.ts50.54%100%0%50.55%45–89
src/date-fns/formatRFC7231
   index.ts72.06%100%0%72.73%47–64
src/date-fns/formatRelative
   index.ts

@github-actions

Copy link
Copy Markdown

Beta Published - Install Command: npm install @checkdigit/time@6.0.0-PR.23-fe1e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require Node 24

2 participants