Turf breaking changes
Turf 3.0.0 is its newest release with breaking changes, 3 of them. The first: Removed init. Every breaking API change we have recorded in Turf on CocoaPods: 34 breaking changes in 8 versions. Below, its 8 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 2.0.0 to 3.0.0: 3 breaking changes in 1 version.
- From 0.1.0 to 3.0.0: 33 breaking changes in 7 versions.
Turf 3.0.0 breaking changes
- Removed
init
Code calling init(rawValue:) on Array or Dictionary must switch to init(turfRawValue:). github.com - 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 - Removed
rawValue
Code reading rawValue on Array or Dictionary must switch to turfRawValue. github.com
Turf 2.0.0 breaking changes
- Removed
CLLocationCoordinate2D
On Linux use LocationCoordinate2D and related types; Apple platforms keep the CL-prefixed aliases. github.com - Renamed
BoundingBox
Use BoundingBox(southWest:northEast:) instead. github.com - Behavior changed
RadianCoordinate2D.direction
Code expecting RadianDirection must be updated to use Measurement<UnitAngle>. github.com - Configuration changed
Users building from source need Xcode 12.0 or above. github.com - Configuration changed
Carthage installs now build the library with library evolution enabled. github.com - Signature changed
RadianCoordinate2D.coordinate
The facing parameter is now Measurement<UnitAngle> instead of RadianDirection. github.com
Turf 2.0.0-rc.2 breaking changes
- Removed
FeatureCollection.identifier
Move the data to each individual feature in the collection. github.com - Removed
FeatureCollection.properties
Move the data to each individual feature in the collection. github.com - Removed
GeoJSON
Decode with JSONDecoder into GeoJSONObject instead of calling GeoJSON.parse. github.com - Removed
Geometry.type
Use pattern matching instead of the type property. github.com - Removed
Geometry.value
Use pattern matching instead of casting the value. github.com - Removed
Number
Use the Double-typed FeatureIdentifier.number case instead. github.com - Behavior changed
Feature.geometry
Code that reads geometry must now handle a nil value. github.com - Behavior changed
Feature.properties
Code building properties with literals must specify JSONValue cases or use JSONObject(rawValue:). github.com
Turf 2.0.0-beta.1 breaking changes
- Behavior changed
RadianCoordinate2D.direction
The direction result is now a Measurement<UnitAngle> instead of the previous direction type; update code that reads it. github.com - Signature changed
RadianCoordinate2D.coordinate
The facing parameter now takes Measurement<UnitAngle> instead of the previous direction type. github.com
Turf 1.0.0 breaking changes
- Renamed
GeoJSON.decodedFeatueCollection
The GeoJSON.decodedFeatueCollection symbol was renamed to GeoJSON.decodedFeatureCollection. Callers must update to the corrected spelling. github.com - Renamed
Turf.intersection
The Turf.intersection(_:_:) function was renamed to intersection(_:_:). Callers must update to the new name. github.com - Configuration changed
The package now requires iOS 10.0, macOS 10.12.0, tvOS 10.0 or watchOS 3.0 or later to run. Apps targeting older platform versions must raise their deployment target. github.com
Turf 0.5.0 breaking changes
- Behavior changed
BoundingBox
BoundingBox stores its properties in the order GeoJSON RFC7946 specifies, so code that reads or builds these values may now see different results and should be checked. github.com - Behavior changed
LineString.closesCoordinate
The IndexedCoordinate returned by LineString.closesCoordinate(to:) now has the correct distance, so code that relied on the previous distance value will get different numbers. github.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
Turf 0.4.0 breaking changes
- Removed
AnyJSONType
The AnyJSONType struct was removed in favor of making [String: Any?] conform to Codable. github.com - Removed
FeatureVariant
FeatureVariant was removed in favor of a single Feature struct; set Feature.geometry to the appropriate geometry instead. github.com
And 7 more in this version.
Turf 0.1.0 breaking changes
- Renamed
CLLocationDirection.differenceBetween
The method CLLocationDirection.differenceBetween(_:) was renamed to CLLocationDirection.difference(from:). Update calls to use the new name. github.com
Related packages
- github.com/mapbox/turf-swift on Swift Package Index
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.