Skip to content

add ISO8601 duration formatting - #4343

Merged
gcanti merged 4 commits into
next-minorfrom
duration-format-iso
Feb 5, 2025
Merged

gcanti merged 4 commits into
next-minorfrom
duration-format-iso

Conversation

@fubhy

@fubhy fubhy commented Jan 26, 2025

Copy link
Copy Markdown
Member

Should we add this? If so, I'd add a parser implementation too. The spec isn't clear on how to deal with months and years but I left them out anyways for now which is in line with our existing Duration implementation which also doesn't handle those.

Closes #4319

@fubhy
fubhy requested a review from mikearnaldi as a code owner January 26, 2025 12:00
@changeset-bot

changeset-bot Bot commented Jan 26, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1e4c3c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
effect Minor
@effect/cli Major
@effect/cluster-browser Major
@effect/cluster-node Major
@effect/cluster-workflow Major
@effect/cluster Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc-http Major
@effect/rpc Major
@effect/sql-clickhouse Major
@effect/sql-d1 Major
@effect/sql-drizzle Major
@effect/sql-kysely Major
@effect/sql-libsql Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-do Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/vitest Major
@effect/ai Major
@effect/ai-openai Major

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

@fubhy
fubhy force-pushed the duration-format-iso branch from 88a9ef1 to 3489bac Compare January 26, 2025 12:06
@effect-bot
effect-bot changed the base branch from main to next-minor January 26, 2025 12:06
@effect-bot effect-bot added the v3/next-minor Queues this PR for the next Effect V3 minor release. label Jan 26, 2025
@effect-bot
effect-bot force-pushed the next-minor branch 6 times, most recently from bbe556f to df7f007 Compare January 28, 2025 10:12
@mikearnaldi

Copy link
Copy Markdown
Member

I can't think of an argument against imho

@fubhy

fubhy commented Jan 30, 2025

Copy link
Copy Markdown
Member Author

I can't think of an argument against imho

Alright, let's do it then!

@fubhy
fubhy force-pushed the duration-format-iso branch from b9d4a6f to 1e4c3c0 Compare January 31, 2025 09:12
@fubhy
fubhy requested a review from gcanti as a code owner January 31, 2025 09:12
@effect-bot
effect-bot force-pushed the next-minor branch 9 times, most recently from 147d0a7 to 0e9616f Compare February 2, 2025 14:36
effect-bot pushed a commit that referenced this pull request Feb 5, 2025
effect-bot pushed a commit that referenced this pull request Feb 5, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 6, 2025
effect-bot pushed a commit that referenced this pull request Feb 7, 2025
effect-bot pushed a commit that referenced this pull request Feb 7, 2025
effect-bot pushed a commit that referenced this pull request Feb 9, 2025
effect-bot pushed a commit that referenced this pull request Feb 10, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
effect-bot pushed a commit that referenced this pull request Feb 11, 2025
@tim-smart tim-smart mentioned this pull request Feb 12, 2025
effect-bot pushed a commit that referenced this pull request Feb 12, 2025
effect-bot pushed a commit that referenced this pull request Feb 12, 2025
effect-bot pushed a commit that referenced this pull request Feb 13, 2025
tim-smart pushed a commit that referenced this pull request Feb 14, 2025
tim-smart pushed a commit that referenced this pull request Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3/next-minor Queues this PR for the next Effect V3 minor release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ISO-8601 format for Duration

4 participants