diff --git a/CHANGELOG.md b/CHANGELOG.md index f16cf93..c0f749a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ All notable changes to the IBM® IMS™ Plug-in for Zowe CLI will be documented ## Recent Changes -- BugFix: Add missing npm-shrinkwrap +- Deprecated: Added deprecation notices +- BugFix: Added missing shrinkwrap ## `3.0.0` diff --git a/README.md b/README.md index db60c64..8a7cbfe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # IBM® IMS™ Plug-in for Zowe CLI +### The IBM® IMS™ Plug-in for Zowe CLI is deprecated, and will not receive additional security updates, bug fixes, or enhancements. + [![codecov](https://codecov.io/gh/zowe/zowe-cli-ims-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/zowe/zowe-cli-ims-plugin) The IBM IMS Plug-in for Zowe CLI lets you extend Zowe CLI to interact with IMS resources (programs and transactions). You can use the plug-in to create new IMS applications or update existing IMS applications. For more information about IMS, see [IBM Information Management System (IMS)](https://www.ibm.com/it-infrastructure/z/ims). diff --git a/package.json b/package.json index e5bdd14..930b84a 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "configurationModule": "lib/imperative.js" }, "peerDependencies": { - "@zowe/imperative": "^5.0.0" + "@zowe/imperative": "^5.10.0" }, "devDependencies": { "@types/fs-extra": "^5.0.0", diff --git a/src/imperative.ts b/src/imperative.ts index 29408ca..bb7e91d 100644 --- a/src/imperative.ts +++ b/src/imperative.ts @@ -10,7 +10,7 @@ */ // Imperative version of Zowe CLI -import { IImperativeConfig } from "@zowe/imperative"; +import { IImperativeConfig} from "@zowe/imperative"; import { PluginConstants } from "./api/constants/PluginConstants"; import { ImsSessionUtils } from "./cli/ImsSessionUtils"; @@ -91,7 +91,8 @@ const config: IImperativeConfig = { ] } ], - pluginHealthCheck: __dirname + "/healthCheck" + pluginHealthCheck: __dirname + "/healthCheck", + pluginLifeCycle: __dirname + "/pluginLifeCycle" }; export = config; diff --git a/src/pluginLifeCycle.ts b/src/pluginLifeCycle.ts new file mode 100644 index 0000000..b6eb83f --- /dev/null +++ b/src/pluginLifeCycle.ts @@ -0,0 +1,29 @@ +/* +* This program and the accompanying materials are made available under the terms of the * +* Eclipse Public License v2.0 which accompanies this distribution, and is available at * +* https://www.eclipse.org/legal/epl-v20.html * +* * +* SPDX-License-Identifier: EPL-2.0 * +* * +* Copyright Contributors to the Zowe Project. * +* * +*/ + +import { AbstractPluginLifeCycle, Logger } from "@zowe/imperative"; + +class PluginLifeCycle extends AbstractPluginLifeCycle { + public postInstall(): void | Promise { + const deprecationMessage = "The IBM® IMS™ Plug-in for Zowe CLI is deprecated, " + + "and will not receive additional security updates, bug fixes, or enhancements."; + const consoleLogger = Logger.getConsoleLogger(); + const appLogger = Logger.getAppLogger(); + consoleLogger.warn(deprecationMessage); + appLogger.warn(deprecationMessage); + } + + public preUninstall(): void | Promise { + return; + } +} + +export = PluginLifeCycle; \ No newline at end of file