Extension developers: Updating to the 2.15.0+ types ⚠️ #2549
Pinned
worksofliam
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As mentioned in our Release Schedule, there are a lot of API changes. You will be required to update your imports to ensure your extension will continue working for the 3.0.0 release.
We aim to release 3.0.0 on April 5th 2025.
If you are using Code for IBM i 2.15.2, then look out for warnings in the console if you're using any of the deprecated functions.
Full list of deprecated functions/methods for 3.0.0
Instance::onEventInstance::subscribeInstance::getConfigIBMi#getConfigInstance::getContentIBMi#getContentIBMi#aspInfoIBMi#getAllIAspsIBMiContent#downloadMemberContentasp(first) parameterIBMiContent#uploadMemberContentasp(first) parameterAdditionally, here are the functions/methods being deprecated by 4.0.0:
IBMiContent#runSQLIBMi#runSQLIBMiContent#writeStreamfileIBMiContent#writeStreamfileRawIBMiContent#downloadStreamfileIBMiContent#downloadStreamfileRawIBMi#downloadDirectoryIBMiContent#downloadDirectoryIBMi#uploadDirectoryIBMiContent#uploadDirectoryIBMi#downloadFileIBMiContent#downloadFileIBMi#uploadFilesIBMiContent#uploadFilesExample
Here is how I went about it for the database extension.
1. update the types package.
In your
package.json, updatevscode-ibmi-typesto at least 2.15.0.2. type check against your repo:
Use a variation of this command to type check against your extension after the types have been updated:
You can also place it in the
package.jsonscriptsproperty:3. fix the problems
Here are some of the changes made in the vscode-db2i repo:
4. cross reference the deprecated list to find use of any deprecated functions
Make sure to remove any usage of deprecated functions before 3.0.0, and even 4.0.0.
To make your life easier, use this typescript-eslint rule to have the linter find them.
Beta Was this translation helpful? Give feedback.
All reactions