The major/minor version number of the library and extension are now kept in sync, but the patch version may differ depending on whether there’s a bug fix to make. If you are using Composer 2 (which you most likely are), there is a built-in way to get versions for installed packages: Knowing the version of package X.