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

Commit

Permalink
Merge pull request #65 from zowe/deprecate-master
Browse files Browse the repository at this point in the history
Add deprecation notices, deprecation warning on install
  • Loading branch information
awharn authored Feb 7, 2024
2 parents f3e0ad1 + 47709a9 commit 66c63ba
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 6 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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# 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).

- [How the plug-in works](#how-the-plug-in-works)
- [Software rerequirements](#software-rerequirements)
- [Software requirements](#software-requirements)
- [Installing](#installing)
- [Building from source](#building-from-source)
- [Creating a user profile](#creating-a-user-profile)
Expand All @@ -21,7 +23,7 @@ As an application developer or DevOps administrator, you can use IBM IMS Plug-in
- Deploy application code into IMS production or test systems.
- Write scripts to automate IMS actions that you traditionally perform using ISPF editors, TSO, and SPOC.

## Software rerequirements
## Software requirements

<!-- TODO When @latest branch of Zowe docs-site exists, we should give users the option to go and read about/install the @latest or the @lts-incremental versions of this plug-in. We can also explain which branches in the repo correspond to which CLI version. -->

Expand Down
1 change: 1 addition & 0 deletions __tests__/imperative.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("imperative config", () => {
it("should match the snapshot", () => {
const config = require("../src/imperative");
delete config.pluginHealthCheck; // this path changes depending on your system and can't be snapshotted.
delete config.pluginLifeCycle; // this path changes depending on your system and can't be snapshotted.
expect(config).toMatchSnapshot();
});
});
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
3 changes: 2 additions & 1 deletion src/imperative.ts
Original file line number Diff line number Diff line change
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 66c63ba

Please sign in to comment.