Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove time calendars #1188

Merged
merged 3 commits into from
Nov 16, 2020
Merged

Remove time calendars #1188

merged 3 commits into from
Nov 16, 2020

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Nov 14, 2020

Closes: #522

@codecov
Copy link

codecov bot commented Nov 14, 2020

Codecov Report

Merging #1188 (35075a4) into main (5930868) will increase coverage by 2.17%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1188      +/-   ##
==========================================
+ Coverage   93.55%   95.72%   +2.17%     
==========================================
  Files          19       19              
  Lines        7961     9175    +1214     
  Branches     1264     1384     +120     
==========================================
+ Hits         7448     8783    +1335     
+ Misses        506      386     -120     
+ Partials        7        6       -1     
Flag Coverage Δ
test262 37.58% <ø> (-4.03%) ⬇️
tests 91.86% <ø> (+2.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/slots.mjs
polyfill/lib/legacydate.mjs
polyfill/lib/intrinsicclass.mjs
polyfill/lib/shim.mjs
lib/temporal.mjs 100.00% <0.00%> (ø)
lib/slots.mjs 100.00% <0.00%> (ø)
lib/plainmonthday.mjs 91.32% <0.00%> (ø)
lib/plaintime.mjs 96.68% <0.00%> (ø)
lib/plaindate.mjs 93.31% <0.00%> (ø)
lib/intrinsicclass.mjs 59.09% <0.00%> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1501a78...e3e40b6. Read the comment docs.

Ms2ger
Ms2ger previously requested changes Nov 16, 2020
polyfill/lib/plaintime.mjs Outdated Show resolved Hide resolved
polyfill/lib/plaintime.mjs Outdated Show resolved Hide resolved
spec/plaindatetime.html Outdated Show resolved Hide resolved
- Remove Calendar.timeFromFields(), Calendar.timeAdd(),
  Calendar.timeUntil(), Calendar.hour(), ..., Calendar.nanosecond().
- Remove PlainTime.withCalendar().
- Remove now.plainTime().
- Remove the calendar argument from PlainTime constructor.
- Remove the calendarName option from PlainTime.toString().
- Throw if there's a non-ISO calendar passed to PlainTime.from().
- The value of PlainTime.calendar is always the ISO calendar.
- Leave the names of the slots, the properties returned from
  PlainTime.getFields() and PlainTime.getISOFields().

See: #522
It was decided in #260 that overflow: 'constrain' should not affect
invalid values coming from ISO strings, but it seems that it crept back in
during a refactor. Fix this and add a test so that it doesn't regress
again.
@ptomato
Copy link
Collaborator Author

ptomato commented Nov 16, 2020

I have addressed the comments, so landing this now; if there are further comments please let me know and I'll follow up.

@ptomato ptomato merged commit e311103 into main Nov 16, 2020
@ptomato ptomato deleted the 522-remove-time-calendars branch November 16, 2020 19:46
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.

Should we support alternate ways of telling time?
3 participants