d3-geo is a D3 JavaScript module for representing geographic features with spherical GeoJSON and applying geographic projections. It supports many map projections and uses spherical geometry, letting you rotate spherical data and project it for visualization.
Project status
- Maintenance status: Evidence suggests the repo has been quiet since 2024, with the most recent recorded upstream push on 2024-06-28 and the latest listed update v3.1.1 on 2024-03-12, which is more than a year ago relative to 2026-10-02.
- Update cadence: Updates appear sporadic, with the last two listed updates separated by roughly 1.2 years (v3.1.1 in 2024, v3.1.0 in 2022), indicating no clear ongoing cadence right now.
AI summary generated
Recent updates
v3.1.1
v3.1.1 adjusts the internal angular precision used when generating spherical circle geometry and when computing circle clipping via projection.clipAngle. The patch also updates build tooling (Rollup terser plugin) and significantly alters the repository README content.
Breakingv3.1.0
v3.1.0 introduces configurable precision for SVG path string generation via a new geoPath.digits option (defaulting to 3), along with internal performance work around string concatenation. It also fixes projection behavior when lambda is far outside the expected range (beyond approximately ±3π). Beyond the release notes, the repository also contains major packaging and distribution changes in package.json that can impact how consumers import the library.
Featuresv2.0.2
Release v2.0.2 was published on 2021-06-09, but the publisher did not provide any release notes. Because no documented changes are available, developers should review the corresponding commit diff and changelog in the repository to identify any undocumented behavior, dependency, or API changes before upgrading.
v3.0.1
v3.0.1 is a small maintenance release focused on dependency updates and making the build output reproducible. The code diff shows build tooling changes, including how the UMD banner header is generated.
v3.0.0
Release v3.0.0 primarily modernizes the package to ESM by adopting Node.js >=12 and setting the package to use `type: module`. The repository also reflects broader tooling and packaging changes, including new CI setup and test/build system updates.
Breakingv2.0.1
v2.0.1 updates the d3-array dependency resolution. The release notes state the intent is to adjust the d3-array version constraint to use a minimum of 2.5.
v2.0.0
v2.0.0 primarily updates the library to assume ES2015 runtime support and removes compatibility with older browsers like IE. The code diff, however, shows a much larger internal refactor around numeric summation and some math and edge-case behavior changes in geometry calculations.
Breakingv1.12.1
v1.12.1 is a small release that claims to fix clipping of degenerate polygons. The code changes show a deeper modification to the internal polygon clipping pipeline used by clipAngle, including changes to how points are represented and how the internal stream interface is called.
v1.12.0
v1.12.0 extends d3-geo’s projection API by aligning geoIdentity with other projections. It adds geoIdentity().angle() and makes geoIdentity callable with an invert method, and it introduces projection().reflectX() and projection().reflectY() for general projections. It also fixes conic projection invert (inverse) calculations.
BreakingFeaturesv1.11.9
Release v1.11.9 only includes a package version bump and changes to the dependency lockfile. The release notes are limited to "Update dependencies," and do not describe any specific packages or potential behavioral impact.
v1.11.8
Release v1.11.8 primarily claims a packaging metadata update, marking the package as having no side effects. The code diff, however, shows broader changes across the source tree and publishing configuration, including widespread import path updates to use explicit .js extensions and changes to what files are included in the npm package.
Breaking