stevenbenner / jquery-powertip

:speech_balloon: A jQuery plugin that creates hover tooltips.
https://stevenbenner.github.io/jquery-powertip/
MIT License
820 stars 137 forks source link

jQuery 4.0.0 support #189

Closed stevenbenner closed 6 months ago

stevenbenner commented 7 months ago

jQuery 4 is now in beta. PowerTip will require several changes to make it compatible.

Refactor for deprecated methods

PowerTip is currently using several methods that have been deprecated and removed in jQuery 4.0.0. These will need to be refactored to use vanilla JavaScript in order to support jQuery 4.

jQuery.isFunction()

jQuery.isNumeric()

jQuery.type()

Update jQuery dependency range in package.json

Mark version 4 as a valid dependency.

"dependencies": {
    "jquery": ">=1.7 <4.0"
},

Add jQuery 4.x line to test suite

Currently the test suite has support for the 1.x, 2.x, and 3.x lines. Add 4.x.

var jqVersions = [ '1.7.0', '1.12.4', '2.2.4', '3.6.4' ],
stevenbenner commented 6 months ago

Completed with commits:

This will be included in the next PowerTip release.