I updated the Node-Red node with the palette manager, but the library used was not updated.
Am I doing something wrong?
How can I make sure that the library used is also updated?
To understand how 'latest' works I suggest the following.
In the .node-red folder run npm install to see if that updates the dependency (use npm list @iiot2k/gpiox to check what versions are installed).
Remove it and reinstall - npm remove @iiot2k/node-red-gpiox then npm install @iiot2k/node-red-gpiox and check the versions again. Hopefully that should give the latest version.
Remove it and install an earlier version then update, so remove as above, then install it, but using npm install @iiot2k/node-red-gpiox@2.1.3. Check the versions then update using npm updae @iiot2k/node-red-gpiox and check the versions again. However, because 'latest' is used then even installing the earlier version may install the latest of the dependency so it may not be possible to get back to the situation you had at the start.
So removing and re-installing did not install the latest version of the dependency, but just kept using the already installed version? That seems very odd. What version of npm are you using (npm -v)?
So using npm update did fully update. I would have expected the palette manager to do exactly that, so it is odd that did not work.
Slightly off at a tangent, if you need greater than a specific version then would it not be better to say that in the spec? Also you can then stop it from installing a later major version change which might, presumably, break things.