v2.0.0
For a more readable explanation of the new features and breaking changes in this release, please take a look at What's new in v2.0.0.
@esri/arcgis-rest-request
-
New Features
- A new
withOptionsmethod has been added to aid in passing through common request options to other individual methods repeatedly. - A new
setDefaultRequestOptionsmethod has been added to aid in passing through common request options in *all requests.
- A new
-
Breaking Changes
- The utility methods
getPortalUrlandgetPortalhave been moved to theportalpackage.
- The utility methods
@esri/arcgis-rest-auth
- Breaking Changes
- The utility method
getUserUrlhas been moved to theportalpackage. - The internal methods
generateTokenandfetchTokennow expect only options. IOauth2Optionshas been renamedIOAuth2Options.
- The utility method
@esri/arcgis-rest-portal
This new package contains the methods previously found in @esri/arcgis-rest-items, groups, users and sharing. The individual packages have been deprecated.
-
New Features
- A new class
SearchQueryBuilderhas been introduced to help generate complex ArcGIS query strings.
- A new class
-
Bug Fixes
- add resource:
resourceis now an optional parameter when callingaddItemResourceto better support plain text1db78b7a createItemandupdateItemnow support binary item/data.
- add resource:
-
Breaking Changes
*- group: The signatures of
searchGroupsandsearchItemsnow match, making use ofSearchQueryBuilderinstead of a searchForm.72f28985#104 createItemInFoldernow expects afolderId(instead offolder).- The signature of
getItemResourceshas been updated (for consistency with the rest ofrest-js. - portal interfaces: request/response interfaces have been renamed to match their functions
faa5b3dd
- group: The signatures of
@esri/arcgis-rest-feature-layer
- Breaking Changes
- This package has been renamed from
feature-servicetofeature-layer(to disambiguate). addFeaturesandupdateFeaturesnow expect afeaturesargument (instead of adds/updates)deleteFeaturesnow expects aobjectIdsargument (instead of deletes)getLayernow expects a single argument.- feature-layer: Shared
IParamsinterfaces have been removed (for consistency)4adff112 - feature responses:
ResultandResponseinterfaces have been removed1948010b - interfaces:
Requesthas been removed from option interface names8bce221e
- This package has been renamed from
@esri/arcgis-rest-geocoding
- Breaking Changes
- This package has been renamed from
geocodertogeocoding(for consistency). - The world
Requesthas been removed from Options interfaces - The constant
worldGeocoderhas been renamedARCGIS_ONLINE_GEOCODING_URL - the
serviceInfomethod has been removed (in favor ofgetGeocodeService). - The
IGeocodeParamsinterface has been removed.
- This package has been renamed from
@esri/arcgis-rest-routing
- Breaking Changes
- The constant
worldRoutingServicehas been renamedARCGIS_ONLINE_ROUTING_URL - interface names: removes
Requestfrom interface names in routing and service-admin57025262
- The constant
@esri/arcgis-rest-service-admin
- Breaking Changes
@esri/arcgis-rest-types
- Breaking Changes
- This package has been renamed from
common-typestotypes(for brevity). - This package is now a dependency of other upstream
rest-jspackages that will be installed automatically. Relevent interfaces are re-exported so it is no longer necessary to import directly from the helper package. - The
esriprefix has been removed from theesriUnits,esriFieldTypesandesriGeometryTypestypes.
- This package has been renamed from
Other Changes
- Breaking Changes
- Internal helper methods like
appendCustomParamsare no longer documented. In the future, undocumented methods may change without notice.
- Internal helper methods like