From aea29233451848beee902bdd4865e8f86886554d Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 23 Jun 2022 15:59:20 -0400 Subject: [PATCH] feat: Remove tslib as a dependency We no longer use tslib as a dependency on the SDKs. --- .vscode/launch.json | 3 --- package.json | 1 - packages/browser/package.json | 3 +-- packages/core/package.json | 3 +-- packages/hub/package.json | 3 +-- packages/integrations/package.json | 3 +-- packages/nextjs/package.json | 3 +-- packages/node/package.json | 3 +-- packages/react/package.json | 3 +-- packages/remix/package.json | 3 +-- packages/serverless/package.json | 3 +-- packages/tracing/package.json | 3 +-- packages/utils/package.json | 3 +-- packages/vue/package.json | 3 +-- packages/wasm/package.json | 3 +-- yarn.lock | 2 +- 16 files changed, 14 insertions(+), 31 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d721fde3c449..f062272d065e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -127,9 +127,6 @@ "skipFiles": [ "/**", - // this prevents us from landing in a neverending cycle of TS async-polyfill functions as we're stepping through - // our code - "${workspaceFolder}/node_modules/tslib/**/*" ], "sourceMaps": true, // this controls which files are sourcemapped diff --git a/package.json b/package.json index 419208d4f7ad..41345972d563 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,6 @@ "size-limit": "^4.5.5", "ts-jest": "^27.1.4", "ts-node": "^10.7.0", - "tslib": "^2.3.1", "typedoc": "^0.18.0", "typescript": "3.8.3" }, diff --git a/packages/browser/package.json b/packages/browser/package.json index 435fe8f4486f..1804041c7c91 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -18,8 +18,7 @@ "dependencies": { "@sentry/core": "7.3.1", "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "devDependencies": { "@types/md5": "2.1.33", diff --git a/packages/core/package.json b/packages/core/package.json index 0ee40b0f3eb5..3cd8404e92e5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,8 +18,7 @@ "dependencies": { "@sentry/hub": "7.3.1", "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "scripts": { "build": "run-p build:rollup build:types", diff --git a/packages/hub/package.json b/packages/hub/package.json index 3adc299170ec..a2ccf20dcc1a 100644 --- a/packages/hub/package.json +++ b/packages/hub/package.json @@ -17,8 +17,7 @@ }, "dependencies": { "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "scripts": { "build": "run-p build:rollup build:types", diff --git a/packages/integrations/package.json b/packages/integrations/package.json index cdbf69cc2bef..91f16dd83211 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -18,8 +18,7 @@ "dependencies": { "@sentry/types": "7.3.1", "@sentry/utils": "7.3.1", - "localforage": "^1.8.1", - "tslib": "^1.9.3" + "localforage": "^1.8.1" }, "devDependencies": { "chai": "^4.1.2" diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 8773f6cd55f6..e00525f3e5dd 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -25,8 +25,7 @@ "@sentry/tracing": "7.3.1", "@sentry/types": "7.3.1", "@sentry/utils": "7.3.1", - "@sentry/webpack-plugin": "1.18.9", - "tslib": "^1.9.3" + "@sentry/webpack-plugin": "1.18.9" }, "devDependencies": { "@types/webpack": "^4.41.31", diff --git a/packages/node/package.json b/packages/node/package.json index 072e503b6928..8a36d75d2c74 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -22,8 +22,7 @@ "@sentry/utils": "7.3.1", "cookie": "^0.4.1", "https-proxy-agent": "^5.0.0", - "lru_map": "^0.3.3", - "tslib": "^1.9.3" + "lru_map": "^0.3.3" }, "devDependencies": { "@types/cookie": "0.3.2", diff --git a/packages/react/package.json b/packages/react/package.json index 42ca1ecdbe0c..08fe2eb5bdb0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -19,8 +19,7 @@ "@sentry/browser": "7.3.1", "@sentry/types": "7.3.1", "@sentry/utils": "7.3.1", - "hoist-non-react-statics": "^3.3.2", - "tslib": "^1.9.3" + "hoist-non-react-statics": "^3.3.2" }, "peerDependencies": { "react": "15.x || 16.x || 17.x || 18.x" diff --git a/packages/remix/package.json b/packages/remix/package.json index 05b0854269a0..fd59042eb3c2 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -27,8 +27,7 @@ "@sentry/tracing": "7.3.1", "@sentry/types": "7.3.1", "@sentry/utils": "7.3.1", - "@sentry/webpack-plugin": "1.18.9", - "tslib": "^1.9.3" + "@sentry/webpack-plugin": "1.18.9" }, "devDependencies": { "@remix-run/node": "^1.4.3", diff --git a/packages/serverless/package.json b/packages/serverless/package.json index 15e2dd85ba9b..291d1173979a 100644 --- a/packages/serverless/package.json +++ b/packages/serverless/package.json @@ -21,8 +21,7 @@ "@sentry/types": "7.3.1", "@sentry/utils": "7.3.1", "@types/aws-lambda": "^8.10.62", - "@types/express": "^4.17.2", - "tslib": "^1.9.3" + "@types/express": "^4.17.2" }, "devDependencies": { "@google-cloud/bigquery": "^5.3.0", diff --git a/packages/tracing/package.json b/packages/tracing/package.json index 4d852f357b35..62c82133aa0d 100644 --- a/packages/tracing/package.json +++ b/packages/tracing/package.json @@ -18,8 +18,7 @@ "dependencies": { "@sentry/hub": "7.3.1", "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "devDependencies": { "@sentry/browser": "7.3.1", diff --git a/packages/utils/package.json b/packages/utils/package.json index 3c8ed626c72f..c201edcb7c52 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -16,8 +16,7 @@ "access": "public" }, "dependencies": { - "@sentry/types": "7.3.1", - "tslib": "^1.9.3" + "@sentry/types": "7.3.1" }, "devDependencies": { "@types/array.prototype.flat": "^1.2.1", diff --git a/packages/vue/package.json b/packages/vue/package.json index 1cded8462e95..75441f20d95e 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -19,8 +19,7 @@ "@sentry/browser": "7.3.1", "@sentry/core": "7.3.1", "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "peerDependencies": { "vue": "2.x || 3.x" diff --git a/packages/wasm/package.json b/packages/wasm/package.json index 4cf98ea54f8f..03cac05d8389 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -18,8 +18,7 @@ "dependencies": { "@sentry/browser": "7.3.1", "@sentry/types": "7.3.1", - "@sentry/utils": "7.3.1", - "tslib": "^1.9.3" + "@sentry/utils": "7.3.1" }, "devDependencies": { "@types/jest-environment-puppeteer": "^4.4.0", diff --git a/yarn.lock b/yarn.lock index e7683ac1d4c1..4989fe57fc3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25158,7 +25158,7 @@ tslib@2.0.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.0.1.tgz#410eb0d113e5b6356490eec749603725b021b43e" integrity sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ== -tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==