Temporal & Intl for date & time

Open
#125 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
backend

Research direction

The issue discusses possible adoption of Temporal and Intl in d3-time-format but names no files or tests. First read the library’s current parsing and formatting entry points and assess which browser APIs are available at the project’s support baseline. Done would require a decided scope for replacing or retaining existing behavior and tests covering the chosen compatibility and bundle-size goals.

Written by the indexing model from the issue text.

Description

I didn't see a Wiki for questions and this really isn't an issue so hopefully this is the right spot to ask:

Would d3 consider implementing the date & time manipulation in Temporal once it has reached baseline on browsers? It reached Stage 3 in April and having seen previous proposals reach Stage 4 in 6-12 months, it is worth considering IMO. It is being developed in browsers as experimental right now and judging from the polyfill, it is as robust and ergonomic, if not more so, than 3rd party libraries.

As for formatting, Intl has things like RelativeTimeFormat which could reduce bundle size. Still offering the d3 versions would be nice for those that are actively using them, but switching the implementation under the hood to use browser standards (if not already doing so) could reduce bundle size.

I would be happy to contribute to this if there is interest.

Dominant language
JavaScript
Stars
338
Forks
100
Avg merge
6h 20m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from d3/d3-time-format

All issues in d3/d3-time-format

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.