Skip to content

Commit

Permalink
2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Mar 28, 2016
1 parent b09d766 commit 64245e6
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 35 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.3.0
* NEW: `pathStrip` option now available in React Native plugin. See: https://github.com/getsentry/raven-js/pull/515
* BUGFIX: Handle stacks from internal exceptions sometimes thrown by Firefox. See: https://github.com/getsentry/raven-js/pull/536
* BUGFIX: Better error message strings in browsers w/ limited onerror implementations. See: https://github.com/getsentry/raven-js/pull/538

## 2.2.1
* BUGFIX: Fix HTTP requests not sending with React Native on Android devices. See: https://github.com/getsentry/raven-js/issues/526
* BUGFIX: Raven.js now captures stack traces caused by Firefox internal errors. See: https://github.com/getsentry/raven-js/pull/528
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": "2.2.1",
"version": "2.3.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 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*! Raven.js 2.3.0 (b09d766) | 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 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*! Raven.js 2.3.0 (b09d766) | 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 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*! Raven.js 2.3.0 (b09d766) | 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 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*! Raven.js 2.3.0 (b09d766) | 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.

26 changes: 21 additions & 5 deletions dist/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*! Raven.js 2.3.0 (b09d766) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -100,7 +100,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: '2.2.1',
VERSION: '2.3.0',

debug: false,

