Jquery UI 1.12.1 uses .unique which is deprecated in jquery 3.2.1

Jquery UI 1.12.1 uses .unique which is deprecated in jquery 3.2.1

I am updating a web application to the latest versions of jQuery and jQueryUI. The jQuery 3.0.0 migration tool warns that .unique( is deprecated and should be replaced with .uniqueSort(. 

Message from JQMigrate console "JQMIGRATE: jQuery.unique is deprecated, use jQuery.uniqueSort"
 In the unminified calling jQueryUI the function is on line 512 

function processClassString( classes, checkOption ) {
var current, i;
for ( i = 0; i < classes.length; i++ ) {
current = that.classesElementLookup[ classes[ i ] ] || $();
if ( options.add ) {
current = $( $.unique( current.get().concat( options.element.get() ) ) );
} else {
current = $( current.not( options.element ).get() );
}
that.classesElementLookup[ classes[ i ] ] = current;
full.push( classes[ i ] );
if ( checkOption && options.classes[ classes[ i ] ] ) {
full.push( options.classes[ classes[ i ] ] );
}
}
}

jQuery v3.2.1
jQueryUI v1.12.1

Is there a recommended pairing of versions to use?
I don't want to muck about with  jQueryUI base code as that way lies madness

Any helpers and pointers welcome.