Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve jQuery isFunction warning #530

Merged
merged 5 commits into from
Aug 20, 2024

Conversation

redJ4y
Copy link
Contributor

@redJ4y redJ4y commented Aug 19, 2024

Issue raised by Mattybat on the Raygun forums.

See https://api.jquery.com/jQuery.isFunction/

As of jQuery 3.3, jQuery.isFunction() has been deprecated. In most cases, its use can be replaced by typeof x === "function".


This PR also

  • allows Continuous Integration action to run without manually setting the chromedriver version in package.json,
  • revives prerelease.yml.

@redJ4y redJ4y force-pushed the js/fix-jquery-isfunction-deprecation branch from ddcece9 to 4228e2e Compare August 19, 2024 04:39
Copy link
Contributor

@Hamish-taylor Hamish-taylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with these changes, but I will leave it to JD or Panos for the final approval

@redJ4y redJ4y requested a review from PanosNB August 19, 2024 21:55
@@ -55,7 +55,7 @@

var keys = ['complete', 'error', 'success'], key;
while(key = keys.pop()) {
if ($.isFunction(options[key])) {
if (typeof options[key] === "function") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change to the provider. The rest is related to Continuous Integration tests.

PanosNB
PanosNB previously approved these changes Aug 19, 2024
Copy link

@PanosNB PanosNB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@redJ4y redJ4y force-pushed the js/fix-jquery-isfunction-deprecation branch from bc6a004 to 58c4a6e Compare August 20, 2024 01:58
@redJ4y redJ4y force-pushed the js/fix-jquery-isfunction-deprecation branch from 97759d0 to a5fadcd Compare August 20, 2024 02:43
Copy link

@PanosNB PanosNB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work automating this Jared!

@redJ4y redJ4y merged commit e0349ce into master Aug 20, 2024
2 checks passed
@redJ4y redJ4y deleted the js/fix-jquery-isfunction-deprecation branch August 20, 2024 21:52
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.

3 participants