4.0.0 Changelog #948
patrickarlt
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
4.0.0 is coming up this discussion is to collect all the major changes ahead of Dev Summit.
Bundling and Module Updates
fetchandFormDataare now managed and provided by ArcGIS REST JS in Node. Overriding the version offetchused is now no longer supported. This is to prepare for the arrival offetchin Node core.Version Updates and Supported Platforms
Package Consolidation
Several changes have been made to reduce the number of packages we publish as a part of ArcGIS REST JS and simplify our peer dependency story.
@esri/arcgis-rest-authpackage has been merged into@esri/arcgis-rest-request. This was done to reduce complexity with peer dependencies and to reduce the overall number of packages. Methods in@esri/arcgis-rest-authhave also been renamed. See the authentication changes below.@esri/arcgis-rest-service-adminpackage has been merged into@esri/arcgis-rest-feature-serviceand removed. To migrate your applications simply change any imports from@esri/arcgis-rest-service-adminto@esri/arcgis-rest-feature-service.@esri/arcgis-rest-typeshas been removed. Most types are now exported from the packages they are used in. If a specific type is used across multiple packages it is now available from@esri/arcgis-rest-request.Authentication Changes
The
UserSession,ApiKeyandApplicationCredentialsclasses have been renamed to better correspond with the authentication methods in the documentation:UserSessionis nowArcGISIdentityManagerApiKeyis nowApiKeyManagerApplicationCredentialsis nowApplicationCredentialsManagerWhen combined with the package consolidation changes your applications can import the new classes from
@esri/arcgis-rest-request:Added a
ArcGISIdentityManager.canRefreshgetter which will tell you if the session can be refreshed or not.Added
ArcGISIdentityManager.destroy()which will expire all tokens related to a session. ALso adds arevokeTokenhelper for manually expiring tokens in specific scenarios.Creating any of the main authentication classes should now be done with the factory methods. This is accomplished by adding several new static methods to classes in addition to existing methods like
ArcGISIdentityManager.authorize()andArcGISIdentityManager.beginOauth2():ApiKeyManager.fromKey()ApplicationCredentialsManager.fromCredentials()ArcGISIdentityManager.fromToken()ArcGISIdentityManager.signIn()Passing a string directly to
authenticationis now supported however it is still recommended to use one of the built in authentication mangers.Beta Was this translation helpful? Give feedback.
All reactions