Skip to content

Commit 6a436fb

Browse files
committed
2.1.1
1 parent 9dbc6bd commit 6a436fb

17 files changed

+36
-25
lines changed

CHANGELOG.md

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

3+
## 2.1.1
4+
* BUGFIX: Fixed IE8 regression introduced in 2.1.0. See: https://github.com/getsentry/raven-js/issues/498
5+
* BUGFIX: Fixed initialization error when run via Selenium. See: https://github.com/getsentry/raven-js/issues/495
6+
37
## 2.1.0
48
* BUGFIX: Fixed Raven.js rejecting frames w/ blob URLs. See: https://github.com/getsentry/raven-js/issues/463
59
* BUGFIX: Fixed plugin files not consumable without module loader. See: https://github.com/getsentry/raven-js/issues/446

bower.json

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

dist/plugins/angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 2.1.0 (9ca11cd) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.1.1 (9dbc6bd) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

dist/plugins/angular.min.js

+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 2.1.0 (9ca11cd) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.1.1 (9dbc6bd) | 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 2.1.0 (9ca11cd) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.1.1 (9dbc6bd) | 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 2.1.0 (9ca11cd) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.1.1 (9dbc6bd) | 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/raven.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 2.1.0 (9ca11cd) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.1.1 (9dbc6bd) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -100,7 +100,7 @@ Raven.prototype = {
100100
// webpack (using a build step causes webpack #1617). Grunt verifies that
101101
// this value matches package.json during build.
102102
// See: https://github.com/getsentry/raven-js/issues/465
103-
VERSION: '2.1.0',
103+
VERSION: '2.1.1',
104104

105105
debug: false,
106106

@@ -246,7 +246,14 @@ Raven.prototype = {
246246
}
247247

248248
// We don't wanna wrap it twice!
249-
if (func.__raven__) {
249+
try {
250+
if (func.__raven__) {
251+
return func;
252+
}
253+
} catch (e) {
254+
// Just accessing the __raven__ prop in some Selenium environments
255+
// can cause a "Permission denied" exception (see raven-js#495).
256+
// Bail on wrapping and return the function as-is (defers to window.onerror).
250257
return func;
251258
}
252259

@@ -816,7 +823,7 @@ Raven.prototype = {
816823
// first we check the global includePaths list.
817824
!!this._globalOptions.includePaths.test && !this._globalOptions.includePaths.test(normalized.filename) ||
818825
// Now we check for fun, if the function name is Raven or TraceKit
819-
/(Raven|TraceKit)\./.test(normalized.function) ||
826+
/(Raven|TraceKit)\./.test(normalized['function']) ||
820827
// finally, we do a last ditch effort and check for raven.min.js
821828
/raven\.(min\.)?js$/.test(normalized.filename)
822829
);

dist/raven.min.js

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

dist/raven.min.js.map

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

dist/sri.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"@dist/raven.js": {
33
"hashes": {
4-
"sha256": "PUiYx5pFiL1NM1s63UfdmpdGiK9qbQcrh1GuaZYfLKc=",
5-
"sha512": "mVTxldUFwX/Vuq9KbLP5hJmqfYga6zmxUFErEOxUbAPdotb5ZDb9Ii5ACf77iSUluNVncvpyo8kj2GwhxSzF8Q=="
4+
"sha256": "CCTMmoqRyMome21evusgcQTqtn4S6dh2IYXy/9iXC5w=",
5+
"sha512": "MV0+GMYq1nnf7Ur8v6wRJM7JTbk1lS+1U/e7RaZZA4+8BY+Ft2JvNUnLzi7UZli+lBFhsBEwdevuL5Qms7J9jw=="
66
},
77
"type": null,
8-
"integrity": "sha256-PUiYx5pFiL1NM1s63UfdmpdGiK9qbQcrh1GuaZYfLKc= sha512-mVTxldUFwX/Vuq9KbLP5hJmqfYga6zmxUFErEOxUbAPdotb5ZDb9Ii5ACf77iSUluNVncvpyo8kj2GwhxSzF8Q==",
8+
"integrity": "sha256-CCTMmoqRyMome21evusgcQTqtn4S6dh2IYXy/9iXC5w= sha512-MV0+GMYq1nnf7Ur8v6wRJM7JTbk1lS+1U/e7RaZZA4+8BY+Ft2JvNUnLzi7UZli+lBFhsBEwdevuL5Qms7J9jw==",
99
"path": "dist/raven.js"
1010
},
1111
"@dist/raven.min.js": {
1212
"hashes": {
13-
"sha256": "P0IW+abstH0ZOJfTHWw8rC2i1VMkujyL1y6aaDT3zhc=",
14-
"sha512": "Ghu5a+Xom0xS0aC1aAwapUUxcgP1jANj1k+NPaABUdY/A1S0nst9PEANsNtV7rJpBHIGMuGq/J2yNdUfU7MnTA=="
13+
"sha256": "65Ulhun150ZZFP+ifmeWjzFGRy4X+TWYNaYJ44f3TTk=",
14+
"sha512": "wSTFPL8615g/+7ge4NVK1tHB1butUtCMhpLxknSXFrVukUf5YyO+NWRRSZAMDdBw2UXVoHODwoTK9cf4pDYRPQ=="
1515
},
1616
"type": null,
17-
"integrity": "sha256-P0IW+abstH0ZOJfTHWw8rC2i1VMkujyL1y6aaDT3zhc= sha512-Ghu5a+Xom0xS0aC1aAwapUUxcgP1jANj1k+NPaABUdY/A1S0nst9PEANsNtV7rJpBHIGMuGq/J2yNdUfU7MnTA==",
17+
"integrity": "sha256-65Ulhun150ZZFP+ifmeWjzFGRy4X+TWYNaYJ44f3TTk= sha512-wSTFPL8615g/+7ge4NVK1tHB1butUtCMhpLxknSXFrVukUf5YyO+NWRRSZAMDdBw2UXVoHODwoTK9cf4pDYRPQ==",
1818
"path": "dist/raven.min.js"
1919
}
2020
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"license": "BSD-2-Clause",
55
"homepage": "https://getsentry.com",
66
"scripts": {

src/raven.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Raven.prototype = {
7575
// webpack (using a build step causes webpack #1617). Grunt verifies that
7676
// this value matches package.json during build.
7777
// See: https://github.com/getsentry/raven-js/issues/465
78-
VERSION: '2.1.0',
78+
VERSION: '2.1.1',
7979

8080
debug: false,
8181

test/raven.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ describe('globals', function() {
10381038
extra: {'session:duration': 100},
10391039
});
10401040
assert.deepEqual(opts.auth, {
1041-
sentry_client: 'raven-js/2.1.0',
1041+
sentry_client: 'raven-js/2.1.1',
10421042
sentry_key: 'abc',
10431043
sentry_version: '7'
10441044
});

0 commit comments

Comments
 (0)