Repository navigation
chore(deps): bump @dhis2/multi-calendar-dates to 3.1.0 and @dhis2/ui to 10.19.2 - #604
Merged
Merged
Conversation
Snapshots taken against @dhis2/multi-calendar-dates 2.1.2 as a baseline before bumping to 3.x. Ethiopian calls throw on 2.1.2 under the current Node/Temporal polyfill, which the snapshots record as-is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
getNowInCalendar no longer returns time of day in v3, which made
getNowInCalendarString({ long: true }) produce "YYYY-MM-DDTundefined:...".
Derive the time separately with Intl.DateTimeFormat for the given
time zone, keeping the existing time zone correction.
Gregory and Nepali regression snapshots are unchanged. Ethiopian
snapshots are updated deliberately: on 2.1.2 every Ethiopian call threw
"Era am ... was not matched by any era" under the Temporal polyfill;
on 3.x they return correct values (e.g. 2024-06-15 -> 2016-10-08, Sene).
The previously skipped Ethiopian getNowInCalendarString test now passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
🚀 Deployed on https://pr-604--dhis2-data-entry.netlify.app |
Picks up the latest calendar fixes in @dhis2/ui. @dhis2/multi-calendar-dates 3.1.0 returns hour/minute/second from getNowInCalendar again, so the Intl.DateTimeFormat workaround in getNowInCalendarString is removed and the time is read from the result. @dhis2-ui/calendar pins multi-calendar-dates exactly (3.0.0), so it is added to resolutions to keep a single copy in the bundle, including the one pulled in via @dhis2/app-shell -> @dhis2/ui. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kabaros
force-pushed
the
chore/bump-multi-calendar-dates
branch
from
October 13, 2026 11:59
5d9004c to
61aaa9c
Compare
kabaros
marked this pull request as ready for review
October 13, 2026 12:02
tomzemp
approved these changes
Oct 14, 2026
|
This was referenced Oct 15, 2026
Contributor
|
🎉 This PR is included in version 102.1.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
@dhis2/multi-calendar-datesfrom^2.1.2to^3.1.0.@dhis2/uifrom^10.17.0to^10.19.2(dependency andresolutions) for the latest calendar fixes.@dhis2/multi-calendar-datestoresolutions.@dhis2-ui/calendaris also pulled in through@dhis2/app-shell→@dhis2/ui. Without the resolution, the app would bundle two copies.getNowInCalendarString({ long: true }): 3.0.0'sgetNowInCalendardropped time of day, which broke the long format andgetRelativeTime(form expiry info, "last updated"). 3.1.0 returnshour/minute/secondagain, in the given time zone, so the time is read straight from the result. No workaround needed.Regression coverage
Adds
src/shared/multi-calendar-dates.regression.test.js, with snapshots taken on 2.1.2 before the bump. It covers every library function the app calls (getNowInCalendar,generateFixedPeriods,getFixedPeriodByDate,getAdjacentFixedPeriods,createFixedPeriodFromPeriodId,periodTypes) and the app's own helpers that wrap them, for gregory, ethiopian and nepali.Era am … was not matched by any erain Jest under Node 24. That's also why the existing Ethiopian test was skipped. On 3.x the values are correct (e.g. 2024-06-15 → 2016-10-08, Sene), so those snapshots were updated on purpose and the old test is un-skipped.Snapshots removed before merging
Testing
yarn test: 682 passed, 109 snapshotsyarn lint