Skip to content
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

Merge master into next / Prepare next into master #1347

Merged
merged 76 commits into from
Jun 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
b532909
docs: Vue plugin usages with package manager and module loader (#1215)
myst729 Feb 5, 2018
df8a9cd
fix: create safeJoin util for console wrappers (#1222)
kamilogorek Feb 8, 2018
4180abe
fix: Restore console methods after calling uninstall (#1221)
kamilogorek Feb 8, 2018
50beaa5
fix: Use correct trimHeadFrames value if capturing new trace
leth Feb 5, 2018
1b6187b
test: Uninstall restores console tests
kamilogorek Feb 8, 2018
f8eec06
3.22.2
kamilogorek Feb 8, 2018
d6a1ff2
build: Revert build system to browserify (#1227)
kamilogorek Feb 13, 2018
33f0872
3.22.3
kamilogorek Feb 13, 2018
9ad02d8
docs: missing comma in docs example (#1230)
kichik Feb 14, 2018
dd5a3bc
fix: Correctly increment trimHeadFrames in captureMessage (#1224)
leth Feb 14, 2018
f4a2862
build: Fix browserify plugin transform append (#1229)
graingert Feb 14, 2018
97b63e2
fix: Let Edge to send fetch requests using default config (#1236)
kamilogorek Feb 21, 2018
a8a7637
Chrome and Firefox Extensions stack trace parsing (#1235)
kamilogorek Feb 21, 2018
114c958
fix: Handle custom error names in TraceKit (#1237)
kamilogorek Feb 21, 2018
8f51189
3.22.4
kamilogorek Feb 27, 2018
0516d9e
feat: Support unhandled rejections by default (#1242)
kamilogorek Mar 2, 2018
772cf3c
3.23.0
kamilogorek Mar 2, 2018
84edddc
fix: window defensiveness with promise handler (#1244)
MaxBittker Mar 2, 2018
c2b377e
3.23.1
kamilogorek Mar 2, 2018
8f8a624
fix: default fingerprinting when using synthetic stacktraces
Mar 6, 2018
5e42970
misc: Update npmignore (#1250)
kamilogorek Mar 12, 2018
add03a5
feat: Sensible non-Error exception serializer (#1253)
kamilogorek Mar 13, 2018
72f8e05
feat: Update electron docs (#1241)
HazAT Mar 13, 2018
3c65e28
3.23.2
kamilogorek Mar 14, 2018
f261ec2
fix: Handle Schrodingers Error (#1261)
kamilogorek Mar 15, 2018
8fc21de
3.23.3
kamilogorek Mar 15, 2018
9b83e9e
docs: Add documentation regarding raven-teskit plugin (#1231)
zivl Mar 19, 2018
9bd9ca9
fix: Check if XMLHttpRequest exists before using it
Whoaa512 Mar 19, 2018
7fbb94a
fix: Guard for invalid input to `fill` helper method
kamilogorek Mar 20, 2018
49a2fa2
ref: Expose Ravens constructor publicly. Kinda. (#1272)
kamilogorek Mar 23, 2018
cf87968
feat: Introduce 'sanitizeKeys' config option (#1264)
kamilogorek Mar 23, 2018
e002e4f
3.24.0
kamilogorek Mar 23, 2018
2bfb2e4
fix: Use guard for document.attachEvent calls (#1289)
AsrarMemon Apr 4, 2018
b478429
feat: add flag for unhandled promise rejections (#1278)
kumavis Apr 5, 2018
f3b3500
docs: Update usage comment for multiple Raven instances
kamilogorek Apr 9, 2018
68373be
3.24.1
kamilogorek Apr 9, 2018
4fb4ca3
feat: Capture breadcrumbs on failed fetch request (#1293)
kumavis Apr 10, 2018
622021e
fix: Check inputs type before doing truncation (#1299)
kamilogorek Apr 12, 2018
a25aa97
test: Correct syntax for tests to not break IE10/11 and Mobile
kamilogorek Apr 12, 2018
d3d6f98
fix: use correct call url in ignore/whitelisturl calls (#1304)
kamilogorek Apr 17, 2018
d92b6a2
fix: make debug mode actually work (#1305)
kamilogorek Apr 18, 2018
26fcb59
3.24.2
kamilogorek Apr 18, 2018
258c024
feat: Handle DOMError and DOMException gracefully (#1310)
kamilogorek Apr 25, 2018
9ec1dd4
build: include plugins-combination in dist and clear some old grunt c…
kamilogorek May 9, 2018
18cba74
feat: Handle JavaScript loaded in the browser inside a blob
CaptObvious May 7, 2018
de0db41
test: Fix Tracekit tests w. blob handling and some minor corrections
kamilogorek May 9, 2018
b0ea98b
test: Tests for blob handling
kamilogorek May 9, 2018
80dffad
fix: update deploy npm script
kamilogorek May 10, 2018
c306608
3.25.0
kamilogorek May 10, 2018
c26696a
fix: use safe _window and _navigator references (#1324)
exherb May 11, 2018
4533b2c
fix: Polyfill location.origin for IE10 (#1325)
kamilogorek May 11, 2018
b6f3c7a
build: fix missing plugins in dist directory and simplify grunt build…
kamilogorek May 11, 2018
66b3148
3.25.1
kamilogorek May 11, 2018
166546b
build: uglify during build, not during dist task
kamilogorek May 11, 2018
30b6d4e
ref: Emit transaction instead of culprit (#1330)
jan-auer May 15, 2018
d5e44e2
3.25.2
kamilogorek May 17, 2018
efaff84
docs: Change incorrect JS docs function param
kamilogorek May 24, 2018
aca0802
ref: Return location.origin instead of assigning it for IE10
kamilogorek May 24, 2018
c2e3977
docs: Angular - added error console logging outside of production (#1…
nortonprojects May 30, 2018
a010f2e
feat: Async Loader example with tests and docs (#1334)
kamilogorek May 30, 2018
90ba247
feat: Send exception mechanisms (#1335)
jan-auer May 30, 2018
1afff97
Merge branch 'master' into feature/merge-master
HazAT Jun 6, 2018
5151bfb
feat: Move docs to root
HazAT Jun 6, 2018
565042c
feat: dist folder for raven-js
HazAT Jun 6, 2018
b7121c9
feat: enable travis
HazAT Jun 6, 2018
12df0f8
feat: Remove gitmodules
HazAT Jun 6, 2018
0f22f55
feat: Use travis build script
HazAT Jun 6, 2018
36d3d4c
meta: Removed husky
HazAT Jun 6, 2018
52283cc
feat: Add tests for packages
HazAT Jun 6, 2018
2fc0a22
feat: Move readme
HazAT Jun 6, 2018
d12b381
meta: Fix travis yaml
HazAT Jun 6, 2018
dcc79e6
ci: travis
HazAT Jun 6, 2018
068c763
ci: please start travis
HazAT Jun 6, 2018
31a826c
ci: travis not running
HazAT Jun 6, 2018
5779596
meta: Update readmes
HazAT Jun 6, 2018
b9417e3
meta: Fix typos
HazAT Jun 6, 2018
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ docs/_build
docs/doctrees
build/
dist/
!packages/raven-js/dist/
coverage/
scratch/
*.pyc
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,15 @@ before_install:
matrix:
include:
- env: NAME="raven-js"
install: true
addons:
chrome: stable
firefox: latest
sauce_connect: true
script:
- npm run test && if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then npm run test:ci; else exit 0; fi
- env: NAME="@sentry/core"
script: .travis/raven-js.sh
- env: NAME="packages/*/lint"
install: true
script:
- cd packages/core && yarn install && yarn test
- env: NAME="@sentry/browser"
script: .travis/lint.sh
- env: NAME="packages/*/test"
install: true
script:
- yarn link
- cd packages/core && yarn link && yarn install && yarn dist
- cd ../browser
- yarn link "@sentry/core"
- yarn link "raven-js"
- yarn install && yarn test
script: .travis/test.sh
5 changes: 5 additions & 0 deletions .travis/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e

yarn lerna bootstrap
yarn lint
12 changes: 12 additions & 0 deletions .travis/raven-js.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
cd packages/raven-js

npm install
npm run test

if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then
npm run test:ci;
else
exit 0;
fi
6 changes: 6 additions & 0 deletions .travis/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

yarn lerna bootstrap
yarn build
yarn test
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# Changelog

## 3.25.2

* REF: Emit transaction instead of culprit (#1330)

## 3.25.1

* BUILD: fix missing plugins in dist directory and simplify grunt build (#1327)
* BUGFIX: Polyfill location.origin for IE10 (#1325)
* BUGFIX: use safe _window and _navigator references (#1324)

## 3.25.0

* FEAT: Handle JavaScript loaded in the browser inside a blob (#1322)
* FEAT: Handle DOMError and DOMException gracefully (#1310)
* BUILD: include plugins-combination in dist and clear some old grunt config (#1313)

## 3.24.2

* FEAT: Capture breadcrumbs on failed fetch request (#1293)
* BUGFIX: Make debug mode actually work (#1305)
* BUGFIX: Use correct frame url in ignore/whitelisturl calls (#1304)
* BUGFIX: Check input type before doing truncation (#1299)

## 3.24.1

* FEAT: Add flag for unhandled promise rejections (#1278)
* BUGFIX: Use guard for document.attachEvent calls (#1289)

## 3.24.0

* NEW: Introduce `sanitizeKeys` config option (#1264)
* NEW: Expose Ravens constructor publicly. Kinda. (#1272)
* BUGFIX: Guard for invalid input to `fill` helper method (#1265)
* BUGFIX: Check if `XMLHttpRequest` exists before using it (#1265)

## 3.23.3

* BUGFIX: Fix detection of custom error objects in `captureException` method, aka "Schrodinger's Error"© patch(#1261)

## 3.23.2

**NOTE**:
This release may introduce some new events for the same errors, as we'll provide more information on them now.
Your Sentry Issues stream may show new errors, without any changes done to your application's code.

* NEW: Sensible non-Error exception serializer (#1253)
* BUGFIX: Create correct fingerprint when using synthetic stacktraces (#1246)

## 3.23.1

* BUGFIX: Check if `addEventListener` and `removeEventListener` are present before calling them

## 3.23.0

**NOTE**:
This release may introduce some new, previously uncaught errors that were silently occuring in the background.
Your Sentry Issues stream may show new errors, without any changes done to your application's code.

* NEW: Introduce global unhandled rejections handler and `captureUnhandledRejections` config option (#1242).

## 3.22.4

* NEW: Chrome and Firefox Extensions stack trace parsing (#1235)
* BUGFIX: Handle custom error names in TraceKit (#1237)
* BUGFIX: Let Edge to send fetch requests using default config (#1236)
* BUGFIX: Correctly increment trimHeadFrames in captureMessage (#1224)
* BUILD: Fix browserify plugin transform append (#1229)

## 3.22.3

* BUGFIX: Reverted Rollup-based build system and fixed broken plugin builds

## 3.22.2

* BUGFIX: Use correct trimHeadFrames value if capturing new trace (#1216)
* BUGFIX: Restore console methods after calling uninstall (#1221)
* BUGFIX: Create safeJoin util for console wrappers (#1222)

## 3.22.1

* NEW: Check for `SENTRY_RELEASE` during config phase (#1194)
Expand Down
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

106 changes: 27 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,39 @@
<p align="center">
<a href="https://sentry.io" target="_blank" align="center">
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
</a>
<br />
<a href="https://sentry.io" target="_blank" align="center">
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
</a>
<br/>
<h1>Raven.js - Sentry SDK for JavaScript</h1>
</p>

# Official Sentry SDKs for JavaScript (Preview)
[![Sauce Test Status](https://saucelabs.com/buildstatus/sentryio)](https://saucelabs.com/u/sentryio)
[![Build Status](https://travis-ci.org/getsentry/raven-js.svg?branch=master)](https://travis-ci.org/getsentry/raven-js)
[![npm](https://img.shields.io/npm/v/raven-js.svg)](https://www.npmjs.com/package/raven-js)
[![npm](https://img.shields.io/npm/dm/raven-js.svg)](https://www.npmjs.com/package/raven-js)

This is a preview of the next line of Sentry JavaScript SDKs, comprised in the
`@sentry/` namespace. It will provide a more convenient interface and improved
consistency between various JavaScript environments.
[![Sauce Test Status](https://saucelabs.com/browser-matrix/sentryio.svg)](https://saucelabs.com/u/sentryio)

**WARNING:** All of these SDKs are still undergoing active development, so the
public interface might change and break backwards compatibility from time to
time. We absolutely recommend [raven-js](https://github.com/getsentry/raven-js)
and [raven](https://github.com/getsentry/raven-node) for production use.
## Requirements

## Contents
The latest version of Raven.js is guaranteed to work with
[hosted Sentry](https://sentry.io).

* [Supported Platforms](#supported-platforms)
* [Installation and Usage](#installation-and-usage)
* [Other Packages](#other-packages)
* [SDK Development](#sdk-development)
* [Join the Discussion](#join-the-discussion)
For on-premise users:

## Supported Platforms
* Raven.js [3.6](https://github.com/getsentry/raven-js/releases/tag/3.6.0)
requires Sentry server 8.6.0 or later
* Raven.js [2.0](https://github.com/getsentry/raven-js/releases/tag/2.0.0)
requires Sentry server 8.0.0 or later

For each major JavaScript platform, there is a specific high-level SDK that
provides all the tools you need in a single package. Please refer to the README
and instructions of those SDKs for more detailed information:
## Installation

* [`@sentry/shim`](https://github.com/getsentry/raven-js/tree/next/packages/shim):
Minimal SDK for library authors to add Sentry support
* [`@sentry/browser`](https://github.com/getsentry/raven-js/tree/next/packages/browser):
SDK for Browsers, including integrations for React, Angular, Ember, Vue and
Backbone
* [`@sentry/node`](https://github.com/getsentry/raven-js/tree/next/packages/node):
SDK for Node, including integrations for Express, Koa, Loopback, Sails and
Connect
* [`@sentry/electron`](https://github.com/getsentry/sentry-electron): SDK for
Electron with support for native crashes
* [`sentry-cordova`](https://github.com/getsentry/sentry-cordova): SDK for
Cordova Apps and Ionic with support for native crashes
To get started with Raven.js, please see
[Installation](https://docs.sentry.io/clients/javascript/install/).

**NOTE:** Are you missing an SDK here? It has probably not been integrated into
the `next` line yet.
## Resources

## Installation and Usage

To install an SDK, simply add the high-level package, for example:

```sh
npm install --save @sentry/node
yarn add @sentry/node
```

Setup and usage of these SDKs always follows the same principle. In Node, for
example (on another platform simply substitute the import):

```javascript
const { init, captureMessage } = require('@sentry/node');

init({
dsn: '__DSN__',
// ...
});

captureMessage('Hello, world!');
```

## Other Packages

Besides the high-level SDKs, this repository contains shared packages, helpers
and configuration used for SDK development. If you're thinking about
contributing to or creating a JavaScript-based SDK, have a look at the resources
below:

* [`@sentry/core`](https://github.com/getsentry/raven-js/tree/next/packages/core):
The base for all JavaScript SDKs with interfaces, type definitions and base
classes.
* [`@sentry/utils`](https://github.com/getsentry/raven-js/tree/next/packages/utils):
A set of helpers and utility functions useful for various SDKs.
* [`@sentry/typescript`](https://github.com/getsentry/raven-js/tree/next/packages/typescript):
Shared Typescript compiler and linter options.

## Join the Discussion

Join the discussion in our
[tracking issue](https://github.com/getsentry/raven-js/issues/1281) and let us
know what you think of the updated interface and new possibilities.
* [Download](http://ravenjs.com)
* [Documentation](https://docs.sentry.io/hosted/clients/javascript/)
* [Bug Tracker](https://github.com/getsentry/raven-js/issues)
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
* Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates
Loading