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.