Skip to content

Commit cb92f4b

Browse files
committed
3.11.0
1 parent 07ce675 commit cb92f4b

21 files changed

+52
-41
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Changelog
22

3-
## 3.10.0
3+
## 3.11.0
4+
* CHANGE: Raven.js no longer auto-wraps jQuery.ready (if present); fixes jQuery deprecation warnings. See: https://github.com/getsentry/raven-js/pull/849
5+
* BUGFIX: Fix DOM tree summarizer (breadcrumbs) not splitting on breadcrumbs effectively. See: https://github.com/getsentry/raven-js/pull/852
6+
* BUGFIX: Fix Vue plugin breaking on production builds. See: https://github.com/getsentry/raven-js/pull/848
7+
* 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
48

9+
## 3.10.0
510
* 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
611
* CHANGE: Raven.js will not set lastEventId if transmission failed because Raven is not configured. See: https://github.com/getsentry/raven-js/pull/839
712
* BUGFIX: Raven.js now properly handles Firefox resource:// URLs (extensions). See: https://github.com/getsentry/raven-js/pull/837

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.10.0",
3+
"version": "3.11.0",
44
"dependencies": {},
55
"main": "dist/raven.js",
66
"ignore": [

dist/plugins/angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/angular.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/console.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/ember.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/ember.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/require.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/vue.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -17,6 +17,17 @@
1717
*/
1818
'use strict';
1919

20+
function formatComponentName (vm) {
21+
if (vm.$root === vm) {
22+
return 'root instance'
23+
}
24+
var name = vm._isVue
25+
? vm.$options.name || vm.$options._componentTag
26+
: vm.name
27+
return (name ? 'component <' + name + '>' : 'anonymous component') +
28+
(vm._isVue && vm.$options.__file ? ' at ' + vm.$options.__file : '')
29+
}
30+
2031
function vuePlugin(Raven, Vue) {
2132
Vue = Vue || window.Vue;
2233

@@ -27,7 +38,7 @@ function vuePlugin(Raven, Vue) {
2738
Vue.config.errorHandler = function VueErrorHandler(error, vm) {
2839
Raven.captureException(error, {
2940
extra: {
30-
componentName: Vue.util.formatComponentName(vm),
41+
componentName: formatComponentName(vm),
3142
propsData: vm.$options.propsData
3243
}
3344
});

dist/plugins/vue.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/vue.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/raven.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 3.10.0 (d7e787e) | github.com/getsentry/raven-js */
1+
/*! Raven.js 3.11.0 (07ce675) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -173,7 +173,7 @@ Raven.prototype = {
173173
// webpack (using a build step causes webpack #1617). Grunt verifies that
174174
// this value matches package.json during build.
175175
// See: https://github.com/getsentry/raven-js/issues/465
176-
VERSION: '3.10.0',
176+
VERSION: '3.11.0',
177177

178178
debug: false,
179179

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

376376
try {
377+
// Attempt to invoke user-land function
378+
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
379+
// means Raven caught an error invoking your application code. This is
380+
// expected behavior and NOT indicative of a bug with Raven.js.
377381
return func.apply(this, args);
378382
} catch(e) {
379383
self._ignoreNextOnError();
@@ -1022,15 +1026,6 @@ Raven.prototype = {
10221026
for (var i = 0; i < eventTargets.length; i++) {
10231027
wrapEventTarget(eventTargets[i]);
10241028
}
1025-
1026-
var $ = _window.jQuery || _window.$;
1027-
if ($ && $.fn && $.fn.ready) {
1028-
fill($.fn, 'ready', function (orig) {
1029-
return function (fn) {
1030-
return orig.call(this, self.wrap(fn));
1031-
};
1032-
}, wrappedBuiltIns);
1033-
}
10341029
},
10351030

10361031

@@ -1899,7 +1894,7 @@ function htmlElementAsString(elem) {
18991894

19001895
className = elem.className;
19011896
if (className && isString(className)) {
1902-
classes = className.split(' ');
1897+
classes = className.split(/\s+/);
19031898
for (i = 0; i < classes.length; i++) {
19041899
out.push('.' + classes[i]);
19051900
}

dist/raven.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/raven.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sri.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"@dist/raven.js": {
33
"hashes": {
4-
"sha256": "Ys1HQR6AleMV2krlqqcgwN3c5N4pmvshjql3Gqh4lAs=",
5-
"sha512": "Bxo/PvUYWXEydrDuy7Rt9tC6b1s345htx2826JIQ6WBrr4WW0aiUDVPJz3G99con//Y58kpqZirX7YfMgKiiZg=="
4+
"sha256": "sUOL9Hkw6IjQ13VMuWDH02zuTs5ijJVdqyT50G62/UQ=",
5+
"sha512": "JCTujNvLWEBwFKhLc71aUBwllOexED/7B2BVvgxCLsHu5OZkJ324XTmCbGwvL3ZtnGkiaHVBbG5sh5uoHmK7GQ=="
66
},
77
"type": null,
8-
"integrity": "sha256-Ys1HQR6AleMV2krlqqcgwN3c5N4pmvshjql3Gqh4lAs= sha512-Bxo/PvUYWXEydrDuy7Rt9tC6b1s345htx2826JIQ6WBrr4WW0aiUDVPJz3G99con//Y58kpqZirX7YfMgKiiZg==",
8+
"integrity": "sha256-sUOL9Hkw6IjQ13VMuWDH02zuTs5ijJVdqyT50G62/UQ= sha512-JCTujNvLWEBwFKhLc71aUBwllOexED/7B2BVvgxCLsHu5OZkJ324XTmCbGwvL3ZtnGkiaHVBbG5sh5uoHmK7GQ==",
99
"path": "dist/raven.js"
1010
},
1111
"@dist/raven.min.js": {
1212
"hashes": {
13-
"sha256": "FUlyzCCcGC0KyC/Kz5SHya4DjzFZy5Qiqu1Lwn85Rw4=",
14-
"sha512": "Lui8cCX+5QtuqtW38Jhdyn1I04lzqjY7bMJkqSKXTkq0piu1OlQDSRVArtZoiONZYNA2dFoDfZxlMGI/fkJQWQ=="
13+
"sha256": "ogdspac+f8EOgkWiSKLCiLhfiS1abJ+GGsW6TNBhB5M=",
14+
"sha512": "zHEr75bJv4JDjP4Nn4at8e1nK/wIQxiY9+1EAhHkyB4KfsDG+3s9mBLkeebBS8YEqOms1p3/X/Yc+ww0+Acw/g=="
1515
},
1616
"type": null,
17-
"integrity": "sha256-FUlyzCCcGC0KyC/Kz5SHya4DjzFZy5Qiqu1Lwn85Rw4= sha512-Lui8cCX+5QtuqtW38Jhdyn1I04lzqjY7bMJkqSKXTkq0piu1OlQDSRVArtZoiONZYNA2dFoDfZxlMGI/fkJQWQ==",
17+
"integrity": "sha256-ogdspac+f8EOgkWiSKLCiLhfiS1abJ+GGsW6TNBhB5M= sha512-zHEr75bJv4JDjP4Nn4at8e1nK/wIQxiY9+1EAhHkyB4KfsDG+3s9mBLkeebBS8YEqOms1p3/X/Yc+ww0+Acw/g==",
1818
"path": "dist/raven.min.js"
1919
}
2020
}

docs/sentry-doc-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@
6666
}
6767
},
6868
"vars": {
69-
"RAVEN_VERSION": "3.10.0"
69+
"RAVEN_VERSION": "3.11.0"
7070
}
7171
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "3.10.0",
3+
"version": "3.11.0",
44
"license": "BSD-2-Clause",
55
"homepage": "https://github.com/getsentry/raven-js",
66
"scripts": {

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Raven.prototype = {
7979
// webpack (using a build step causes webpack #1617). Grunt verifies that
8080
// this value matches package.json during build.
8181
// See: https://github.com/getsentry/raven-js/issues/465
82-
VERSION: '3.10.0',
82+
VERSION: '3.11.0',
8383

8484
debug: false,
8585

test/raven.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ describe('globals', function() {
10041004
extra: {'session:duration': 100},
10051005
});
10061006
assert.deepEqual(opts.auth, {
1007-
sentry_client: 'raven-js/3.10.0',
1007+
sentry_client: 'raven-js/3.11.0',
10081008
sentry_key: 'abc',
10091009
sentry_version: '7'
10101010
});
@@ -1051,7 +1051,7 @@ describe('globals', function() {
10511051
extra: {'session:duration': 100},
10521052
});
10531053
assert.deepEqual(opts.auth, {
1054-
sentry_client: 'raven-js/3.10.0',
1054+
sentry_client: 'raven-js/3.11.0',
10551055
sentry_key: 'abc',
10561056
sentry_secret: 'def',
10571057
sentry_version: '7'

0 commit comments

Comments
 (0)