Almost all STM32HAL framework are out of date and haven’t get updated for several month. I think the best solution would be allowing users to use whatever version HAL they want by using the file generated by STM32CUBEMX.
Discussions we had on Github repo: STM HAL drivers are out of date · Issue #439 · platformio/platform-ststm32 · GitHub