Breaking Change Alert – No More Tasks

202
1
04-19-2022 10:18 AM
Noah-Sager
Esri Regular Contributor
1 1 202

This just in from our EC (Esri Community) correspondent in the field:

 

“Thanks, narrator. We’ve had a bit of breaking news here around some breaking changes for version 4.24 (summer release) of the ArcGIS API for JavaScript. It looks like all those Tasks that have been deprecated since version 4.20, and the Portal helper methods that have been deprecated since version 4.21, are going to be removed entirely at the next release.

The recommended way forward is to update to using the relevant rest classes and objects. There’s an entire blog available for our readers that goes into more detail here:

https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/rest-is-up-to-the-task/

And there’s a great video from René Rubalcava that clearly explains the story here:

https://www.youtube.com/watch?v=vVZkUdmia3w&t=2s

I’ve also been given information that these changes are already available for our users to test using `next` via CDN and NPM:

https://github.com/Esri/feedback-js-api-next

We’re also hearing that users are invited to comment here, or on the ArcGIS blog, with any questions or concerns they might have. Now, back to you in the studio.”

 

Well folks, you heard it here first (or second). At version 4.24, no more Tasks. Let’s just hope that rest, is up to the task.

1 Comment
About the Author
Noah Sager is a Product Engineer on the ArcGIS API for JavaScript team at Esri. Prior to joining Esri, he mapped utility lines around Appalachia, public restrooms in Chicago, and studied anti-predator and foraging behavior in squirrels in Canada.