github.com/mapbox/turf-swift breaking changes
github.com/mapbox/turf-swift 3.0.0 (August 27, 2024) is its newest release with breaking changes, 3 of them. The first: Removed RawRepresentable. Every breaking API change we have recorded in github.com/mapbox/turf-swift on Swift Package Index: 19 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.1.0, released October 13, 2026. Source repository
- From 1.0.0 to 3.0.0: 3 breaking changes in 1 version.
- From 0.1.0 to 3.0.0: 18 breaking changes in 4 versions.
github.com/mapbox/turf-swift 3.0.0 breaking changes
- Removed
RawRepresentable
The public RawRepresentable conformance for Array and Dictionary is removed. Use init(turfRawValue:) instead of init(rawValue:), and turfRawValue instead of rawValue. github.com - Renamed
init
Code calling init(rawValue:) on the affected types must switch to init(turfRawValue:). github.com - Renamed
rawValue
Code reading rawValue on the affected types must switch to turfRawValue. github.com
github.com/mapbox/turf-swift 1.0.0 breaking changes
- Renamed
GeoJSON.decodedFeatueCollection
GeoJSON.decodedFeatueCollection was renamed to GeoJSON.decodedFeatureCollection. Update calls to use the corrected spelling. github.com - Renamed
Turf.intersection
The Turf.intersection(_:_:) function was renamed to intersection(_:_:). Update calls to use the new name. github.com - Configuration changed
Turf now requires iOS 10.0 or above, macOS 10.12.0 or above, tvOS 10.0 or above, or watchOS 3.0 or above to run. Apps targeting older OS versions must raise their deployment target. github.com
github.com/mapbox/turf-swift 0.5.0 breaking changes
- Behavior changed
BoundingBox
BoundingBox stores its properties differently to follow GeoJSON RFC7946, so code that reads those values may get different results. github.com - Behavior changed
LineString.closesCoordinate
The IndexedCoordinate returned by LineString.closesCoordinate(to:) now has the correct distance value, so code relying on the old distance may get different results. github.com
github.com/mapbox/turf-swift 0.4.0 breaking changes
- Removed
AnyJSONType
Use [String: Any?], which conforms to Codable, instead of AnyJSONType. github.com - Removed
CLLocationCoordinate2D
CLLocationCoordinate2D no longer conforms to Codable, so encode coordinates with your own precision. github.com - Removed
FeatureVariant
Use a single Feature instance and set its geometry property instead. github.com - Removed
JSONType
Use [String: Any?], which conforms to Codable, instead of the JSONType protocol. github.com - Removed
LineStringFeature
Create a Feature instance and set its geometry property to a LineString instance instead. github.com - Removed
PointFeature
Create a Feature instance and set its geometry property to a Point instance instead. github.com - Removed
Polyline
Use LineString instead of the removed Polyline type alias. github.com - Behavior changed
Polygon.contains
The ignoreBoundary argument previously behaved opposite to its meaning; code that relied on the old inverted behavior will get different results. github.com - Configuration changed
The package was migrated to Swift 5, so projects must build with Swift 5 to use this release. github.com - Signature changed
Geometry
Geometry is now an enumeration with an associated value for each geometry type, so code that used the struct must be updated. github.com
github.com/mapbox/turf-swift 0.1.0 breaking changes
- Renamed
CLLocationDirection.differenceBetween
CLLocationDirection.differenceBetween(_:) was renamed to CLLocationDirection.difference(from:). Update calls to use the new name. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.