Extension developers: Updating to the 2.15.0+ types ⚠️ #2549
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
-
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::onEvent
Instance::subscribe
Instance::getConfig
IBMi#getConfig
Instance::getContent
IBMi#getContent
IBMi#aspInfo
IBMi#getAllIAsps
IBMiContent#downloadMemberContent
asp
(first) parameterIBMiContent#uploadMemberContent
asp
(first) parameterAdditionally, here are the functions/methods being deprecated by 4.0.0:
IBMiContent#runSQL
IBMi#runSQL
IBMiContent#writeStreamfile
IBMiContent#writeStreamfileRaw
IBMiContent#downloadStreamfile
IBMiContent#downloadStreamfileRaw
IBMi#downloadDirectory
IBMiContent#downloadDirectory
IBMi#uploadDirectory
IBMiContent#uploadDirectory
IBMi#downloadFile
IBMiContent#downloadFile
IBMi#uploadFiles
IBMiContent#uploadFiles
Example
Here is how I went about it for the database extension.
1. update the types package.
In your
package.json
, updatevscode-ibmi-types
to 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.json
scripts
property: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