Skip to content

Commit 8e797ed

Browse files
committed
3.16.0
1 parent a8e28af commit 8e797ed

21 files changed

+122
-49
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.16.0
4+
* CHANGE: Plugins no longer disrupt data callback behavior. See: https://github.com/getsentry/raven-js/pull/891
5+
* BUGFIX: Fixed event object copying in React Native. See: https://github.com/getsentry/raven-js/pull/960
6+
* BUGFIX: More TypeScript definitions for API properties and methods. See: https://github.com/getsentry/raven-js/pull/968, https://github.com/getsentry/raven-js/pull/963
7+
38
## 3.15.0
49
* NEW: Added new `instrument` config option for disabling portions of instrumentation. See: https://github.com/getsentry/raven-js/pull/938
510
* NEW: Support CJS use of AngularJS module. See documentation: https://docs.sentry.io/clients/javascript/integrations/angularjs/

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.15.0",
3+
"version": "3.16.0",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

dist/plugins/angular.js

+44-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.15.0 (d49a1b8) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.16.0 (a8e28af) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -18,6 +18,8 @@
1818
*/
1919
'use strict';
2020

21+
var wrappedCallback = _dereq_(2).wrappedCallback;
22+
2123
// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js
2224
var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/;
2325
var moduleName = 'ngRaven';
@@ -52,11 +54,9 @@ function angularPlugin(Raven, angular) {
5254
.provider('Raven', RavenProvider)
5355
.config(['$provide', ExceptionHandlerProvider]);
5456

55-
Raven.setDataCallback(function(data, original) {
56-
angularPlugin._normalizeData(data);
57-
58-
original && original(data);
59-
});
57+
Raven.setDataCallback(wrappedCallback(function(data) {
58+
return angularPlugin._normalizeData(data);
59+
}));
6060
}
6161

6262
angularPlugin._normalizeData = function (data) {
@@ -76,11 +76,49 @@ angularPlugin._normalizeData = function (data) {
7676
data.extra.angularDocs = matches[3].substr(0, 250);
7777
}
7878
}
79+
80+
return data;
7981
};
8082

8183
angularPlugin.moduleName = moduleName;
8284

8385
module.exports = angularPlugin;
8486

87+
},{"2":2}],2:[function(_dereq_,module,exports){
88+
'use strict';
89+
90+
function isObject(what) {
91+
return typeof what === 'object' && what !== null;
92+
}
93+
94+
// Yanked from https://git.io/vS8DV re-used under CC0
95+
// with some tiny modifications
96+
function isError(value) {
97+
switch ({}.toString.call(value)) {
98+
case '[object Error]': return true;
99+
case '[object Exception]': return true;
100+
case '[object DOMException]': return true;
101+
default: return value instanceof Error;
102+
}
103+
}
104+
105+
function wrappedCallback(callback) {
106+
function dataCallback(data, original) {
107+
var normalizedData = callback(data) || data;
108+
if (original) {
109+
return original(normalizedData) || normalizedData;
110+
}
111+
return normalizedData;
112+
}
113+
114+
return dataCallback;
115+
}
116+
117+
module.exports = {
118+
isObject: isObject,
119+
isError: isError,
120+
wrappedCallback: wrappedCallback
121+
};
122+
85123
},{}]},{},[1])(1)
86124
});

dist/plugins/angular.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/angular.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/console.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.15.0 (d49a1b8) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.16.0 (a8e28af) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/console.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/ember.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.15.0 (d49a1b8) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.16.0 (a8e28af) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/ember.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/require.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.15.0 (d49a1b8) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.16.0 (a8e28af) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/require.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/vue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.15.0 (d49a1b8) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.16.0 (a8e28af) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/vue.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)