Skip to content

Commit 64245e6

Browse files
committed
2.3.0
1 parent b09d766 commit 64245e6

24 files changed

+56
-35
lines changed

CHANGELOG.md

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

3+
## 2.3.0
4+
* NEW: `pathStrip` option now available in React Native plugin. See: https://github.com/getsentry/raven-js/pull/515
5+
* BUGFIX: Handle stacks from internal exceptions sometimes thrown by Firefox. See: https://github.com/getsentry/raven-js/pull/536
6+
* BUGFIX: Better error message strings in browsers w/ limited onerror implementations. See: https://github.com/getsentry/raven-js/pull/538
7+
38
## 2.2.1
49
* BUGFIX: Fix HTTP requests not sending with React Native on Android devices. See: https://github.com/getsentry/raven-js/issues/526
510
* BUGFIX: Raven.js now captures stack traces caused by Firefox internal errors. See: https://github.com/getsentry/raven-js/pull/528

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
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.2.1 (639131b) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.3.0 (b09d766) | 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.2.1 (639131b) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.3.0 (b09d766) | 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.2.1 (639131b) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.3.0 (b09d766) | 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.2.1 (639131b) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.3.0 (b09d766) | 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

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 2.2.1 (639131b) | github.com/getsentry/raven-js */
1+
/*! Raven.js 2.3.0 (b09d766) | 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.2.1',
103+
VERSION: '2.3.0',
104104

105105
debug: false,
106106

@@ -880,7 +880,7 @@ Raven.prototype = {
880880
message += '';
881881
message = truncate(message, this._globalOptions.maxMessageLength);
882882

883-
fullMessage = type + ': ' + message;
883+
fullMessage = (type ? type + ': ' : '') + message;
884884
fullMessage = truncate(fullMessage, this._globalOptions.maxMessageLength);
885885

886886
if (frames && frames.length) {
@@ -1357,6 +1357,9 @@ var TraceKit = {
13571357
var _slice = [].slice;
13581358
var UNKNOWN_FUNCTION = '?';
13591359

1360+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Error_types
1361+
var ERROR_TYPES_RE = /^(?:Uncaught )?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error)\: ?(.*)$/;
1362+
13601363
function getLocationHref() {
13611364
if (typeof document === 'undefined')
13621365
return '';
@@ -1495,8 +1498,21 @@ TraceKit.report = (function reportModuleWrapper() {
14951498
};
14961499
location.func = TraceKit.computeStackTrace.guessFunctionName(location.url, location.line);
14971500
location.context = TraceKit.computeStackTrace.gatherContext(location.url, location.line);
1501+
1502+
var name = undefined;
1503+
var msg = message; // must be new var or will modify original `arguments`
1504+
var groups;
1505+
if (isString(message)) {
1506+
var groups = message.match(ERROR_TYPES_RE);
1507+
if (groups) {
1508+
name = groups[1];
1509+
msg = groups[2];
1510+
}
1511+
}
1512+
14981513
stack = {
1499-
'message': message,
1514+
'name': name,
1515+
'message': msg,
15001516
'url': getLocationHref(),
15011517
'stack': [location]
15021518
};
@@ -1950,7 +1966,7 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
19501966
if (isUndefined(ex.stack) || !ex.stack) return;
19511967

19521968
var chrome = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
1953-
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,
1969+
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,
19541970
winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
19551971
lines = ex.stack.split('\n'),
19561972
stack = [],

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": "ck+xRRfoRhYesY4DPjLbmFKjSygnk3nRxtTMNfjE8bA=",
5-
"sha512": "4XSzcifBzli4bHbOCOYK48iOw1S71GwSSedTuV8XB76TNN8Iz39ty9OxivrC9wdpCbtvCPm6M2+SnyIU8Xvreg=="
4+
"sha256": "naPETMzPyGF/clhHaGc0+es5tkjuYfsjdKpSNE5FZPY=",
5+
"sha512": "1T0y0TGkOrGJdvZq16wWqxncom13FfNGSwyq6qGduLuzO3yBBroSMAsUBeDPOSA0qaEAxa55S/eBeKQ3XrTPDg=="
66
},
77
"type": null,
8-
"integrity": "sha256-ck+xRRfoRhYesY4DPjLbmFKjSygnk3nRxtTMNfjE8bA= sha512-4XSzcifBzli4bHbOCOYK48iOw1S71GwSSedTuV8XB76TNN8Iz39ty9OxivrC9wdpCbtvCPm6M2+SnyIU8Xvreg==",
8+
"integrity": "sha256-naPETMzPyGF/clhHaGc0+es5tkjuYfsjdKpSNE5FZPY= sha512-1T0y0TGkOrGJdvZq16wWqxncom13FfNGSwyq6qGduLuzO3yBBroSMAsUBeDPOSA0qaEAxa55S/eBeKQ3XrTPDg==",
99
"path": "dist/raven.js"
1010
},
1111
"@dist/raven.min.js": {
1212
"hashes": {
13-
"sha256": "QIf94y2XzurEYhtK/FjdmypwBxlQ+ZIWpR9iDY5JLNc=",
14-
"sha512": "QHsslsaW8xptRNBqZw32F6B6kA6NzbXYElor+8mIv552sQlravqgnJGGgAnvSWQEa296s+5v4lfQ3x+djVaGEA=="
13+
"sha256": "t8hYIL4uck1ucVKqVdaiJOgjPSOnFIkuvAntrIF74T4=",
14+
"sha512": "x/5EZdPsk/duBmwmfNt9d1GzWrhcJDq6ldLUUqcFlDaX7DPOJGz9wpKb1u6qVqZRrJ/4NPkXL1n28y80pdzQlA=="
1515
},
1616
"type": null,
17-
"integrity": "sha256-QIf94y2XzurEYhtK/FjdmypwBxlQ+ZIWpR9iDY5JLNc= sha512-QHsslsaW8xptRNBqZw32F6B6kA6NzbXYElor+8mIv552sQlravqgnJGGgAnvSWQEa296s+5v4lfQ3x+djVaGEA==",
17+
"integrity": "sha256-t8hYIL4uck1ucVKqVdaiJOgjPSOnFIkuvAntrIF74T4= sha512-x/5EZdPsk/duBmwmfNt9d1GzWrhcJDq6ldLUUqcFlDaX7DPOJGz9wpKb1u6qVqZRrJ/4NPkXL1n28y80pdzQlA==",
1818
"path": "dist/raven.min.js"
1919
}
2020
}

docs/config.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Putting it all together
237237
<body>
238238
...
239239
<script src="jquery.min.js"></script>
240-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
240+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
241241
<script>
242242
Raven.config('___PUBLIC_DSN___', {
243243
logger: 'my-logger',

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ scripts. For all details see :doc:`install`.
2626

2727
.. sourcecode:: html
2828

29-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
29+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
3030

3131

3232
Configuring the Client

docs/install.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ So for example:
99
.. sourcecode:: html
1010

1111
<script src="jquery.js"></script>
12-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
12+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
1313
<script>Raven.config('___PUBLIC_DSN___').install();</script>
1414
<script src="app.js"></script>
1515

@@ -28,7 +28,7 @@ Our CDN distributes builds with and without :doc:`integrations <integrations/ind
2828

2929
.. sourcecode:: html
3030

31-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
31+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
3232

3333
This version does not include any plugins. See `ravenjs.com
3434
<http://ravenjs.com/>`_ for more information about plugins and getting

docs/integrations/angular.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Example:
2727
.. sourcecode:: html
2828

2929
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
30-
<script src="https://cdn.ravenjs.com/2.2.1/angular/raven.min.js"></script>
30+
<script src="https://cdn.ravenjs.com/2.3.0/angular/raven.min.js"></script>
3131
<script>Raven.config('___PUBLIC_DSN___').install();</script>
3232

3333
Note that this CDN build auto-initializes the Angular plugin.

docs/integrations/backbone.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ after you load all other external libraries (like jQuery), but before your code.
99

1010
.. sourcecode:: html
1111

12-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
12+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
1313

1414
Configuring the Client
1515
----------------------

docs/integrations/ember.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Example:
2323
.. sourcecode:: html
2424

2525
<script src="http://builds.emberjs.com/tags/v2.3.1/ember.prod.js"></script>
26-
<script src="https://cdn.ravenjs.com/2.2.1/ember/raven.min.js"></script>
26+
<script src="https://cdn.ravenjs.com/2.3.0/ember/raven.min.js"></script>
2727
<script>Raven.config('___PUBLIC_DSN___').install();</script>
2828

2929
Note that this CDN build auto-initializes the Ember plugin.

docs/integrations/react.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ after you load all other external libraries (like jQuery), but before your code.
99

1010
.. sourcecode:: html
1111

12-
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
12+
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
1313

1414
Configuring the Client
1515
----------------------

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
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.2.1',
78+
VERSION: '2.3.0',
7979

8080
debug: false,
8181

test/raven.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ describe('globals', function() {
10451045
extra: {'session:duration': 100},
10461046
});
10471047
assert.deepEqual(opts.auth, {
1048-
sentry_client: 'raven-js/2.2.1',
1048+
sentry_client: 'raven-js/2.3.0',
10491049
sentry_key: 'abc',
10501050
sentry_version: '7'
10511051
});
@@ -1092,7 +1092,7 @@ describe('globals', function() {
10921092
extra: {'session:duration': 100},
10931093
});
10941094
assert.deepEqual(opts.auth, {
1095-
sentry_client: 'raven-js/2.2.1',
1095+
sentry_client: 'raven-js/2.3.0',
10961096
sentry_key: 'abc',
10971097
sentry_secret: 'def',
10981098
sentry_version: '7'

0 commit comments

Comments
 (0)