question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RavenJS triggers deprecations from jQuery Migrate

See original GitHub issue

jQuery team provides a tool called jQuery Migrate to ease migration from version to version. It’s especially a nice tool when migrating from jQuery 1/2 to jQuery 3.

However, when using jQuery migrate and RavenJS, deprecations are triggered by this code https://github.com/getsentry/raven-js/blob/master/src/raven.js#L927-L934

        var $ = _window.jQuery || _window.$;
        if ($ && $.fn && $.fn.ready) {
            fill($.fn, 'ready', function (orig) {
                return function (fn) {
                    return orig.call(this, self.wrap(fn));
                };
            }, wrappedBuiltIns);
        }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benvinegarcommented, Feb 6, 2017

@romainneutron – I think we’ll just remove this code, it serves less and less purpose today.

0reactions
tacmancommented, Feb 6, 2017

Thanks, Ben. That makes sense, we’ll check it out.

On Mon, Feb 6, 2017 at 3:57 PM, Ben Vinegar notifications@github.com wrote:

@tacman https://github.com/tacman – for breadcrumbs Raven.js overrides console.log which causes log statements to appear to come from Raven.js. It definitely does not use jQuery.unique, so I suspect the deprecation notice is being triggered by somewhere in your own code / other library.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/getsentry/raven-js/issues/817#issuecomment-277810826, or mute the thread https://github.com/notifications/unsubscribe-auth/AAl0QbqJkZ0WeJNhuAcj3Z8Wnk2gfsoxks5rZ4kkgaJpZM4LcyP2 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery Migrate triggers deprecation warnings when using this ...
When using this plugin alongside jQuery 3.2.1 and jQuery Migrate 3.0.1, we get a few deprecation warnings coming from Chosen:.
Read more >
How well does the jQuery migrate plugin deal with deprecated ...
jQuery Migrate Plugin works just fine as jQuery. Any deprecated feature will display warnings on the browser's console (if ...
Read more >
jQuery Core 3.0 Upgrade Guide
The uncompressed development version of the Migrate plugin includes console log output to warn when specific deprecated and/or removed features are being ...
Read more >
raven-js | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
jQuery Migrate throws error when an object is specified for the ...
jQuery Migrate will treat the name as a string when a number is provided as ... trigger a "Number-typed values are deprecated for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found