From ee5778923d6e438ee35a1f2c7bad2841cd7f4862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20St=C3=B6bich?= Date: Tue, 1 Jun 2021 22:41:45 +0200 Subject: [PATCH] chore: remove unused backwards compatibility folder (#84) Co-authored-by: Daniel Dyla --- .eslintrc.js | 3 +-- backwards-compatability/node10/index.ts | 25 -------------------- backwards-compatability/node10/package.json | 20 ---------------- backwards-compatability/node10/tsconfig.json | 10 -------- backwards-compatability/node12/index.ts | 25 -------------------- backwards-compatability/node12/package.json | 20 ---------------- backwards-compatability/node12/tsconfig.json | 10 -------- backwards-compatability/node8/index.ts | 25 -------------------- backwards-compatability/node8/package.json | 20 ---------------- backwards-compatability/node8/tsconfig.json | 10 -------- 10 files changed, 1 insertion(+), 167 deletions(-) delete mode 100644 backwards-compatability/node10/index.ts delete mode 100644 backwards-compatability/node10/package.json delete mode 100644 backwards-compatability/node10/tsconfig.json delete mode 100644 backwards-compatability/node12/index.ts delete mode 100644 backwards-compatability/node12/package.json delete mode 100644 backwards-compatability/node12/tsconfig.json delete mode 100644 backwards-compatability/node8/index.ts delete mode 100644 backwards-compatability/node8/package.json delete mode 100644 backwards-compatability/node8/tsconfig.json diff --git a/.eslintrc.js b/.eslintrc.js index 614b74a5..cf8bb3c2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,8 +14,7 @@ module.exports = { parser: "@typescript-eslint/parser", parserOptions: { "project": [ - "./tsconfig.json", - "backwards-compatability/*/tsconfig.json" + "./tsconfig.json" ] }, ignorePatterns: [ diff --git a/backwards-compatability/node10/index.ts b/backwards-compatability/node10/index.ts deleted file mode 100644 index 949c48a7..00000000 --- a/backwards-compatability/node10/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NodeSDK, api } from '@opentelemetry/sdk-node'; -import { ConsoleSpanExporter } from '@opentelemetry/tracing'; - -const sdk = new NodeSDK({ - traceExporter: new ConsoleSpanExporter(), - autoDetectResources: false, -}); -sdk.start(); - -api.trace.getTracer('test'); diff --git a/backwards-compatability/node10/package.json b/backwards-compatability/node10/package.json deleted file mode 100644 index 4e8f2c69..00000000 --- a/backwards-compatability/node10/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "backcompat-node10", - "version": "0.17.0", - "private": true, - "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", - "main": "index.js", - "scripts": { - "test:backcompat": "tsc --noEmit index.ts" - }, - "dependencies": { - "@opentelemetry/sdk-node": "^0.17.0", - "@opentelemetry/tracing": "^0.17.0" - }, - "devDependencies": { - "@types/node": "10.17.50", - "typescript": "4.1.3" - }, - "author": "OpenTelemetry Authors", - "license": "Apache-2.0" -} diff --git a/backwards-compatability/node10/tsconfig.json b/backwards-compatability/node10/tsconfig.json deleted file mode 100644 index 0a0c58df..00000000 --- a/backwards-compatability/node10/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "build" - }, - "include": [ - "index.ts" - ] -} diff --git a/backwards-compatability/node12/index.ts b/backwards-compatability/node12/index.ts deleted file mode 100644 index 949c48a7..00000000 --- a/backwards-compatability/node12/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NodeSDK, api } from '@opentelemetry/sdk-node'; -import { ConsoleSpanExporter } from '@opentelemetry/tracing'; - -const sdk = new NodeSDK({ - traceExporter: new ConsoleSpanExporter(), - autoDetectResources: false, -}); -sdk.start(); - -api.trace.getTracer('test'); diff --git a/backwards-compatability/node12/package.json b/backwards-compatability/node12/package.json deleted file mode 100644 index 39f88627..00000000 --- a/backwards-compatability/node12/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "backcompat-node12", - "version": "0.17.0", - "private": true, - "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", - "main": "index.js", - "scripts": { - "test:backcompat": "tsc --noEmit index.ts" - }, - "dependencies": { - "@opentelemetry/sdk-node": "^0.17.0", - "@opentelemetry/tracing": "^0.17.0" - }, - "devDependencies": { - "@types/node": "12.19.13", - "typescript": "4.1.3" - }, - "author": "OpenTelemetry Authors", - "license": "Apache-2.0" -} diff --git a/backwards-compatability/node12/tsconfig.json b/backwards-compatability/node12/tsconfig.json deleted file mode 100644 index 0a0c58df..00000000 --- a/backwards-compatability/node12/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "build" - }, - "include": [ - "index.ts" - ] -} diff --git a/backwards-compatability/node8/index.ts b/backwards-compatability/node8/index.ts deleted file mode 100644 index 949c48a7..00000000 --- a/backwards-compatability/node8/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NodeSDK, api } from '@opentelemetry/sdk-node'; -import { ConsoleSpanExporter } from '@opentelemetry/tracing'; - -const sdk = new NodeSDK({ - traceExporter: new ConsoleSpanExporter(), - autoDetectResources: false, -}); -sdk.start(); - -api.trace.getTracer('test'); diff --git a/backwards-compatability/node8/package.json b/backwards-compatability/node8/package.json deleted file mode 100644 index 5abd56e7..00000000 --- a/backwards-compatability/node8/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "backcompat-node8", - "version": "0.17.0", - "private": true, - "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", - "main": "index.js", - "scripts": { - "test:backcompat": "tsc --noEmit index.ts" - }, - "dependencies": { - "@opentelemetry/sdk-node": "^0.17.0", - "@opentelemetry/tracing": "^0.17.0" - }, - "devDependencies": { - "@types/node": "8.10.66", - "typescript": "4.1.3" - }, - "author": "OpenTelemetry Authors", - "license": "Apache-2.0" -} diff --git a/backwards-compatability/node8/tsconfig.json b/backwards-compatability/node8/tsconfig.json deleted file mode 100644 index 0a0c58df..00000000 --- a/backwards-compatability/node8/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "build" - }, - "include": [ - "index.ts" - ] -}