Repository navigation
Add Duration.formatIso, Duration.fromIso and Schema.DurationFromIsoString - #9891
Merged
tim-smart merged 6 commits intoOct 26, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 7a0d93a The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 24, 2026 08:19
bd344a9 to
57c1a82
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
from
October 24, 2026 08:26
c1dccc7 to
77651c3
Compare
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 24, 2026 08:26
57c1a82 to
467df57
Compare
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
effect-bot
force-pushed
the
v4/next-minor
branch
from
October 25, 2026 01:53
77651c3 to
790c162
Compare
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 25, 2026 01:54
9ff9d26 to
e98302d
Compare
fubhy
approved these changes
Oct 25, 2026
effect-bot
force-pushed
the
v4/next-minor
branch
from
October 25, 2026 17:43
790c162 to
d8f433d
Compare
effect-bot
force-pushed
the
feat/duration-iso
branch
2 times, most recently
from
October 26, 2026 13:01
bfa3c3a to
58df1fa
Compare
tim-smart
force-pushed
the
v4/next-minor
branch
from
October 26, 2026 20:41
842d900 to
5227c52
Compare
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 26, 2026 20:42
58df1fa to
aebe1a0
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
from
October 26, 2026 20:47
5227c52 to
0dfd080
Compare
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 26, 2026 20:47
aebe1a0 to
b72872c
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
from
October 26, 2026 20:48
0dfd080 to
e75d84d
Compare
Add Duration.formatIso, Duration.fromIso, and Schema.DurationFromIsoString. Only exact units are supported; years and months are rejected because they have no fixed length.
Drop Temporal comparison tests and redundant cases, and expect no JSON Schema format annotation for DurationFromIsoString.
RFC 3339 durations reject the signed and fractional forms the encoder emits. Also restore the ISO helpers in the v3 migration guide.
effect-bot
force-pushed
the
feat/duration-iso
branch
from
October 26, 2026 20:48
b72872c to
7a0d93a
Compare
Merged
tim-smart
pushed a commit
that referenced
this pull request
Oct 26, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 26, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to yordis/effect
that referenced
this pull request
Oct 27, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 28, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 28, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
…ring (Effect-TS#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 28, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 28, 2026
…ring (#9891) Co-authored-by: Effect Bot <tech-ops@effectful.co>
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.
Type
Description
Closes #9888.
Closes EFF-2895.
Brings back ISO 8601 durations, exact units only:
W,D,H,M(afterT),S. A day is 24 hours, a week 7 days.Yand monthMare rejected, since they have no fixed length..or,, up to 9 digits) is allowed on the last time unit only.P1DT2H3M4.5S,PT0S,-PT1.5S); weeks are never emitted.Option.none()fromformatIso, and encoding fails in the codec.format: "duration": JSON Schema / OpenAPI define it as RFC 3339 Appendix A, which forbids signs, fractions and mixed weeks, so validators would reject values this codec emits.Testing
test/Duration.test.ts:formatIso,fromIso(accepted and rejected inputs, millis vs nanos representation) and round trip.test/schema/Schema.test.tsandtoJsonSchemaDocument.test.ts: decode/encode ofDurationFromIsoStringand its JSON Schema.