Skip to content

3.4.0 #677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2016
Merged

3.4.0 #677

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.4.0
* CHANGE: React Native plugin now stores errors in AsyncStorage and sends error data on app init. See: https://github.com/getsentry/raven-js/pull/626
* BUGFIX: React Native path normalization regex has been updated. See: https://github.com/getsentry/raven-js/pull/666
* BUGFIX: Angular 1 plugin now extracts errors from minified exception strings. See: https://github.com/getsentry/raven-js/pull/667

## 3.3.0
* NEW: Can now specify `environment` configuration option. See: https://github.com/getsentry/raven-js/pull/661
* CHANGE: Raven.js now serializes data payload w/ json-stringify-safe to avoid circular references. See: https://github.com/getsentry/raven-js/pull/652
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.3.0",
"version": "3.4.0",
"dependencies": {},
"main": "dist/raven.js",
"ignore": [
Expand Down
41 changes: 24 additions & 17 deletions dist/plugins/angular.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.3.0 (74c6c03) | github.com/getsentry/raven-js */
/*! Raven.js 3.4.0 (4dba6fe) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand All @@ -19,7 +19,8 @@
'use strict';

// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js
var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.+?)\n(\S+)$/;
var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/;


function angularPlugin(Raven, angular) {
angular = angular || window.angular;
Expand Down Expand Up @@ -51,25 +52,31 @@ function angularPlugin(Raven, angular) {
.config(['$provide', ExceptionHandlerProvider]);

Raven.setDataCallback(function(data, original) {
// We only care about mutating an exception
var exception = data.exception;
if (exception) {
exception = exception.values[0];
var matches = angularPattern.exec(exception.value);

if (matches) {
// This type now becomes something like: $rootScope:inprog
exception.type = matches[1];
exception.value = matches[2];
data.message = exception.type + ': ' + exception.value;
// auto set a new tag specifically for the angular error url
data.extra.angularDocs = matches[3].substr(0, 250);
}
}
angularPlugin._normalizeData(data);

original && original(data);
});
}

angularPlugin._normalizeData = function (data) {
// We only care about mutating an exception
var exception = data.exception;
if (exception) {
exception = exception.values[0];
var matches = angularPattern.exec(exception.value);

if (matches) {
// This type now becomes something like: $rootScope:inprog
exception.type = matches[1];
exception.value = matches[2];

data.message = exception.type + ': ' + exception.value;
// auto set a new tag specifically for the angular error url
data.extra.angularDocs = matches[3].substr(0, 250);
}
}
};

module.exports = angularPlugin;

},{}]},{},[1])(1)
Expand Down
4 changes: 2 additions & 2 deletions 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/angular.min.js.map

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.3.0 (74c6c03) | github.com/getsentry/raven-js */
/*! Raven.js 3.4.0 (4dba6fe) | 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.3.0 (74c6c03) | github.com/getsentry/raven-js */
/*! Raven.js 3.4.0 (4dba6fe) | 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.3.0 (74c6c03) | github.com/getsentry/raven-js */
/*! Raven.js 3.4.0 (4dba6fe) | 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.

20 changes: 14 additions & 6 deletions dist/raven.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Raven.js 3.3.0 (74c6c03) | github.com/getsentry/raven-js */
/*! Raven.js 3.4.0 (4dba6fe) | github.com/getsentry/raven-js */

/*
* Includes TraceKit
Expand Down Expand Up @@ -180,7 +180,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.3.0',
VERSION: '3.4.0',

debug: false,

Expand Down Expand Up @@ -1253,8 +1253,6 @@ Raven.prototype = {


_send: function(data) {
var self = this;

var globalOptions = this._globalOptions;

var baseData = {
Expand Down Expand Up @@ -1315,6 +1313,13 @@ Raven.prototype = {
return;
}

this._sendProcessedPayload(data);
},

_sendProcessedPayload: function(data, callback) {
var self = this;
var globalOptions = this._globalOptions;

// Send along an event_id if not explicitly passed.
// This event_id can be used to reference the error within Sentry itself.
// Set lastEventId after we know the error should actually be sent
Expand Down Expand Up @@ -1357,12 +1362,15 @@ Raven.prototype = {
data: data,
src: url
});
callback && callback();
},
onError: function failure() {
onError: function failure(error) {
self._triggerEvent('failure', {
data: data,
src: url
});
error = error || new Error('Raven send failed (no additional details provided)');
callback && callback(error);
}
});
},
Expand All @@ -1384,7 +1392,7 @@ Raven.prototype = {
opts.onSuccess();
}
} else if (opts.onError) {
opts.onError();
opts.onError(new Error('Sentry error code: ' + request.status));
}
}

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": "65Zh4g59PU/X0HvnUXUewj45H6YRX6cfF/Zu9lCWLtw=",
"sha512": "LtwVrDsuhD9jH/i4Xwk/L5Z9LymEqRZqEaMSUwqePd592xKU7EfqveEwbH1BTox/hMfKH9rTX5TFiWfUVNgu5g=="
"sha256": "bTEPripl705InCCs3lTOFnM/vPJj0Qh4pYfAE8ZZ3pg=",
"sha512": "6lb2h4LW8tLdntlWW03/2NdKkBrlpQCJTizla34QzD7XyrcSy0gdp565VvjOpWMIQIxi7PaD6kL7+Ob9yr43Hw=="
},
"type": null,
"integrity": "sha256-65Zh4g59PU/X0HvnUXUewj45H6YRX6cfF/Zu9lCWLtw= sha512-LtwVrDsuhD9jH/i4Xwk/L5Z9LymEqRZqEaMSUwqePd592xKU7EfqveEwbH1BTox/hMfKH9rTX5TFiWfUVNgu5g==",
"integrity": "sha256-bTEPripl705InCCs3lTOFnM/vPJj0Qh4pYfAE8ZZ3pg= sha512-6lb2h4LW8tLdntlWW03/2NdKkBrlpQCJTizla34QzD7XyrcSy0gdp565VvjOpWMIQIxi7PaD6kL7+Ob9yr43Hw==",
"path": "dist/raven.js"
},
"@dist/raven.min.js": {
"hashes": {
"sha256": "t6dbTUe18VdvAAAA1jpqWEpn/ckStKILH1xmZycBr6s=",
"sha512": "ZzvI6tyrNUfMct6N5TM1hwDkc9A6l0OqeQ5kJrW6bb8H/RuKpuUvZJ5M6KZNFrNb6qkMGaVKHnCHoFE7jHB0fg=="
"sha256": "8gpwv4k7ehC3fCGeaTGjCjiP8v1ttVfzDxanZtKZVOY=",
"sha512": "hkWLjB58gDHaCyYwq6sV6AU9HjG1+1Xybyf4u/SHyjzTuQWfRu85t9zdSTvbDtNaKCS39Rb0SZNEpwNH2ebZYg=="
},
"type": null,
"integrity": "sha256-t6dbTUe18VdvAAAA1jpqWEpn/ckStKILH1xmZycBr6s= sha512-ZzvI6tyrNUfMct6N5TM1hwDkc9A6l0OqeQ5kJrW6bb8H/RuKpuUvZJ5M6KZNFrNb6qkMGaVKHnCHoFE7jHB0fg==",
"integrity": "sha256-8gpwv4k7ehC3fCGeaTGjCjiP8v1ttVfzDxanZtKZVOY= sha512-hkWLjB58gDHaCyYwq6sV6AU9HjG1+1Xybyf4u/SHyjzTuQWfRu85t9zdSTvbDtNaKCS39Rb0SZNEpwNH2ebZYg==",
"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/3.3.0/raven.min.js"></script>
<script src="https://cdn.ravenjs.com/3.4.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/3.3.0/raven.min.js"></script>
<script src="https://cdn.ravenjs.com/3.4.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/3.3.0/raven.min.js"></script>
<script src="https://cdn.ravenjs.com/3.4.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/3.3.0/raven.min.js"></script>
<script src="https://cdn.ravenjs.com/3.4.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
Loading