d3-time-format is a JavaScript module for parsing and formatting dates in locale-specific representations. It is inspired by strptime and strftime, and it provides documentation and release information on d3js.org and GitHub.
Project status
- Maintenance status: Evidence suggests the source is quiet or dormant, with the most recent upstream push on 2023-10-06 and the latest listed tagged update v4.1.0 on 2021-12-04. No recent activity is shown near today (2026-10-02).
- Update cadence: Updates are infrequent, with long gaps between major versions (2020, 2021) and none shown after 2023 upstream activity, indicating a low or paused release cadence.
AI summary generated
Recent updates
v4.1.0
v4.1.0 adds the ability to import locale definition JSON files directly via the package export map, and refreshes locale data. The release notes also mention dependency upgrades, reflected in updated dev tooling and lockfile contents.
Featuresv4.0.0
v4.0.0 switches the package to an ES module setup and updates build tooling and dependencies. Release notes also claim dependency updates and a reproducible build change, with a new minimum Node.js requirement (>= 12).
Breakingv3.0.0
v3.0.0 of d3-time-format updates the project to an ES2015-era baseline (dropping IE and older browsers) and refreshes documentation links and CDN examples to the v3 artifacts. The code changes in this diff mainly affect locale parsing internals and update project dependencies and tests.
Breakingv2.3.0
v2.3.0 introduces ISO 8601 week-based year formatting and parsing via new strftime-style directives %g and %G (and corresponding UTC behavior). In addition, several locale JSON files and locale formatting/parsing behavior were adjusted, primarily around datetime patterns and locale-specific strings.
Featuresv2.2.3
v2.2.3 updates d3-time-format to declare that setting the default locale has a side effect, which can affect bundler tree-shaking behavior. It also adds the zh-TW locale data.
BreakingFeaturesv2.2.2
The release notes for v2.2.2 claim a single user-facing change: adding the fa-IR locale. The code diff provided, however, only shows a package version bump and dependency lockfile updates, with no locale-related source changes visible.
Featuresv2.2.1
Release v2.2.1 updates the npm package publishing configuration to ensure locale JSON files are included in the published artifact. The change is targeted at restoring missing locale files when publishing to npm.
v2.2.0
v2.2.0 adds a new `%q` directive to format and parse the quarter of the year. It also includes several parsing and formatting bug fixes around week calculations (`%U`, `%W`, and `utcParse`) and improves UNIX timestamp parsing when combined with fractional directives (`%L` or `%f` with `%s`).
Featuresv2.1.3
Release v2.1.3 is described only as “Housekeeping.” The actual diff shows changes to entry points (package.json fields), the module barrel location (root index.js removed, src/index.js added), and the Rollup build configuration for externals.
Breakingv2.1.2
v2.1.2 adds two new locale definitions (nb-NO and ar-EG) and performs dependency updates. The release notes only mention locales and dependency bumps, but the actual diff also changes the build and packaging setup, including output directories and the package entrypoint used by CommonJS consumers.
Features