- Add: Add
session_token
as optional parameter in the geocoding services
- Add: Add
depart_at
as optional parameter in the isochrone service
- Fix: Add
secondary_address
to list of accepted types for Geocoding v6
- Fix: Rename directions api annotation option
max_speed
tomaxspeed
#480
- Fix: Set
body = ''
for POST, PUT, PATCH, and DELETE requests that do not have a body #479
- Fix: Maximum Optimization V1 request size limits should not be enforced client-side
- Add: Add
depart_at
andarrive_by
as optional parameters in the directions service
- Add: Add
driving-traffic
as a profile option in the isochrone service
- Add: Geocoding
v6
service
- Add: Config for
Tokens#createToken
andTokens#updateToken
can now include theallowedApplications
property.
- Add: add additional EV values to the directions API request
- Add: add additional valid values for the directions api
annotations
option - Chore: update
documentation
,budo
,meow
, andremark-preset-davidtheclark
dependencies - Chore: update
jest
and associated dependencies
- Revert: add
driving-traffic
profile to Isochrone service. - Fix: Pin CI node version to LTS release (current LTS is 16.x).
- Fix: Fix-up package-lock.json with new metadata (based on node 14).
- Fix: Update
got
dependency to 11.8.5 (Fix for CVE-2022-33987). - Add: add electric vehicle routing parameters to Directions service.
Add: add contours_meters
Isochrone API parameter
Add: add ip
as valid value for proximity
parameter in the geocoding service
Add: add fuzzyMatch
and worldview
parameters to the geocoding service
Fix: Update got
depdendency to 10.7.0
Add: add driving-traffic
profile to Isochrone service.
- PATCH: remove unsupported
private
option fromcreateUpload
.
- Add: add
bounding box
parameter as a position option forStatic#getStaticImage.
- Add: add
padding
optional parameter forStatic#getStaticImage
.
- Add: add
fresh
parameter toStyles#getStyle
to bypass the cached version of the style. - Add: add
routing
parameter toGeocoding#forwardGeocode
andGeocoding#reverseGeocoding
. - Add: add
driving-traffic
profile toOptimization#getOptimization
. - Add: add
sortby
parameter toDatasets#listDatasets
. - Add: add
Tilesets#updateTileset
. - Add: add
fallback
,mapboxGLVersion
andmapboxGLGeocoderVersion
toStyles#getEmbeddableHtml
. - Add: add pagination support to
Tilesets#listTilesetJobs
andTilesets#listTilesetSources
. - Breaking change:
Uploads#createUpload
'smapId
parameter is nowtileset
, andtilesetName
is nowname
to be consistent across the API.mapId
andtilesetName
are deprecated, but will still work and may be removed in a future release. - Add: add
private
option toUploads#createUpload
. - Fix: fixed an issue where array parameters containing falsy values (e.g. for the
proximity
parameter inforwardGeocode
, where longitude or latitude coordinates are 0) were not being applied correctly.
- Add: add new parameters to
Tilesets#listTilesets
:type
,limit
,sortBy
,start
andvisibility
. - Add: add
Tilesets#tileJSONMetadata
method to retrieve a Tileset TileJSON metadata. - Add: add new
metadata
parameter toStyles#getStyle
to preservemapbox:
specific metadata from the style. - Add: add new Tilesets methods
deleteTileset
,createTilesetSource
,getTilesetSource
,listTilesetSources
,deleteTilesetSource
,createTileset
,publishTileset
,tilesetStatus
,tilesetJob
,listTilesetJobs
,getTilesetsQueue
,validateRecipe
,getRecipe
,updateRecipe
. - Add: add new
draft
parameter toStyles#getStyle
,Styles#deleteStyleIcon
andStyles#getStyleSprite
,Styles#getEmbeddableHtml
to work with draft styles. - Fix: Fix responses containing binary data when using
Static#getStaticImage
,Styles#getStyleSprite
andStyles#getFontGlyphRange
. - Fix: Fix requests for highres sprites in
Styles#getStyleSprite
. - Fix: set
position.bearing
to0
ifposition.pitch
is defined andposition.bearing
is not in the Static API. - Fix: use
tilesets.getRecipe
in tilesets API example.
- Add: add Isochrone API service.
- Add: add new style parameters to the Static Images API service:
addlayer
,setfilter
, andlayer_id
. - Breaking change:
insertOverlayBeforeLayer
is nowbefore_layer
in the Static Images API service. This change uses the API's name for the field and to support that the field can be used with the new style parameteraddlayer
.
- Fix: add missing
geometry
key to Tilequery service.
- Fix: filter empty waypoints from map matching requests.
- Fix: fix url token placement for service with clients.
- Fix:
Tokens#updateToken
can now setnull
value toreferrers
property to delete the property. - Fix:
Tokens#updateToken
can now setnull
value toresources
property to delete the property. - Breaking change: change all references to
referrer
{s} toallowedUrl
{s}.
- Add: Config for
Tokens#createToken
andTokens#updateToken
can now include thereferrers
property.
- Fix: Fix a CORS-related bug that caused Firefox to send preflight
OPTIONS
requests that were rejected by the server. This bug surfaced in Firefox with the Tilequery API, but may possibly have affected some other endpoints and some other browsers.
- Breaking change & fix: Config for
Static#getStaticImage
now includes aposition
property that can be either"auto"
or an object withcoordinates
,zoom
, etc., properties. This fixes buggy behavior with the"auto"
keyboard by forcing it to be mutually exclusive with all other positioning options. - Fix: Fix bug in
Static#getStaticImage
that resulted in reversed coordinates when creating a polyline overlay. - Fix: Loosen the type validation on coordinates, since longitudes greater than 180 or less than -180 are valid for some APIs.
- Change: Rename
MapMatching#getMatching
toMapMatching#getMatch
. - Change: Throw validation error if request configuration object includes invalid properties. This is a breaking change because it could cause your code to throw a new validation error informing you of a mistake in your code. But there is no change to the library's functionality: you'll just need to clean up invalid properties.
- Add: Add Optimization API service.
- Fix: Include all services in the UMD bundled client. Several were missing.
- Chore: Use
@mapbox/fusspot
for validation; remove the local implementation.
- Fix:
Directions#getDirections
andGeocoding#forwardGeocode
stringify boolean query parameters likesteps
andautocomplete
.
- Brand new codebase. Please read the documentation and try it out! The
mapbox
npm package is now deprecated in favor of the new@mapbox/mapbox-sdk
.