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
-
4.0.0 is coming up this discussion is to collect all the major changes ahead of Dev Summit.
Bundling and Module Updates
fetch
andFormData
are now managed and provided by ArcGIS REST JS in Node. Overriding the version offetch
used is now no longer supported. This is to prepare for the arrival offetch
in 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-auth
package 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-auth
have also been renamed. See the authentication changes below.@esri/arcgis-rest-service-admin
package has been merged into@esri/arcgis-rest-feature-service
and removed. To migrate your applications simply change any imports from@esri/arcgis-rest-service-admin
to@esri/arcgis-rest-feature-service
.@esri/arcgis-rest-types
has 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
,ApiKey
andApplicationCredentials
classes have been renamed to better correspond with the authentication methods in the documentation:UserSession
is nowArcGISIdentityManager
ApiKey
is nowApiKeyManager
ApplicationCredentials
is nowApplicationCredentialsManager
When combined with the package consolidation changes your applications can import the new classes from
@esri/arcgis-rest-request
:Added a
ArcGISIdentityManager.canRefresh
getter 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 arevokeToken
helper 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
authentication
is 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