From 2b21592f7e47415e391085ce7559a170b10ed00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 13 Jul 2020 16:28:06 +0200 Subject: [PATCH] feat: remove openapi-v3 from apiconnect depenendencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: `@loopback/core` and `@loopback/rest` were moved to peer dependencies, to ensure the extension uses application's version of these modules. If this change breaks your application (which is unlikely), then simply add both `@loopback/core` and `@loopback/rest` to your project dependencies. Signed-off-by: Miroslav Bajtoš --- extensions/apiconnect/package.json | 7 +++++-- extensions/apiconnect/src/apiconnect.spec-enhancer.ts | 2 +- extensions/apiconnect/tsconfig.json | 3 --- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/apiconnect/package.json b/extensions/apiconnect/package.json index 1e2f9db6a7bf..4a13292e67f0 100644 --- a/extensions/apiconnect/package.json +++ b/extensions/apiconnect/package.json @@ -39,12 +39,15 @@ "directory": "extensions/apiconnect" }, "dependencies": { - "@loopback/core": "^2.9.1", - "@loopback/openapi-v3": "^3.4.5", "tslib": "^2.0.0" }, + "peerDependencies": { + "@loopback/core": "^2.9.1", + "@loopback/rest": "^5.2.0" + }, "devDependencies": { "@loopback/build": "^6.1.0", + "@loopback/core": "^2.9.1", "@loopback/eslint-config": "^8.0.3", "@loopback/rest": "^5.2.0", "@loopback/testlab": "^3.2.0", diff --git a/extensions/apiconnect/src/apiconnect.spec-enhancer.ts b/extensions/apiconnect/src/apiconnect.spec-enhancer.ts index b2906b5c36b9..1c99da7391a3 100644 --- a/extensions/apiconnect/src/apiconnect.spec-enhancer.ts +++ b/extensions/apiconnect/src/apiconnect.spec-enhancer.ts @@ -10,7 +10,7 @@ import { CoreBindings, inject, } from '@loopback/core'; -import {asSpecEnhancer, OASEnhancer, OpenAPIObject} from '@loopback/openapi-v3'; +import {asSpecEnhancer, OASEnhancer, OpenAPIObject} from '@loopback/rest'; /** * Configuration for IBM API Connect extensions to the OpenAPI spec diff --git a/extensions/apiconnect/tsconfig.json b/extensions/apiconnect/tsconfig.json index d86749617e9a..bdd4f3eb6b2a 100644 --- a/extensions/apiconnect/tsconfig.json +++ b/extensions/apiconnect/tsconfig.json @@ -13,9 +13,6 @@ { "path": "../../packages/core/tsconfig.json" }, - { - "path": "../../packages/openapi-v3/tsconfig.json" - }, { "path": "../../packages/rest/tsconfig.json" },