Skip to content

feat: Delete @sentry/minimal #4971

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 97 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
378a6cd
[v7] feat: Remove references to @sentry/apm (#4845)
AbhiPrasad Apr 7, 2022
7e50a94
[v7] feat(core): Delete API class (#4848)
AbhiPrasad Apr 7, 2022
d2fe512
[v7] feat: Delete deprecated `startSpan` and `child` methods (#4849)
AbhiPrasad Apr 7, 2022
50395bd
feat(core): Remove whitelistUrls/blacklistUrls (#4850)
AbhiPrasad Apr 7, 2022
b12e864
feat(gatsby): Remove Sentry from window (#4857)
AbhiPrasad Apr 7, 2022
6623d43
feat(hub): Remove getActiveDomain (#4858)
AbhiPrasad Apr 7, 2022
9094492
feat(types): Remove deprecated user dsn field (#4864)
AbhiPrasad Apr 7, 2022
ffb8b16
feat(hub): Remove setTransaction scope method (#4865)
AbhiPrasad Apr 7, 2022
7ea63c7
[v7] feat: Drop support for Node 6 (#4851)
AbhiPrasad Apr 7, 2022
68317c4
[v7] feat(tracing): Rename registerRequestInstrumentation -> instrume…
AbhiPrasad Apr 7, 2022
780512b
fix(test): Increase MongoMemoryServer creation timeout (#4881)
Lms24 Apr 7, 2022
7d3a3bf
[v7] feat(node): Remove deprecated `frameContextLines` (#4884)
timfish Apr 7, 2022
9d29071
[v7] feat(browser): Remove top level eventbuilder exports (#4887)
timfish Apr 7, 2022
cbbc15d
ref(build): Update to TypeScript 3.8.3 (#4895)
lobsterkatie Apr 7, 2022
14bb9ac
build(bundles): Stop publishing CDN bundles on npm (#4901)
Apr 8, 2022
4bb3c64
feat(types): Delete RequestSessionStatus enum (#4889)
AbhiPrasad Apr 8, 2022
2e1eaf3
[v7] feat(types): Delete Status enum (#4891)
AbhiPrasad Apr 8, 2022
899ed58
ref(build): Rename `dist` directories to `cjs` (#4900)
Lms24 Apr 8, 2022
780af57
feat(integrations): Remove old angular, ember, and vue integrations (…
AbhiPrasad Apr 8, 2022
2123da5
feat(types): Delete SessionStatus enum (#4890)
AbhiPrasad Apr 8, 2022
b2f361d
meta: 7.0.0-alpha.0 changelog (#4892)
AbhiPrasad Apr 8, 2022
381183e
fix(build): Skip flags file when building integration bundles (#4906)
lobsterkatie Apr 9, 2022
7fa3e8c
fix(dev): Standardize yarn `clean` scripts (#4909)
lobsterkatie Apr 11, 2022
05504b3
chore(dev): Remove redundant `.gitignore` in `utils` package (#4905)
lobsterkatie Apr 11, 2022
4f0469b
ref(dev): Centralize jest config (#4907)
lobsterkatie Apr 11, 2022
66f63de
release: 7.0.0-alpha.0
getsentry-bot Apr 11, 2022
66727fd
Merge branch 'release/7.0.0-alpha.0' into 7.x
Apr 11, 2022
de739c9
Add migration guide for v7 (#4910)
Apr 11, 2022
144bec3
feat(browser): Add debugging hints to browser integration tests (#4914)
lobsterkatie Apr 11, 2022
2ecf1e5
feat: Remove usage of deprecated `event.stacktrace` (#4885)
timfish Apr 11, 2022
af7abc0
chore(dev): Update `jest` and friends (#4897)
lobsterkatie Apr 11, 2022
f2c8cee
fix(dev): Fix unit test debugging configuration (#4915)
lobsterkatie Apr 12, 2022
7079520
ref(backend): Port functionality from Backend to Client (#4911)
Lms24 Apr 12, 2022
58b9c4e
docs(migration): Add section for renaming of CDN bundles (#4918)
Apr 12, 2022
3f59f9d
ref(backend): Delete Backend classes (#4919)
Lms24 Apr 12, 2022
0f10358
fix(wasm): Ensure wasm bundle exists before running wasm tests (#4916)
lobsterkatie Apr 12, 2022
f3e9384
ref: Expose configurable stack parser (#4902)
timfish Apr 12, 2022
6445db2
feat: Remove stack parser support for Opera pre v15 (#4923)
timfish Apr 12, 2022
20b8c52
ref(measurements): Update `setMeasurements` to only set a single meas…
Apr 13, 2022
b5fd785
ref(measurements): Make `setMeasurement` public API (#4933)
Apr 13, 2022
292075f
ref(types): Stop using `Severity` enum (#4926)
lobsterkatie Apr 14, 2022
5fa71bb
ref(build): Turn on `isolatedModules` TS option (#4896)
lobsterkatie Apr 14, 2022
96d1e05
chore(types): Update `@types/jest` (#4929)
lobsterkatie Apr 14, 2022
71d1aba
ref(client): Inject Transports into Client (#4921)
Lms24 Apr 14, 2022
bf2dc7b
doc(migration): Add `Backend` removal and `Transport` injection to mi…
Lms24 Apr 14, 2022
df32f93
doc(migration): Add enum removal and deprecation section to migration…
Lms24 Apr 14, 2022
d5c1d58
feat(eventprocessors): Add name field to EventProcessor (#4932)
Apr 14, 2022
be9465b
meta: 7.0.0-alpha.1 changelog (#4939)
AbhiPrasad Apr 14, 2022
90c83f1
release: 7.0.0-alpha.1
getsentry-bot Apr 14, 2022
d6c397d
Merge branch 'release/7.0.0-alpha.1' into 7.x
Apr 14, 2022
ffc80e2
chore(gatsby): Create type declarations for gatsby plugin files (#4928)
lobsterkatie Apr 14, 2022
503b798
feat(typescript): Remove tslint (#4940)
AbhiPrasad Apr 14, 2022
2593be0
ref(test): Switch to `mongodb-memory-server-global`. (#4872)
onurtemizkan Apr 14, 2022
961d3af
fix(tests): Use non-delayed success endpoints to test `crashed` and `…
onurtemizkan Apr 14, 2022
0cf5fb5
ref(utils): remove `forget` async utility function (#4941)
Lms24 Apr 14, 2022
f67b1c2
feat(tracing): Add GB unit to device memory tag value (#4935)
dashed Apr 14, 2022
949e90e
fix(build): Cache gatsby plugin types files in CI (#4944)
lobsterkatie Apr 14, 2022
91f2634
fix(tests): Fix type errors in tests (#4908)
lobsterkatie Apr 14, 2022
0b2163b
ref(node): Remove raven-node backward-compat code (#4942)
AbhiPrasad Apr 18, 2022
7e6f7f2
ref(build): Split up rollup config code (#4950)
lobsterkatie Apr 19, 2022
a5ef02c
ref(tests): Suppress unconstructive listener and open handle warnings…
onurtemizkan Apr 19, 2022
6227c7f
feat(core): Introduce seperate client options (#4927)
AbhiPrasad Apr 19, 2022
ff810cb
fix(dev): Check out correct commit in manual GHA `Build & Test` workf…
lobsterkatie Apr 20, 2022
5d74974
ref(baseclient): Simplify the setup logic of integrations (#4952)
Apr 20, 2022
6d7326c
build(bundles): Rename CDN bundles to be es6 per default (#4958)
Apr 21, 2022
45f4320
fix(angular): Use Angular compiler to compile @sentry/angular (#4641)
Lms24 Apr 21, 2022
9b0c759
doc(angular): Add Angular migration instructions to migration doc (#4…
Lms24 Apr 21, 2022
7fb13d7
ref: Enforce stackParser through options. (#4953)
AbhiPrasad Apr 21, 2022
1e0e9d6
feat(tracing): Add Prisma ORM integration. (#4931)
onurtemizkan Apr 21, 2022
8b6c50d
meta(gha): Deploy action enforce-license-compliance.yml (#4961)
chadwhitacre Apr 21, 2022
ac7f186
fix(dev): Correctly lint `scripts` typescript files (#4963)
lobsterkatie Apr 21, 2022
96b37e7
feat(angular): Log warning if SDK is used with an older Angular versi…
Lms24 Apr 22, 2022
6267b54
feat: Switch to new transports (#4943)
AbhiPrasad Apr 25, 2022
c930bf0
port CaptureException
AbhiPrasad Apr 25, 2022
b4b7221
port captureMessage
AbhiPrasad Apr 25, 2022
091524b
port captureEvent
AbhiPrasad Apr 25, 2022
99c9af0
port configureScope
AbhiPrasad Apr 25, 2022
3d3dd2b
port addBreadcrumb
AbhiPrasad Apr 25, 2022
f502374
port setContext
AbhiPrasad Apr 25, 2022
fb505be
port setExtras
AbhiPrasad Apr 25, 2022
79470f0
port setTags
AbhiPrasad Apr 25, 2022
03d08b0
port setExtra
AbhiPrasad Apr 25, 2022
e44b259
port setTag
AbhiPrasad Apr 25, 2022
764be24
port setUser
AbhiPrasad Apr 25, 2022
38eabe3
port withScope
AbhiPrasad Apr 25, 2022
97d161a
delete invokeClient
AbhiPrasad Apr 25, 2022
e9ce479
port startTransaction
AbhiPrasad Apr 25, 2022
596bafc
delete callOnHub
AbhiPrasad Apr 25, 2022
f76d41d
write exports tests
AbhiPrasad Apr 25, 2022
719fa7f
re-org exports
AbhiPrasad Apr 25, 2022
74aed53
delete minimal
AbhiPrasad Apr 25, 2022
fe8e51b
remove minimal from the repo
AbhiPrasad Apr 25, 2022
215d57d
improve synthetic exception in hub
AbhiPrasad Apr 25, 2022
8477f97
add docs about minimal deletion
AbhiPrasad Apr 26, 2022
8d66cba
clean up hub mocks
AbhiPrasad Apr 26, 2022
299e4da
Merge branch '7.x' into v7-abhi-delete-minimal
AbhiPrasad Apr 26, 2022
7a3b90f
add back missing changelog entry
AbhiPrasad Apr 26, 2022
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
  •  
  •  
  •  
21 changes: 19 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ module.exports = {
ecmaVersion: 2018,
},
extends: ['@sentry-internal/sdk'],
ignorePatterns: ['coverage/**', 'build/**', 'dist/**', 'esm/**', 'examples/**', 'test/manual/**', 'types/**'],
ignorePatterns: [
'coverage/**',
'build/**',
'dist/**',
'cjs/**',
'esm/**',
'examples/**',
'test/manual/**',
'types/**',
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.d.ts'],
Expand All @@ -24,6 +33,14 @@ module.exports = {
project: ['tsconfig.test.json'],
},
},
{
files: ['**/scripts/**/*.ts'],
parserOptions: {
// since filepaths are relative to the working directory, we need to go back up to reach the repo root level
// tsconfig
project: ['../../tsconfig.json'],
},
},
{
files: ['*.tsx'],
rules: {
Expand All @@ -33,7 +50,7 @@ module.exports = {
},
},
{
files: ['scenarios/**'],
files: ['scenarios/**', 'rollup/**'],
parserOptions: {
sourceType: 'module',
},
Expand Down
35 changes: 32 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ env:
${{ github.workspace }}/node_modules
${{ github.workspace }}/packages/**/node_modules
~/.cache/ms-playwright/
~/.cache/mongodb-binaries/

# DEPENDENCY_CACHE_KEY: can't be set here because we don't have access to yarn.lock

CACHED_BUILD_PATHS: |
${{ github.workspace }}/packages/**/build
${{ github.workspace }}/packages/**/dist
${{ github.workspace }}/packages/**/cjs
${{ github.workspace }}/packages/**/esm
${{ github.workspace }}/packages/ember/*.d.ts
${{ github.workspace }}/packages/ember/instance-initializers
${{ github.workspace }}/packages/gatsby/*.d.ts
${{ github.workspace }}/packages/serverless/dist-awslambda-layer/*.zip

BUILD_CACHE_KEY: ${{ github.event.inputs.commit || github.sha }}
Expand All @@ -39,6 +41,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
Expand Down Expand Up @@ -66,6 +70,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
- name: Check dependency cache
Expand Down Expand Up @@ -107,6 +113,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -137,6 +145,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
- name: Check dependency cache
Expand All @@ -160,6 +170,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
- name: Check dependency cache
Expand All @@ -184,6 +196,8 @@ jobs:
steps:
- name: Check out current commit (${{ github.sha }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
- name: Check dependency cache
Expand Down Expand Up @@ -217,10 +231,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 10, 12, 14, 16]
node: [8, 10, 12, 14, 16]
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -254,6 +270,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -286,11 +304,12 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
# TODO: removing `fetch-depth` below seems to have no effect, and the commit which added it had no description,
# so it's not clear why it's necessary. That said, right now ember tests are xfail, so it's a little hard to
# tell if it's safe to remove. Once ember tests are fixed, let's try again with it turned off, and if all goes
# well, we can pull it out.
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v1
Expand Down Expand Up @@ -341,6 +360,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -379,6 +400,8 @@ jobs:
steps:
- name: Check out current commit (${{ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
- name: Check dependency cache
Expand Down Expand Up @@ -408,8 +431,12 @@ jobs:
steps:
- name: Check out current commit (${ env.HEAD_COMMIT }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Check dependency cache
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -441,6 +468,8 @@ jobs:
steps:
- name: Check out current commit (${{ github.sha }})
uses: actions/checkout@v2
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v1
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Enforce License Compliance

on:
push:
branches: [master, main, release/*]
pull_request:
branches: [master, main]

jobs:
enforce-license-compliance:
runs-on: ubuntu-latest
steps:
- name: 'Enforce License Compliance'
uses: getsentry/action-enforce-license-compliance@main
with:
fossa_api_key: ${{ secrets.FOSSA_API_KEY }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package-lock.json

# build and test
build/
packages/*/dist/
packages/*/cjs/
packages/*/esm/
coverage/
scratch/
Expand Down Expand Up @@ -40,3 +40,5 @@ tmp.js
# eslint
.eslintcache
eslintcache/*

*.d.ts
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

*

# TODO remove bundles (which in the tarball are inside `build`) in v7
!/build/**/*

!/dist/**/*
!/cjs/**/*
!/esm/**/*
!/types/**/*
12 changes: 6 additions & 6 deletions .size-limit.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
module.exports = [
{
name: '@sentry/browser - ES5 CDN Bundle (gzipped + minified)',
path: 'packages/browser/build/bundles/bundle.min.js',
path: 'packages/browser/build/bundles/bundle.es5.min.js',
gzip: true,
limit: '100 KB',
},
{
name: '@sentry/browser - ES5 CDN Bundle (minified)',
path: 'packages/browser/build/bundles/bundle.min.js',
path: 'packages/browser/build/bundles/bundle.es5.min.js',
gzip: false,
limit: '120 KB',
},
{
name: '@sentry/browser - ES6 CDN Bundle (gzipped + minified)',
path: 'packages/browser/build/bundles/bundle.es6.min.js',
path: 'packages/browser/build/bundles/bundle.min.js',
gzip: true,
limit: '100 KB',
},
{
name: '@sentry/browser - ES6 CDN Bundle (minified)',
path: 'packages/browser/build/bundles/bundle.es6.min.js',
path: 'packages/browser/build/bundles/bundle.min.js',
gzip: false,
limit: '120 KB',
},
Expand Down Expand Up @@ -53,13 +53,13 @@ module.exports = [
},
{
name: '@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)',
path: 'packages/tracing/build/bundles/bundle.tracing.min.js',
path: 'packages/tracing/build/bundles/bundle.tracing.es5.min.js',
gzip: true,
limit: '100 KB',
},
{
name: '@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)',
path: 'packages/tracing/build/bundles/bundle.tracing.es6.min.js',
path: 'packages/tracing/build/bundles/bundle.tracing.min.js',
gzip: true,
limit: '100 KB',
},
Expand Down
52 changes: 19 additions & 33 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"version": "0.2.0",
"inputs": [
{
"id": "getPackageName",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "echo '${file}' | sed s/'.*sentry-javascript\\/packages\\/'// | grep --extended-regexp --only-matching --max-count 1 '[^\\/]+' | head -1",
"cwd": "${workspaceFolder}" ,
// normally `input` commands bring up a selector for the user, but given that there should only be one
// choice here, this lets us skip the prompt
"useSingleResult": true
}
"id": "getPackageName",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "echo '${file}' | sed s/'.*sentry-javascript\\/packages\\/'// | grep --extended-regexp --only-matching --max-count 1 '[^\\/]+' | head -1",
"cwd": "${workspaceFolder}",
// normally `input` commands bring up a selector for the user, but given that there should only be one
// choice here, this lets us skip the prompt
"useSingleResult": true
}
}
],
"configurations": [
Expand All @@ -25,18 +25,9 @@
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
"request": "launch",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"rollup",
"-c",
"${file}"
],
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
],
"runtimeArgs": ["rollup", "-c", "${file}"],
"skipFiles": ["<node_internals>/**"],
"outFiles": ["${workspaceFolder}/**/*.js", "!**/node_modules/**"],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
Expand All @@ -56,9 +47,6 @@
// this runs one test at a time, rather than running them in parallel (necessary for debugging so that you know
// you're hitting a single test's breakpoints, in order)
"--runInBand",
// TODO: when we unify jest config, we may need to change this
"--config",
"${workspaceFolder}/packages/${input:getPackageName}/package.json",
// coverage messes up the source maps
"--coverage",
"false",
Expand All @@ -67,14 +55,13 @@
],
"sourceMaps": true,
"smartStep": true,
// otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on
// "outputCapture" option here; default is to show console logs), but not both
// otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on
// "outputCapture" option here; default is to show console logs), but not both
"console": "integratedTerminal",
// since we're not using it, don't automatically switch to it
"internalConsoleOptions": "neverOpen",
"internalConsoleOptions": "neverOpen"
},


// @sentry/nextjs - Run a specific integration test file
// Must have test file in currently active tab when hitting the play button, and must already have run `yarn` in test app directory
{
Expand Down Expand Up @@ -105,18 +92,17 @@
// this controls which files are sourcemapped
"outFiles": [
// our SDK code
"${workspaceFolder}/**/dist/**/*.js",
"${workspaceFolder}/**/cjs/**/*.js",
// the built test app
"${workspaceFolder}/packages/nextjs/test/integration/.next/**/*.js",
"!**/node_modules/**"
],
"resolveSourceMapLocations": [
"${workspaceFolder}/**/dist/**",
"${workspaceFolder}/**/cjs/**",
"${workspaceFolder}/packages/nextjs/test/integration/.next/**",
"!**/node_modules/**"
],
"internalConsoleOptions": "openOnSessionStart"

},
}
]
}
Loading