npm / react-simple-maps
react-simple-maps
What changed in react-simple-maps 5, from its official release notes, upgrade guides and advisories. Also covers @types/react-simple-maps. Sources checked 2026-10-18.
1 breaking2 new APIs and options10 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-simple-maps 513 changes
Breaking changes 1
The style prop on Geography and Marker is now a plain React style object; the keyed default, hover, and pressed form no longer applies interaction styles.
New APIs and options 2
A core-only subpath export lets developers import ComposableMap without zoom/pan dependencies.
A zoom/pan-only subpath export lets developers import ZoomableGroup separately.
Fixes and other changes 10
ComposableMap no longer renders width and height as SVG attributes; it sets only the viewBox and projection translation, restoring responsive maps.
Moved from devDependencies to regular dependencies so public type definitions resolve correctly in consuming projects.
Moved from devDependencies to regular dependencies so public type definitions resolve correctly in consuming projects.
Moved from devDependencies to regular dependencies so public type definitions resolve correctly in consuming projects.
Moved from devDependencies to regular dependencies so public type definitions resolve correctly in consuming projects.
Bugfixes were made for Annotation.
Bugfixes were made for Marker.
The public API now has full type coverage, allowing developers to use TypeScript types across the API.
Bugfixes were made for useGeographies.
Bugfixes were made for useZoomPan.