Skip to content

Commit

Permalink
3.11.0 (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar authored Feb 17, 2017
1 parent 2c38c31 commit 76f13b5
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 52 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Changelog

## 3.10.0
## 3.11.0
* CHANGE: Raven.js no longer auto-wraps jQuery.ready (if present); fixes jQuery deprecation warnings. See: https://github.com/getsentry/raven-js/pull/849
* BUGFIX: Fix User-Agent not collected in web worker environment. See: https://github.com/getsentry/raven-js/issues/853
* BUGFIX: Fix DOM tree summarizer (breadcrumbs) not splitting on breadcrumbs effectively. See: https://github.com/getsentry/raven-js/pull/852
* BUGFIX: Fix Vue plugin breaking on production builds. See: https://github.com/getsentry/raven-js/pull/848
* NEW: Added comment to Raven.wrap to indicate stack traces containing this frame are not indicative of a bug. See: https://github.com/getsentry/raven-js/pull/847

## 3.10.0
* NEW: Raven.js will exponentially back off if server returns a 400-level error (e.g. 429 too many requests). See: https://github.com/getsentry/raven-js/pull/839
* CHANGE: Raven.js will not set lastEventId if transmission failed because Raven is not configured. See: https://github.com/getsentry/raven-js/pull/839
* BUGFIX: Raven.js now properly handles Firefox resource:// URLs (extensions). See: https://github.com/getsentry/raven-js/pull/837
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.10.0",
"version": "3.11.0",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/angular.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down
2 changes: 1 addition & 1 deletion 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/console.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | 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.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | 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.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | 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.

15 changes: 13 additions & 2 deletions dist/plugins/vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand All @@ -17,6 +17,17 @@
*/
'use strict';

function formatComponentName (vm) {
if (vm.$root === vm) {
return 'root instance'
}
var name = vm._isVue
? vm.$options.name || vm.$options._componentTag
: vm.name
return (name ? 'component <' + name + '>' : 'anonymous component') +
(vm._isVue && vm.$options.__file ? ' at ' + vm.$options.__file : '')
}

function vuePlugin(Raven, Vue) {
Vue = Vue || window.Vue;

Expand All @@ -27,7 +38,7 @@ function vuePlugin(Raven, Vue) {
Vue.config.errorHandler = function VueErrorHandler(error, vm) {
Raven.captureException(error, {
extra: {
componentName: Vue.util.formatComponentName(vm),
componentName: formatComponentName(vm),
propsData: vm.$options.propsData
}
});
Expand Down
4 changes: 2 additions & 2 deletions dist/plugins/vue.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/vue.min.js.map

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

46 changes: 23 additions & 23 deletions dist/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
/*! Raven.js 3.11.0 (c2f43d7) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -114,6 +114,7 @@ var _window = typeof window !== 'undefined' ? window
: typeof self !== 'undefined' ? self
: {};
var _document = _window.document;
var _navigator = _window.navigator;

// First, check for JSON support
// If there is no JSON, we no-op the core features of Raven
Expand All @@ -122,6 +123,7 @@ function Raven() {
this._hasJSON = !!(typeof JSON === 'object' && JSON.stringify);
// Raven can run in contexts where there's no document (react-native)
this._hasDocument = !isUndefined(_document);
this._hasNavigator = !isUndefined(_navigator);
this._lastCapturedException = null;
this._lastEventId = null;
this._globalServer = null;
Expand Down Expand Up @@ -173,7 +175,7 @@ Raven.prototype = {
// webpack (using a build step causes webpack #1617). Grunt verifies that
// this value matches package.json during build.
// See: https://github.com/getsentry/raven-js/issues/465
VERSION: '3.10.0',
VERSION: '3.11.0',

debug: false,

Expand Down Expand Up @@ -374,6 +376,10 @@ Raven.prototype = {
while(i--) args[i] = deep ? self.wrap(options, arguments[i]) : arguments[i];

try {
// Attempt to invoke user-land function
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
// means Raven caught an error invoking your application code. This is
// expected behavior and NOT indicative of a bug with Raven.js.
return func.apply(this, args);
} catch(e) {
self._ignoreNextOnError();
Expand Down Expand Up @@ -1022,15 +1028,6 @@ Raven.prototype = {
for (var i = 0; i < eventTargets.length; i++) {
wrapEventTarget(eventTargets[i]);
}

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


Expand Down Expand Up @@ -1400,20 +1397,23 @@ Raven.prototype = {
},

_getHttpData: function() {
if (!this._hasDocument || !_document.location || !_document.location.href) {
return;
if (!this._hasNavigator && !this._hasDocument) return;
var httpData = {};

if (this._hasNavigator && _navigator.userAgent) {
httpData.headers = {
'User-Agent': navigator.userAgent
};
}

var httpData = {
headers: {
'User-Agent': navigator.userAgent
if (this._hasDocument) {
if (_document.location && _document.location.href) {
httpData.url = _document.location.href;
}
if (_document.referrer) {
if (!httpData.headers) httpData.headers = {};
httpData.headers.Referer = _document.referrer;
}
};

httpData.url = _document.location.href;

if (_document.referrer) {
httpData.headers.Referer = _document.referrer;
}

return httpData;
Expand Down Expand Up @@ -1899,7 +1899,7 @@ function htmlElementAsString(elem) {

className = elem.className;
if (className && isString(className)) {
classes = className.split(' ');
classes = className.split(/\s+/);
for (i = 0; i < classes.length; i++) {
out.push('.' + classes[i]);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/raven.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Loading

0 comments on commit 76f13b5

Please sign in to comment.