Expand Down Expand Up @@ -880,7 +880,7 @@ Raven.prototype = {
message += '';
message = truncate(message, this._globalOptions.maxMessageLength);

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

if (frames && frames.length) {
Expand Down Expand Up @@ -1357,6 +1357,9 @@ var TraceKit = {
var _slice = [].slice;
var UNKNOWN_FUNCTION = '?';

// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Error_types
var ERROR_TYPES_RE = /^(?:Uncaught )?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error)\: ?(.*)$/;

function getLocationHref() {
if (typeof document === 'undefined')
return '';
Expand Down Expand Up @@ -1495,8 +1498,21 @@ TraceKit.report = (function reportModuleWrapper() {
};
location.func = TraceKit.computeStackTrace.guessFunctionName(location.url, location.line);
location.context = TraceKit.computeStackTrace.gatherContext(location.url, location.line);

var name = undefined;
var msg = message; // must be new var or will modify original `arguments`
var groups;
if (isString(message)) {
var groups = message.match(ERROR_TYPES_RE);
if (groups) {
name = groups[1];
msg = groups[2];
}
}

stack = {
'message': message,
'name': name,
'message': msg,
'url': getLocationHref(),
'stack': [location]
};
Expand Down Expand Up @@ -1950,7 +1966,7 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
if (isUndefined(ex.stack) || !ex.stack) return;

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

12 changes: 6 additions & 6 deletions dist/sri.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"@dist/raven.js": {
"hashes": {
"sha256": "ck+xRRfoRhYesY4DPjLbmFKjSygnk3nRxtTMNfjE8bA=",
"sha512": "4XSzcifBzli4bHbOCOYK48iOw1S71GwSSedTuV8XB76TNN8Iz39ty9OxivrC9wdpCbtvCPm6M2+SnyIU8Xvreg=="
"sha256": "naPETMzPyGF/clhHaGc0+es5tkjuYfsjdKpSNE5FZPY=",
"sha512": "1T0y0TGkOrGJdvZq16wWqxncom13FfNGSwyq6qGduLuzO3yBBroSMAsUBeDPOSA0qaEAxa55S/eBeKQ3XrTPDg=="
},
"type": null,
"integrity": "sha256-ck+xRRfoRhYesY4DPjLbmFKjSygnk3nRxtTMNfjE8bA= sha512-4XSzcifBzli4bHbOCOYK48iOw1S71GwSSedTuV8XB76TNN8Iz39ty9OxivrC9wdpCbtvCPm6M2+SnyIU8Xvreg==",
"integrity": "sha256-naPETMzPyGF/clhHaGc0+es5tkjuYfsjdKpSNE5FZPY= sha512-1T0y0TGkOrGJdvZq16wWqxncom13FfNGSwyq6qGduLuzO3yBBroSMAsUBeDPOSA0qaEAxa55S/eBeKQ3XrTPDg==",
"path": "dist/raven.js"
},
"@dist/raven.min.js": {
"hashes": {
"sha256": "QIf94y2XzurEYhtK/FjdmypwBxlQ+ZIWpR9iDY5JLNc=",
"sha512": "QHsslsaW8xptRNBqZw32F6B6kA6NzbXYElor+8mIv552sQlravqgnJGGgAnvSWQEa296s+5v4lfQ3x+djVaGEA=="
"sha256": "t8hYIL4uck1ucVKqVdaiJOgjPSOnFIkuvAntrIF74T4=",
"sha512": "x/5EZdPsk/duBmwmfNt9d1GzWrhcJDq6ldLUUqcFlDaX7DPOJGz9wpKb1u6qVqZRrJ/4NPkXL1n28y80pdzQlA=="
},
"type": null,
"integrity": "sha256-QIf94y2XzurEYhtK/FjdmypwBxlQ+ZIWpR9iDY5JLNc= sha512-QHsslsaW8xptRNBqZw32F6B6kA6NzbXYElor+8mIv552sQlravqgnJGGgAnvSWQEa296s+5v4lfQ3x+djVaGEA==",
"integrity": "sha256-t8hYIL4uck1ucVKqVdaiJOgjPSOnFIkuvAntrIF74T4= sha512-x/5EZdPsk/duBmwmfNt9d1GzWrhcJDq6ldLUUqcFlDaX7DPOJGz9wpKb1u6qVqZRrJ/4NPkXL1n28y80pdzQlA==",
"path": "dist/raven.min.js"
}
}
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Putting it all together
<body>
...
<script src="jquery.min.js"></script>
<script src="https://cdn.ravenjs.com/2.2.1/raven.min.js"></script>
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
<script>
Raven.config('___PUBLIC_DSN___', {
logger: 'my-logger',
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ scripts. For all details see :doc:`install`.

.. sourcecode:: html

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


Configuring the Client
Expand Down
4 changes: 2 additions & 2 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ So for example:
.. sourcecode:: html

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

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

.. sourcecode:: html

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

This version does not include any plugins. See `ravenjs.com
<http://ravenjs.com/>`_ for more information about plugins and getting
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/angular.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Example:
.. sourcecode:: html

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

Note that this CDN build auto-initializes the Angular plugin.
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/backbone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ after you load all other external libraries (like jQuery), but before your code.

.. sourcecode:: html

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

Configuring the Client
----------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/ember.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Example:
.. sourcecode:: html

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

Note that this CDN build auto-initializes the Ember plugin.
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/react.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ after you load all other external libraries (like jQuery), but before your code.

.. sourcecode:: html

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

Configuring the Client
----------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raven-js",
"version": "2.2.1",
"version": "2.3.0",
"license": "BSD-2-Clause",
"homepage": "https://getsentry.com",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/raven.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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: '2.2.1',
VERSION: '2.3.0',

debug: false,

Expand Down
4 changes: 2 additions & 2 deletions test/raven.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ describe('globals', function() {
extra: {'session:duration': 100},
});
assert.deepEqual(opts.auth, {
sentry_client: 'raven-js/2.2.1',
sentry_client: 'raven-js/2.3.0',
sentry_key: 'abc',
sentry_version: '7'
});
Expand Down Expand Up @@ -1092,7 +1092,7 @@ describe('globals', function() {
extra: {'session:duration': 100},
});
assert.deepEqual(opts.auth, {
sentry_client: 'raven-js/2.2.1',
sentry_client: 'raven-js/2.3.0',
sentry_key: 'abc',
sentry_secret: 'def',
sentry_version: '7'
Expand Down

0 comments on commit 64245e6

Please sign in to comment.