Skip to content

Commit 30c0da4

Browse files
committed
3.20.0
1 parent e6baafa commit 30c0da4

22 files changed

+101
-48
lines changed

CHANGELOG.md

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

3+
## 3.20.0
4+
5+
* NEW: `autoBreadcrumbs` can now disable sentry breadcrumbs and configure them on demand https://github.com/getsentry/raven-js/pull/1099
6+
* NEW: Add `maxBreadcrumbs` and `sampleRate` to Typescript typings https://github.com/getsentry/raven-js/commit/29b89deb846dca5578036d88fd77000fb395fba3 https://github.com/getsentry/raven-js/commit/989f43abfc0bb9c5fc36b00d7f9ce04c581168c2
7+
* CHANGE: `isEmptyObject` utility now checks for object's own properties only https://github.com/getsentry/raven-js/pull/1100
8+
* CHANGE: Update how wrapped functions are detected as native functions https://github.com/getsentry/raven-js/pull/1106
9+
* CHANGE: Update integration tests on SauceLabs to use Safari 11.0
10+
* BUGFIX: Send raw error when `vm` is undefined while using Vue plugin https://github.com/getsentry/raven-js/pull/1118
11+
312
## 3.19.1
413

514
* BUGFIX: Don't prettify minified dist files https://github.com/getsentry/raven-js/commit/fee37713c9a17d41b5bb4e669f584ec056658df1

bower.json

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

dist/plugins/angular.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -129,7 +129,11 @@ function isString(what) {
129129
}
130130

131131
function isEmptyObject(what) {
132-
for (var _ in what) return false; // eslint-disable-line guard-for-in, no-unused-vars
132+
for (var _ in what) {
133+
if (what.hasOwnProperty(_)) {
134+
return false;
135+
}
136+
}
133137
return true;
134138
}
135139

@@ -443,6 +447,8 @@ function isSameStacktrace(stack1, stack2) {
443447
function fill(obj, name, replacement, track) {
444448
var orig = obj[name];
445449
obj[name] = replacement(orig);
450+
obj[name].__raven__ = true;
451+
obj[name].__orig_method__ = orig;
446452
if (track) {
447453
track.push([obj, name, orig]);
448454
}

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.19.1 (fee3771) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.20.0 (e6baafa) | 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.19.1 (fee3771) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.20.0 (e6baafa) | 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.19.1 (fee3771) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.20.0 (e6baafa) | 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

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -35,12 +35,14 @@ function vuePlugin(Raven, Vue) {
3535

3636
var _oldOnError = Vue.config.errorHandler;
3737
Vue.config.errorHandler = function VueErrorHandler(error, vm, info) {
38-
var metaData = {
39-
componentName: formatComponentName(vm),
40-
propsData: vm.$options.propsData
41-
};
38+
var metaData = {};
39+
40+
// vm and lifecycleHook are not always available
41+
if (Object.prototype.toString.call(vm) === '[object Object]') {
42+
metaData.componentName = formatComponentName(vm);
43+
metaData.propsData = vm.$options.propsData;
44+
}
4245

43-
// lifecycleHook is not always available
4446
if (typeof info !== 'undefined') {
4547
metaData.lifecycleHook = info;
4648
}

0 commit comments

Comments
 (0)