Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Add deprecation notices, deprecation warning on install
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Feb 7, 2024
1 parent f3e0ad1 commit 8200944
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# IBM® IMS™ Plug-in for Zowe CLI <!-- omit in toc -->

### 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).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/imperative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -91,7 +91,8 @@ const config: IImperativeConfig = {
]
}
],
pluginHealthCheck: __dirname + "/healthCheck"
pluginHealthCheck: __dirname + "/healthCheck",
pluginLifeCycle: __dirname + "/pluginLifeCycle"
};

export = config;
29 changes: 29 additions & 0 deletions src/pluginLifeCycle.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
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<void> {
return;
}
}

export = PluginLifeCycle;

0 comments on commit 8200944

Please sign in to comment.