Skip to content

Upgrade jQuery to 4.0.0#63

Open
mbojan wants to merge 6 commits intomasterfrom
i53-upgrade-jquery
Open

Upgrade jQuery to 4.0.0#63
mbojan wants to merge 6 commits intomasterfrom
i53-upgrade-jquery

Conversation

@mbojan
Copy link
Member

@mbojan mbojan commented Mar 10, 2026

This upgrades jQuery to 4.0.0 and makes necessary code changes, addressing #53.

Passes R CMD check and all the examples seem to be working correctly, apart from #62 (not sure if it is related).

mbojan and others added 6 commits March 10, 2026 17:42
$(domTarget) wraps a D3 selection object rather than a DOM element, so
jQuery never correctly attached the resize listener. Use domTarget.node()
to extract the underlying DOM element. Switch both resize bindings from
the deprecated .resize(fn) shorthand to .on('resize', fn).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
$.type() was deprecated in jQuery 3.0 and removed in jQuery 4.0.
The call site only needs a simple string primitive check, for which
the native typeof operator is the direct equivalent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
$.isNumeric() was deprecated in jQuery 3.3 and removed in jQuery 4.0.
At this call site ratio is a floating-point result of (hlen - offset) / hlen;
the guard exists to catch NaN and Infinity when hlen is zero. Number.isFinite()
is the exact native equivalent for that intent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mbojan mbojan linked an issue Mar 10, 2026 that may be closed by this pull request
@mbojan mbojan requested a review from skyebend March 10, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security vulnerability in jquery?

1 participant