License usage question - past commit from third party library

Hello,

I have a question regarding the license of a third party library that I would like to use. The thing is this library was licensed under MIT license up to a certain commit. Now, within the most recent commits, the author has changed the license to commercial.

My question: If I checkout the past commit which has the MIT license, and use that version, am I allow to include it within a future product that I would publish on CC?

Thank you!