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

New SDKs #1349

Merged
merged 137 commits into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
2214422
v4: New core infrastructure using TypeScript
kamilogorek Jan 30, 2018
8882686
v4: Reworked Core package and added basic Node adapter
kamilogorek Feb 6, 2018
5a27548
v4: Context module implementation and complete test suite
kamilogorek Feb 7, 2018
375b646
v4: Added code coverage infrastructure
kamilogorek Feb 7, 2018
b444116
v4: DSN module implementation and complete test suite
kamilogorek Feb 7, 2018
3beb9e4
v4: Fixed broken tests
kamilogorek Feb 8, 2018
949db54
fix: Tests in browser and core
HazAT Feb 8, 2018
2fda31b
fix: Tests for node package
HazAT Feb 8, 2018
c4ef076
fix: Run core tests also in node
HazAT Feb 8, 2018
8f9aeba
fix: Watch mode in node pacakge
HazAT Feb 8, 2018
8abab9a
meta: "bracketSpacing": true
HazAT Feb 8, 2018
9056777
fix: Remove console.log s
HazAT Feb 8, 2018
0a8200f
meta(prettier): Change printWidth to 80 characters
jan-auer Feb 19, 2018
2f868e8
ref(core): Change interface back to separate capture methods
jan-auer Feb 19, 2018
c4e3e37
fix(core): Fix tests
jan-auer Feb 19, 2018
c867c94
ref(packages): Update dependant packages' capture methods
jan-auer Feb 19, 2018
af6ccc4
build: Generate typescript definitions
jan-auer Feb 19, 2018
17646cc
test(core): Rework core tests [WIP]
jan-auer Feb 20, 2018
2b024fb
feat: Use jest for core tests
HazAT Feb 20, 2018
6b16e74
feat: Use jest for node test
HazAT Feb 20, 2018
dbd581b
feat: Cleanup of configs
HazAT Feb 20, 2018
8deb8fd
feat: Use karma for browser
HazAT Feb 20, 2018
55a740f
meta: Clean package jsons
HazAT Feb 20, 2018
a561edb
feat: Cleanup configs, use rollup for browser
HazAT Feb 20, 2018
48cb1b5
fix: Run core build before everything else
HazAT Feb 20, 2018
a4fa70b
build: Use npm pre-scripts to build core
jan-auer Feb 21, 2018
71e526d
build(core): Run tests in default environment
jan-auer Feb 21, 2018
0299e1f
ref: Simplify adapter constructors
jan-auer Feb 21, 2018
29cc7fe
fix(node): Use correct package entrypoints
jan-auer Feb 21, 2018
f98294b
ref(core): Do not require returning this in adapters
jan-auer Feb 21, 2018
c9cccf3
ref: Remove wrap from the Adapter interface
jan-auer Feb 21, 2018
d94cecf
ref(core): Rename Event to SentryEvent to prevent name shadowing
jan-auer Feb 21, 2018
0c7af88
ref(core): Change callback signatures
jan-auer Feb 21, 2018
ea77bbb
fix(browser): Correctly capture events and breadcrumbs
jan-auer Feb 21, 2018
6a6b32f
fix(node): Use the secret DSN
jan-auer Feb 21, 2018
db090c9
fix(node): Correctly capture events and breadcrumbs
jan-auer Feb 21, 2018
204aea3
fix(node): Correctly invoke Raven functions
jan-auer Feb 21, 2018
71b71ae
fix: To lower case filename
HazAT Feb 22, 2018
b9ef0a5
feat: Add tests for callbacks
HazAT Feb 22, 2018
563213f
feat: Add comment for client.ts
HazAT Feb 22, 2018
70d55dc
ref(core): Make the DSN type transparent
jan-auer Feb 22, 2018
d8b63b6
ref(core): Prefer default exports and fix context tests
jan-auer Feb 22, 2018
7bd35c2
feat: Add timestamp to breadcrumb interface
HazAT Feb 22, 2018
ed99b83
Merge branch '4.0.0-wip' of github.com:getsentry/raven-js into 4.0.0-wip
HazAT Feb 22, 2018
d4fc52e
fix: Reenable lint rules
HazAT Feb 23, 2018
d314518
fix: Lint in package.json
HazAT Feb 23, 2018
96d487e
fix: Disable lint for test
HazAT Feb 23, 2018
1de5d41
fix: Add package scope public
HazAT Feb 23, 2018
fd3ae0e
feat: Add npmignore
HazAT Feb 23, 2018
2dc95a9
meta: Bump to prerelease version
HazAT Feb 23, 2018
105d692
release: Release 0.4.0-beta.1
HazAT Feb 23, 2018
a73f7a0
release: beta.2
HazAT Feb 23, 2018
97302e9
feat: Add return value type check validation
HazAT Feb 27, 2018
adfde81
feat(core): Implement the full event interface
jan-auer Mar 5, 2018
8a79dde
release: 0.4.0-beta.3
HazAT Mar 5, 2018
eca6ba3
feat: Add store to SentryNode
HazAT Mar 5, 2018
cb0a5b3
ref(node): Move mkdirpSync to a separate file
jan-auer Mar 5, 2018
1adaad0
ref(node): Export utils
jan-auer Mar 5, 2018
d8a8052
ref(node): Add an asynchronous version for mkdirp
jan-auer Mar 5, 2018
f7cc8a2
release: 0.4.0-beta.4
HazAT Mar 9, 2018
50aafaf
ref: Improve TypeScript Code Structure (#1248)
jan-auer Mar 9, 2018
8619760
fix: use this for breadcrumbs and copy breadcrumbs/context
HazAT Mar 9, 2018
61d40bd
ref(ts): Do not require "this" in public and protected methods
jan-auer Mar 12, 2018
f2e1467
feat: node tests (#1254)
HazAT Mar 12, 2018
70a66cc
ref(core): Delegate responsibility for creating events to Backend (#1…
jan-auer Mar 12, 2018
bd188f2
feat(utils): Add serialization and async utils
jan-auer Mar 12, 2018
18d1dbe
test(utils): Add tests for async utils
jan-auer Mar 12, 2018
b70ae69
test(utils): Add tests for object utils
jan-auer Mar 12, 2018
dfb2862
test(utils): Remove chai/sinon types from utils package
jan-auer Mar 12, 2018
2f6d218
release: 0.4.0-beta.5
HazAT Mar 12, 2018
0006aa2
release: 0.4.0-beta.6
HazAT Mar 12, 2018
3ad317f
build(ts): Add the DOM library by default
jan-auer Mar 12, 2018
bfe8861
ref(core): Make prepareEvent() protected
jan-auer Mar 12, 2018
c91352c
feat(node): Add the onFatalError callback
jan-auer Mar 12, 2018
bc79d37
feat: Add onFatalError option for node
HazAT Mar 12, 2018
c1eab43
release: 0.4.0-beta.7
HazAT Mar 12, 2018
99c5efd
fix: Don't load whole utils lib
HazAT Mar 13, 2018
f01c5bd
fix: export as iife (#1257)
HazAT Mar 13, 2018
09064be
meta: Prefer locked package dependencies
jan-auer Mar 13, 2018
c5a3d07
release: 0.4.0
jan-auer Mar 13, 2018
6c1b741
build: Fix .npmignore
jan-auer Mar 13, 2018
24717bf
license: Add a license file everywhere
jan-auer Mar 13, 2018
bbbf84c
fix(browser): Correctly export Raven for rollup
jan-auer Mar 13, 2018
8c9d539
fix(node): Use private DSN with password
jan-auer Mar 13, 2018
71bb7db
release: 0.4.1
jan-auer Mar 14, 2018
ef295a3
fix(readme): Correctly mention SentryClient.create()
jan-auer Mar 14, 2018
89cc987
fix(utils): Silently swallow errors when reading/writing Store (#1268)
jan-auer Mar 20, 2018
e816353
release: 0.4.2
jan-auer Mar 20, 2018
85d612d
feat: @sentry/shim (#1267)
HazAT Mar 22, 2018
f8fd355
fix: Expose clearScope
HazAT Mar 23, 2018
cbbf616
release: 0.5.0-beta.0
HazAT Mar 23, 2018
6c171f6
feat: Add callOnClient to call functions that are not in the general api
HazAT Mar 27, 2018
7a204f0
fix: Move shim tests into shim (#1279)
HazAT Mar 28, 2018
b3e545b
release: 0.5.0-beta.1
HazAT Mar 28, 2018
5051de7
feat: Add store functions on backend (#1280)
HazAT Mar 29, 2018
ab2abcf
release: 0.5.0-beta.2
jan-auer Mar 29, 2018
f13106a
build: Update to Typescript 2.8 (#1282)
jan-auer Mar 30, 2018
423d992
fix(core): Initialize internal scope when the frontend is ready (#1283)
jan-auer Mar 30, 2018
54dfc31
release: 0.5.0-beta.3
jan-auer Apr 3, 2018
ecd9249
fix(node): Correctly handle onFatalError (#1288)
jan-auer Apr 3, 2018
838e5ba
release: 0.5.0-beta.4
jan-auer Apr 3, 2018
87d92dd
meta(vscode): Update VSCode workspace settings
jan-auer Apr 5, 2018
20c3ac4
ref: Rename Sentry.create to Sentry.init in all layers (#1292)
jan-auer Apr 5, 2018
b2f0dd7
build(browser): Include raven-js in the dist build (#1290)
jan-auer Apr 5, 2018
769f3dd
release: 0.5.0-beta.5
jan-auer Apr 5, 2018
9ffa923
fix(core): Limit maxBreadcrumbs to [0; 100] and default to 30 (#1295)
jan-auer Apr 9, 2018
078f359
build: Update dependencies
jan-auer Apr 9, 2018
1aa0929
release: 0.5.0
jan-auer Apr 9, 2018
b7eb434
feat(shim): Add context and headers to models.
jan-auer Apr 13, 2018
b35e6f6
fix(browser): Ignore import linter for bundled raven-js
jan-auer Apr 13, 2018
cf2ab7a
meta(npm): Update repository and homepage URLs
jan-auer Apr 13, 2018
d4c5ec8
release: 0.5.1
jan-auer Apr 13, 2018
a8fc67f
feat(shim): Add the `ip_address` field to `User`
jan-auer Apr 16, 2018
8a7d1f1
release: 0.5.2
jan-auer Apr 16, 2018
c06d1e6
fix: This can be null under some circumstances
HazAT Apr 20, 2018
dcc427a
feat(node): Add a dirty version of transports (#1316)
jan-auer May 2, 2018
c151bc8
build: Update dependencies
jan-auer May 2, 2018
fb71bb6
release: 0.5.3
jan-auer May 2, 2018
43f9048
feat(core): Add an internal processEvent method (#1319)
jan-auer May 3, 2018
6744eaf
release: 0.5.4
jan-auer May 3, 2018
ff8b2db
'next' of github.com:getsentry/raven-js into next
HazAT May 9, 2018
23d87ed
[NEXT] Frontend -> Client (#1323)
HazAT May 11, 2018
84afef5
fix(utils): Ignore errors during store flush (#1331)
jan-auer May 15, 2018
b394c73
feat(types): Introduce @sentry/types package (#1332)
kamilogorek May 17, 2018
7261ecd
Merge branch 'next' of github.com:getsentry/raven-js into next
HazAT May 23, 2018
e71c8ac
ref: Move setContext to configureScope, Remove sinon/chai (#1337)
HazAT May 30, 2018
f8bb04f
feat: Add scope inheritance (#1343)
HazAT Jun 1, 2018
799b021
fix: Make scope optional (#1346)
HazAT Jun 4, 2018
53850d2
Merge master into next / Prepare next into master (#1347)
HazAT Jun 6, 2018
0a03c4f
Merge branch 'master' into next
HazAT Jun 6, 2018
05b22e5
meta: Remove old stuff
HazAT Jun 6, 2018
96a6433
fix: Run yarn before lerna
HazAT Jun 6, 2018
4d5c6d4
feat: Rename internal make request function, Remove dist folder
HazAT Jun 7, 2018
0a62ab3
meta: Add disclaimer in readme
HazAT Jun 7, 2018
033e428
meta: Readme typo
HazAT Jun 7, 2018
e0acd27
fix: Tests, Add changelog
HazAT Jun 7, 2018
5c85e2e
feat: Revert renaming of _makeRequest just don't mangle it
HazAT Jun 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
34 changes: 19 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
.DS_Store

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes
# dependencies
node_modules/

# build and test
docs/_build
docs/doctrees

build
node_modules
npm-debug.log

build/
dist/
coverage/
scratch/

*.pyc

# logs
yarn-error.log
npm-debug.log
lerna-debug.log

# ide
.idea
*.sublime-*

yarn-error.log
# misc
.DS_Store
._*
.Spotlight-V100
.Trashes

.rpt2_cache
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 80,
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all"
}
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
6 changes: 6 additions & 0 deletions .travis/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

yarn
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
7 changes: 7 additions & 0 deletions .travis/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

yarn
yarn lerna bootstrap
yarn build
yarn test
8 changes: 3 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"esbenp.prettier-vscode"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["esbenp.prettier-vscode", "eg2.tslint", "stkb.rewrap"]
}
38 changes: 20 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"editor.tabSize": 2,
"editor.rulers": [90],
"[typescript]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
},
"prettier.typescriptEnable": [
"typescript",
"typescriptreact"
],
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist/**": true
},
"tslint.autoFixOnSave": true,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.rulers": [80],
"editor.tabSize": 2,
"files.autoSave": "onWindowChange",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"search.exclude": {
"**/node_modules/": true,
"**/build/": true,
"**/dist/": true
},
"typescript.tsdk": "./node_modules/typescript/lib",
"tslint.enable": false,
"[json]": {
"editor.formatOnType": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": false
}
}
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspaces-experimental true
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

26 changes: 22 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the Sentry nor the names of its contributors may be
used to endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

34 changes: 24 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,41 @@
<h1>Raven.js - Sentry SDK for JavaScript</h1>
</p>

[![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)
[![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)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/sentryio.svg)](https://saucelabs.com/u/sentryio)

## Requirements

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

For on-premise users:

* 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
* 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

## Installation

To get started with Raven.js, please see [Installation](https://docs.sentry.io/clients/javascript/install/).
To get started with Raven.js, please see
[Installation](https://docs.sentry.io/clients/javascript/install/).

## Repository

> As of June 2018 this repository will slowly transition into a mono repo
> containing all related Sentry JavaScript SDKs. raven-js will still be
> available as it is but living under `packages/raven-js`. For now nothing
> should change, we will slowly updating the repo/readme as we go forward.

## Resources

* [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
* [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