This is an amazing update, requested since the dawn of time.
http://workspaceupdates.googleblog.com/2023/08/apps-script-project-history.html
It has always been a painful experience after adjusting the code in one of your scripis to realise you broke it, and can't go back to an earlier version. Especially so when you have published several different versions, as the actual code for those versions until not haven't been possible to restore.
Also, there is hope for even better experience, as the post also contains this lovely sentence.
"Additional improvements for script versions will be made in the coming weeks." 😍
--
https://wheretofind.me/@NoSubstitute