javascript - Is jQueryUI compatible to jQuery 3? Migrate Plugin shows deprecations -


i runnig symfony 2.8 based webpage using jquery 1.11.3. update jquery 3.2.1, changed import , added migration plugin well:

// old <script src="//code.jquery.com/jquery-1.12.4.min.js"></script>  <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>   // new <script src="//code.jquery.com/jquery-3.2.1.min.js"></script> <script src="//code.jquery.com/jquery-migrate-3.0.0.js"></script>  <script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> 

my understanding is, because of migration plugin, there should no problems existing scripts. incompatibilities or bc breaks between jquery 1.12 , 3 should handled plugin. is correct?

indeed seems work fine , plugin not report problems own scripts. so should save remove plugin (if use these scripts), right?

however, plugin reports several issues seem caused jqueryui, e.g.:

jqmigrate: jquery.expr[":"] jquery.expr.pseudos migratewarn @ jquery-migrate-3.0.0.js:62 @ jquery-migrate-3.0.0.js:75 (anonymous) @ jquery-ui.min.js:6 (anonymous) @ jquery-ui.min.js:6 (anonymous) @ jquery-ui.min.js:6  jqmigrate: jquery.unique deprecated, use jquery.uniquesort migratewarn @ jquery-migrate-3.0.0.js:62         @ jquery-migrate-3.0.0.js:75           @ jquery-ui.min.js:6 _classes    @ jquery-ui.min.js:6 ... 

if understand correctly, jqueryui uses code (jquery.expr[":"]) that should replaced (jquery.expr.pseudos), correct?

so, isn't jqueryui compatible jquery 3 @ all?

i removed migration plugin in everthing still worked fine? how should handled? worry or warning?

they're warnings, yes they're worry about, don't break code, you've discovered.

if feature deprecated, means maintainer plans remove in future. idea deprecation warning gives time , sufficient warning alter code before upgrading again, doesn't cause immediate problem. documentation, roadmaps , release notes of project contain information deprecation , removals well, can plan ahead.

basically, you're fine should plan change code in medium term avoid deprecated functionality.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -