From bee65647eb97b732331ae377b03c94cb3772fac7 Mon Sep 17 00:00:00 2001 From: Lewis Ellis Date: Mon, 28 Nov 2016 15:08:47 -0800 Subject: [PATCH] Deprecate/remove captureQuery --- lib/client.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/lib/client.js b/lib/client.js index 746a30e..789aa44 100644 --- a/lib/client.js +++ b/lib/client.js @@ -214,20 +214,6 @@ extend(Raven.prototype, { return eventId; }, - captureQuery: function captureQuery(query, engine, kwargs, cb) { - if (!cb && typeof kwargs === 'function') { - cb = kwargs; - kwargs = {}; - } else { - kwargs = kwargs || {}; - } - - var eventId = this.generateEventId(); - this.process(eventId, parsers.parseQuery(query, engine, kwargs), cb); - - return eventId; - }, - /* The onErr param here is sort of ugly and won't typically be used * but it lets us write the requestHandler middleware in terms of this function. * We could consider getting rid of it and just duplicating the domain @@ -409,11 +395,15 @@ extend(Raven.prototype, { return result; }, captureError: function captureError() { - utils.consoleAlert('captureError has been deprecated and will be removed in v2.0'); + utils.consoleAlert('captureError has been deprecated and will be removed in v2.0; use captureException instead'); return this.captureException.apply(this, arguments); }, + captureQuery: function captureQuery() { + utils.consoleAlert('captureQuery has been deprecated and will be removed in v2.0'); + return this; + }, patchGlobal: function (cb) { - utils.consoleAlert('patchGlobal has been deprecated and will be removed in v2.0'); + utils.consoleAlert('patchGlobal has been deprecated and will be removed in v2.0; use install instead'); registerExceptionHandler(this, cb); return this; },