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()
src/utility.js:
if ($.isFunction(tipText)) {
src/utility.js:
if ($.isFunction(tipObject)) {
jQuery.isNumeric()
src/csscoordinates.js:
if ($.isNumeric(value)) {
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.left), true, key + ': left property is set to a number');
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.bottom), true, key + ': bottom property is set to a number');
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.top), true, key + ': top property is set to a number');
assert.strictEqual($.isNumeric(coords.left), true, key + ': left property is set to a number');
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.top), true, key + ': top property is set to a number');
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.right), true, key + ': right property is set to a number');
test/unit/placementcalculator.js:
assert.strictEqual($.isNumeric(coords.right), true, key + ': right property is set to a number');
assert.strictEqual($.isNumeric(coords.bottom), true, key + ': bottom property is set to a number');
jQuery.type()
src/core.js:
if ($.type(opts) === 'string' && $.powerTip[opts]) {
Covered by issue #186.
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' ],
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()
src/utility.js
:src/utility.js
:jQuery.isNumeric()
src/csscoordinates.js
:test/unit/placementcalculator.js
:test/unit/placementcalculator.js
:test/unit/placementcalculator.js
:test/unit/placementcalculator.js
:test/unit/placementcalculator.js
:test/unit/placementcalculator.js
:jQuery.type()
src/core.js
:Covered by issue #186.
Update jQuery dependency range in package.json
Mark version 4 as a valid dependency.
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.