Skip to content

Commit

Permalink
3.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Nov 14, 2017
1 parent e6baafa commit 30c0da4
Show file tree
Hide file tree
Showing 22 changed files with 101 additions and 48 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.20.0

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

## 3.19.1

* BUGFIX: Don't prettify minified dist files https://github.com/getsentry/raven-js/commit/fee37713c9a17d41b5bb4e669f584ec056658df1
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raven-js",
"version": "3.19.1",
"version": "3.20.0",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
10 changes: 8 additions & 2 deletions dist/plugins/angular.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -129,7 +129,11 @@ function isString(what) {
}

function isEmptyObject(what) {
for (var _ in what) return false; // eslint-disable-line guard-for-in, no-unused-vars
for (var _ in what) {
if (what.hasOwnProperty(_)) {
return false;
}
}
return true;
}

Expand Down Expand Up @@ -443,6 +447,8 @@ function isSameStacktrace(stack1, stack2) {
function fill(obj, name, replacement, track) {
var orig = obj[name];
obj[name] = replacement(orig);
obj[name].__raven__ = true;
obj[name].__orig_method__ = orig;
if (track) {
track.push([obj, name, orig]);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/plugins/angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/angular.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/console.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/console.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/ember.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/ember.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/require.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/require.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions dist/plugins/vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.19.1 (fee3771) | github.com/getsentry/raven-js */
/*! Raven.js 3.20.0 (e6baafa) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -35,12 +35,14 @@ function vuePlugin(Raven, Vue) {

var _oldOnError = Vue.config.errorHandler;
Vue.config.errorHandler = function VueErrorHandler(error, vm, info) {
var metaData = {
componentName: formatComponentName(vm),
propsData: vm.$options.propsData
};
var metaData = {};

// vm and lifecycleHook are not always available
if (Object.prototype.toString.call(vm) === '[object Object]') {
metaData.componentName = formatComponentName(vm);
metaData.propsData = vm.$options.propsData;
}

// lifecycleHook is not always available
if (typeof info !== 'undefined') {
metaData.lifecycleHook = info;
}
Expand Down
Loading

0 comments on commit 30c0da4

Please sign in to comment.