Skip to content

Conversation

@ptomato
Copy link
Collaborator

@ptomato ptomato commented Jan 8, 2026

See tc39/proposal-intl-era-monthcode#101. This changes the general outline of ISODateSurpasses so that it parallels the outline of NonISODateSurpasses in the Intl Era Monthcode proposal as proposed in the PR.

Also refactors the polyfill code, but keeps the optimizations we already had regarding not passing weeks and days to ISODateSurpasses.

(Draft; merge if tc39/proposal-intl-era-monthcode#101 is adopted)

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

❌ Patch coverage is 93.61702% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.91%. Comparing base (1fec0fb) to head (f407a7f).

Files with missing lines Patch % Lines
polyfill/lib/calendar.mjs 93.61% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3245      +/-   ##
==========================================
- Coverage   97.94%   97.91%   -0.03%     
==========================================
  Files          22       22              
  Lines       10401    10414      +13     
  Branches     1814     1824      +10     
==========================================
+ Hits        10187    10197      +10     
- Misses        196      199       +3     
  Partials       18       18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ptomato ptomato marked this pull request as ready for review January 15, 2026 19:56
@ptomato ptomato force-pushed the editorial-isodatesurpasses branch from ff80068 to eae02f2 Compare January 27, 2026 01:03
@ptomato
Copy link
Collaborator Author

ptomato commented Jan 27, 2026

Updated this PR to make the non-ISO8601 calculations in the polyfill work according to the adopted normative change in proposal-intl-era-monthcode.

See tc39/proposal-intl-era-monthcode#101. This
changes the general outline of ISODateSurpasses so that it parallels
the outline of NonISODateSurpasses in the Intl Era/Month Code proposal
as proposed in the PR, and adds the CompareSurpasses operation.

Also refactors the polyfill code, but keeps the optimizations we already
had regarding not passing weeks and days to ISODateSurpasses.
@ptomato ptomato force-pushed the editorial-isodatesurpasses branch from eae02f2 to f407a7f Compare January 27, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants