Skip to content

v2.0.0

Choose a tag to compare

@jgravois jgravois released this 22 Apr 17:51

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 withOptions method has been added to aid in passing through common request options to other individual methods repeatedly.
    • A new setDefaultRequestOptions method has been added to aid in passing through common request options in *all requests.
  • Breaking Changes

    • The utility methods getPortalUrl and getPortal have been moved to the portal package.

@esri/arcgis-rest-auth

  • Breaking Changes
    • The utility method getUserUrl has been moved to the portal package.
    • The internal methods generateToken and fetchToken now expect only options.
    • IOauth2Options has been renamed IOAuth2Options.

@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 SearchQueryBuilder has been introduced to help generate complex ArcGIS query strings.
  • Bug Fixes

    • add resource: resource is now an optional parameter when calling addItemResource to better support plain text 1db78b7a
    • createItem and updateItem now support binary item /data.
  • Breaking Changes
    *

    • group: The signatures of searchGroups and searchItems now match, making use of SearchQueryBuilder instead of a searchForm. 72f28985 #104
    • createItemInFolder now expects a folderId (instead of folder).
    • The signature of getItemResources has been updated (for consistency with the rest of rest-js.
    • portal interfaces: request/response interfaces have been renamed to match their functions faa5b3dd

@esri/arcgis-rest-feature-layer

  • Breaking Changes
    • This package has been renamed from feature-service to feature-layer (to disambiguate).
    • addFeatures and updateFeatures now expect a features argument (instead of adds/updates)
    • deleteFeatures now expects a objectIds argument (instead of deletes)
    • getLayer now expects a single argument.
    • feature-layer: Shared IParams interfaces have been removed (for consistency) 4adff112
    • feature responses: Result and Response interfaces have been removed 1948010b
    • interfaces: Request has been removed from option interface names 8bce221e

@esri/arcgis-rest-geocoding

  • Breaking Changes
    • This package has been renamed from geocoder to geocoding (for consistency).
    • The world Request has been removed from Options interfaces
    • The constant worldGeocoder has been renamed ARCGIS_ONLINE_GEOCODING_URL
    • the serviceInfo method has been removed (in favor of getGeocodeService).
    • The IGeocodeParams interface has been removed.

@esri/arcgis-rest-routing

  • Breaking Changes
    • The constant worldRoutingService has been renamed ARCGIS_ONLINE_ROUTING_URL
    • interface names: removes Request from interface names in routing and service-admin 57025262

@esri/arcgis-rest-service-admin

  • Breaking Changes
    • This package has been renamed from feature-service-admin to service-admin (for brevity and flexibility).
    • interface names: removes Request from interface names in routing and service-admin 57025262
    • portal interfaces: renames portal request/response interfaces to match their functions faa5b3dd

@esri/arcgis-rest-types

  • Breaking Changes
    • This package has been renamed from common-types to types (for brevity).
    • This package is now a dependency of other upstream rest-js packages that will be installed automatically. Relevent interfaces are re-exported so it is no longer necessary to import directly from the helper package.
    • The esri prefix has been removed from the esriUnits, esriFieldTypes and esriGeometryTypes types.

Other Changes

  • Breaking Changes
    • Internal helper methods like appendCustomParams are no longer documented. In the future, undocumented methods may change without notice.