@zowe/db2-for-zowe-cli 4.1.7 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,6 +37,8 @@ Before you install and use the plug-in:
37
37
 
38
38
  - **(Linux only - CentOS, RHEL)** Download and Install the following via yum: `python3 make gcc-c++`
39
39
 
40
+ - Note: Reinstallation is required when Node is upgraded to a new major version. When installed, the plug-in builds a native binary that is needed to interact with Db2. If a new major version of Node is installed, you must uninstall and reinstall the IBM Db2 Database Plug-in to update the binary.
41
+
40
42
  ## Installing
41
43
 
42
44
  Use one of the following methods to install the plug-in:
@@ -143,8 +145,21 @@ Any failures potentially indicate an issue with the set-up of the Rest API or co
143
145
  ```
144
146
  zowe plugins uninstall @zowe/db2-for-zowe-cli
145
147
  ```
148
+ 2. **Windows Only** - The plug-in may encounter an error while uninstalling. If this occurs, run the uninstall command again.
149
+
146
150
  After the uninstallation process completes successfully, the product no longer contains the plug-in configuration.
147
151
 
152
+ ## Troubleshooting
153
+
154
+ ### Node.js version incompatible with plug-in
155
+
156
+ **Error message**:
157
+ ```
158
+ The module 'C:\Users\User\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\Release\odbc_bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION ###. This version of Node.js requires NODE_MODULE_VERSION ###. Please try re-compiling or re-installing this module (for instance, using npm rebuild or npm install).
159
+ ```
160
+
161
+ **Action**: Uninstall and reinstall the IBM Db2 Database Plug-in for Zowe CLI. The Node version installed on the system has changed since the IBM Db2 Database Plug-in for Zowe CLI was installed on the system, and the native binary is no longer compatible.
162
+
148
163
  ## Contributing
149
164
 
150
165
  For information about contributing to the plug-in, see the Zowe CLI [Contribution Guidelines](CONTRIBUTING.md). The guidelines contain standards and conventions for developing plug-ins for Zowe CLI. This includes information about running, writing, maintaining automated tests, developing consistent syntax in your plug-in, and ensuring that your plug-in integrates properly with Zowe CLI.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zowe/db2-for-zowe-cli",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "IBM® Db2® Plug-in for Zowe CLI",
5
5
  "author": "Zowe",
6
6
  "license": "EPL-2.0",
@@ -22,7 +22,7 @@
22
22
  "circularDependencyCheck": "madge -c lib",
23
23
  "clean": "rimraf lib",
24
24
  "watch": "tsc --pretty --watch",
25
- "prepublishOnly": "echo Look up for the output of prepublishOnly",
25
+ "prepublishOnly": "npm run build",
26
26
  "lint": "eslint \"src/**/*.ts\" \"**/__tests__/**/*.ts\"",
27
27
  "lint:src": "eslint \"src/**/*.ts\" --ignore-pattern \"**/__tests__/**/*.ts\"",
28
28
  "lint:tests": "eslint \"**/__tests__/**/*.ts\"",
@@ -36,7 +36,7 @@
36
36
  "configurationModule": "lib/imperative.js"
37
37
  },
38
38
  "dependencies": {
39
- "ibm_db": "2.8.2"
39
+ "ibm_db": "3.2.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@zowe/cli": "^6.0.0",
@@ -51,6 +51,7 @@
51
51
  "@types/yargs": "^8.0.2",
52
52
  "@typescript-eslint/eslint-plugin": "^4.29.0",
53
53
  "@typescript-eslint/parser": "^4.29.0",
54
+ "@zowe/cli": "^6.40.16",
54
55
  "@zowe/imperative": "^4.18.7",
55
56
  "env-cmd": "^8.0.2",
56
57
  "eslint": "^7.32.0",